Security
Control who can reach a service and scan its dependencies for known vulnerabilities
The Security tab of a service answers two questions: who can reach it, and are the packages it ships with safe. It has two sub-tabs:
| Sub-tab | What it holds |
|---|---|
| Access | Who can reach the service (nobody, anyone with the link, a password, your organization, or your identity provider), with the security checklist beside it |
| Vulnerabilities | Dependency scans, the block threshold, the background schedule, open findings and scan history |
The tab belongs to the Main environment. Preview environments do not have it. They follow the settings you choose here, see Previews.
Members and owners can change everything on these pages. Readers see the settings and results but cannot save. See Teams and Organizations.
Security checklist
The Security checklist panel sits beside the access choice in Security → Access and on the service Overview tab. A ring at the top shows how many of the six checks pass. Checks that need attention are listed first, each with an icon colored by its status and a button that opens the place that fixes it:
| Check | What it shows |
|---|---|
| Access | Who can reach the service. Protect opens Access when anyone with the link can open it |
| Dependency scan | On or Off. Enable turns scanning on with one click |
| Block deploys at | The severity that stops a build from deploying |
| Background scans | The schedule, or Off |
| Latest scan | Result, findings per severity and age, with a link to the scan |
| Notifications | How many notification channels receive security events |
Access
Security → Access has one question, Who can reach this service? Pick one of the tiles and click Save. Under the tiles a small diagram shows the path a visitor takes to the service for the selected answer, with a short note on what it means.
| Choice | What visitors see |
|---|---|
| Not exposed | Nothing. The service has no public URL. Only other services in your project can reach it |
| Anyone with the link | No sign-in. Anyone with the URL can open the service |
| Password | A browser prompt for one username and password |
| Members of this organization | A redirect to Rock8Cloud sign-in. Only members of your organization get in |
| OIDC provider | A redirect to your organization's identity provider. Anyone who can sign in there gets in |
Password and OIDC provider are available on the Earth plan and above. On lower plans their tiles carry an Earth+ badge, and clicking one explains why with a link to the plans. Members of this organization is available on every plan. See Plans & Usage.
How it applies:
- Everything is saved in one request, including whether the service is exposed. The service is never briefly open between two steps.
- A service uses one choice at a time. It applies to the Main environment and to every open preview, including previews created later.
- Saving never starts a build or a deployment. Running environments update in place, and the Environments panel shows the progress.
- Other services in your project that use a linked
URLorHOSTvariable reach this one over an internal address. Those connections are never asked to sign in, and they keep working when the service is not exposed. See Linked Variables. - If your organization moves below Earth, existing protection keeps working. You can still switch to Anyone with the link or Not exposed, but you cannot turn on or change Password or OIDC protection. Members of this organization stays available.
Not exposed
Not exposed removes the public routes of the service: its platform URL, its custom-domain routes and its preview routes. New previews still build and run, but without public routes. The dashboard, GitHub and deployment notifications do not link to the URL.
Your service URL stays reserved, and your saved protection settings and custom-domain configuration are kept. Choose any other answer to expose the service again, with no new deployment. Choosing the protection that was saved keeps its settings, so a saved password does not need to be entered again. The URL is shown under Build and Deploys → Build Config and is greyed out while the service is not exposed.
While the service is not exposed, uptime monitoring pauses and resumes when you expose it again. You cannot add or verify a custom domain or configure uptime monitoring either, because neither has a public route to check.
Password
- Select Password.
- Enter a Username and a Password. The username cannot contain a colon.
- Click Save.
Visitors get a browser sign-in prompt before the app loads. The password is never shown again after you save it. When you edit the settings later, leave Password blank to keep the current password. Changing the Username requires a new password.
Password protection also covers the service's custom domains. The browser sends the password in the Authorization header, and that header is removed before the request reaches your app. Your app cannot receive its own Authorization header on a password-protected service.
Members of this organization
Visitors sign in with their Rock8Cloud account. Any role gets in: owner, member, or reader.
- Select Members of this organization.
- Click Save.
There is nothing to register with an identity provider. The choice covers Main, every preview and every verified custom domain automatically, including ones added later.
- A signed-in user who is not a member sees a No access to this site page. It has a button to sign in with another account.
- A session lasts one hour. After that the visitor goes through Rock8Cloud sign-in again, which is silent if they are still signed in to Rock8Cloud. Membership is checked again each time, so someone removed from the organization loses access within an hour.
- The logout path
/.rock8cloud/access/logoutonly clears the site's session cookies. It does not sign the user out of Rock8Cloud. - Each hostname has its own session. A visitor who signed in on the default hostname signs in again on a custom domain.
OIDC
OIDC sends visitors to your identity provider to sign in. Providers belong to the organization and are managed by owners in Settings → OIDC Providers, or right here in step 1. See OIDC Providers.
Select the OIDC provider tile. The panel then walks you through three steps:
- Choose your identity provider. A provider whose last check failed cannot be selected. Owners can Add new or Edit the selected provider in place, with the same form as the settings page. A provider added here is selected right away. All providers opens Settings → OIDC Providers.
- Register these URLs with your provider. The step lists the callback URL and the post-logout redirect URL of every environment, with copy buttons. See below.
- Options. Optionally turn on CSRF protection (read CSRF protection first) and note the sign-out path.
Then click Save. Until a provider is chosen, the panel footer says which step is missing.
Anyone who can sign in to the provider is allowed in. Rock8Cloud does not check groups, roles, or other claims. Control who can sign in with the provider's own settings.
Register the callback URLs
Step 2 of the OIDC setup lists these URLs for each environment, with copy buttons:
| URL | Format | What to do with it |
|---|---|---|
| Callback URL | https://<host>/.rock8cloud/access/callback | Register it with the provider as an allowed redirect URI |
| Post-logout redirect URL | https://<host>/ | Register it with the provider as an allowed post-logout redirect URI |
| Logout URL | https://<host>/.rock8cloud/access/logout | Nothing to register. Link to it to sign users out. Step 3 shows the path |
Register both the callback URL and the post-logout redirect URL for every environment, the Main one and each preview. Every preview has its own hostname, so each new preview needs its own registration before anyone can sign in to it. Until then, sign-in on that preview fails at the provider. An environment without a public URL has nothing to register.
Renaming the service or changing its Target URL can change the hostnames of its environments. Register the new URLs with your provider, or sign-in stops working.
Sign out
Link to /.rock8cloud/access/logout on the protected hostname. It clears the sign-in for that hostname in this browser. It does not revoke a session copied to another browser or device, which stays valid until it expires. If your provider offers a logout endpoint, the user is also signed out there and then sent back to the post-logout redirect URL. Without one, the user stays signed in at the provider, so the next visit can sign in again without a prompt.
Reserved paths
Paths under /.rock8cloud/access/ belong to the platform. The callback and logout paths are answered before a request reaches your app. Do not use these paths for your own routes.
Sessions are per hostname
OIDC protects one hostname at a time. One sign-in does not cover your other services.
- Signing in to one service does not sign you in to another service. Each environment hostname, including each preview, has its own session.
- Browser calls from a page on one protected hostname to another protected hostname fail, because the browser has no session for the other hostname.
- Programs that call an API from outside a browser, such as other servers, scripts, or mobile apps, cannot complete an OIDC sign-in. APIs called that way keep their own authentication, so leave OIDC off for a service that must accept those calls.
What your app receives
OIDC protection is a gate in front of your app, not a sign-in system for it. Your app may receive the signed-in user's token cookies. Do not use them to authorize requests. If your app needs to know who the user is, give it its own sign-in.
CSRF protection
CSRF protection is off by default. When it is on, cross-origin POST, PUT, and DELETE requests from signed-in browsers are rejected. Review your app before you turn it on:
- Apps that accept state-changing requests from other origins stop working for those requests.
- Requests without an
OriginorRefererheader are rejected too. Non-browser clients that send POST requests break. - Requests with
Origin: nullare rejected. - GET requests are not affected.
- The logout path is not CSRF-protected.
OIDC and custom domains
OIDC and custom domains cannot be used together, in either direction. Members of this organization works with custom domains.
- You cannot select OIDC provider while the service has any custom domain, including one that is still pending or failed verification. Remove the domains first on Resources and Domains → Custom Domain.
- While a service uses OIDC, you cannot add a custom domain, even when it is not exposed. Switch to Anyone with the link, Password or Members of this organization first.
Environment status
The Environments panel shows the status of each environment. It refreshes on its own while changes apply.
| Status | Meaning |
|---|---|
| Pending | New settings are being applied and checked. An environment that was deployed before protection checks started also shows Pending, with a note that protection has not been checked yet, until its next deployment or access settings change. |
| Protected | Protection is on, and a test request without credentials was turned away. |
| Not protected | The choice is Anyone with the link. Anyone with the URL can open it. |
| Failed, route disabled | Protection could not be confirmed, so Rock8Cloud turns off the environment's public URL. The app keeps running. If the gateway reported an invalid configuration, Rock8Cloud retries on its own. |
| Not exposed | The service is not exposed, so there is no public URL. Your settings are kept. |
| Not deployed | The environment has not been deployed yet. |
Other labels explain why an environment has no public URL right now, for example Disabled, no public URL.
Until an environment shows Protected, it may still answer with its previous settings. Rock8Cloud keeps checking for about five minutes. If a check sees your app answer without protection, or the settings are rejected, Rock8Cloud turns off that environment's public URL instead of leaving it open. The same happens when the environment still does not ask visitors to sign in with the new settings after five minutes, for example because your app answers with its own error page, Not Found, or the previous protection settings. The status stays Pending, with a note that checks continue automatically, only when the checks cannot reach the environment at all. It also stays Pending when the platform's gateway cannot reach your app and answers 502, 503 or 504 for every check. The environment may then still be reachable without signing in, so open it in a private browser window to check.
When an environment shows Failed, route disabled, fix the cause shown under its status, then click Retry on that environment. Saving changed settings also retries every environment.
If the gateway reported an invalid configuration (for example a secret that was still being set up), Rock8Cloud also retries the disabled route on its own 15 minutes after the failure, then 1 hour after the next failure, then 6 hours after the one after that. Each retry turns the public URL back on with protection for a few minutes while it is checked. For any other failure, the route stays off until you fix the cause and click Retry. After the last automatic retry fails, it stays off until you click Retry or change the settings.
Limitations
- Uptime checks are not signed in, so the uptime card does not reflect your app's health. While OIDC is on, they reach your provider's sign-in page and can show the service as up even when your app is down. With Password they get a
401response and can show the service as down. - OIDC works on the platform URL of each environment only and cannot protect custom domains. Members covers the platform URL and every verified custom domain. See OIDC and custom domains.
- There is no list of paths that skip protection. The whole service is protected.
Vulnerabilities
Security → Vulnerabilities scans the packages your service ships with for known vulnerabilities and keeps the history. Scanning is included on every plan.
What gets scanned
The scan reads the JavaScript lockfiles in the build context: package-lock.json, pnpm-lock.yaml, yarn.lock and bun.lock. It compares the exact package versions against known advisories and reports findings of every severity: Critical, High, Medium, Low and Unknown. Each finding names the vulnerability ID, the package, the installed version and the version that fixes it, or no fix yet.
A repository without a supported lockfile gets the result Skipped. Nothing is blocked and nothing is reported as a problem.
Three kinds of scan
| Trigger | When it runs | What it checks |
|---|---|---|
| Build | Before the image is built, on every build while scanning is on | The commit being built |
| Scheduled | On the background schedule | The commit that is running on Main |
| Manual | When you click Scan now | The commit that is running on Main |
Scheduled and manual scans catch advisories published after a version was built. They only report. They never block a deployment, roll anything back, or rebuild the service.
Scan settings
The settings come in two panels, each with its own Save:
Build scans run on every build and can stop a deploy.
- Dependency scanning - turns build scans on or off. Background scans do not depend on it.
- Block deploys at - the lowest severity that stops a build from deploying. See Block threshold.
Background scans never block or roll back a deploy. They only report, and new findings go to your notification channels. They run on their own schedule even when Dependency scanning is off, so you can skip scans on build and still be told about new advisories.
- Scan on a schedule - re-checks the running commit on a schedule. Pick Hourly (every 1 to 12 hours at a chosen minute), Daily, Weekly (one or more days, Weekdays selects Monday to Friday), or Monthly (day 1 to 28), then the time from a searchable list in 15-minute steps. A schedule set as a raw cron expression through MCP still shows here, and picking a frequency replaces it. Search the Timezone list, which starts with your own zone and UTC. The shortest interval is one hour. Under the controls the panel describes the schedule in words and lists the next three runs.
New services start with scanning on and a daily schedule between 09:00 and 10:00 in Europe/Prague. The minute differs per service, so scans spread out. Existing services keep the setting they had and have no schedule until you turn Background scans on. Background scans run for stable environments only.
Block threshold
| Setting | Builds with these findings do not deploy |
|---|---|
| Critical (default) | Critical |
| High and above | Critical and High |
| Never, report only | None. Findings are reported and the build deploys |
Findings below the threshold are reported but never block. A blocked build fails, its scan shows Failed, and the deployment's Vulnerabilities tab lists the findings. Upgrade the packages and push again, or lower the threshold.
Notify at
Notify at in the Notifications panel on Vulnerabilities sets the lowest severity worth a ping. It applies to build, scheduled and manual scans. The change saves right away.
| Setting | Findings that notify and count as new |
|---|---|
| Critical (default) | Critical |
| High and above | Critical and High |
| Medium and above | Critical, High and Medium |
| Every finding | All, including Low and Unknown |
Findings below it are still recorded and counted per severity. They never send Vulnerabilities Found, never count in New, and only reach the Weekly Security Digest when they block deploys. Open findings folds them away behind a Show link, and clicking a severity tile shows that severity anyway. Notify at is separate from Block deploys at, so a build can still be blocked by a finding that does not notify.
Include in weekly digest
Include in weekly digest, under Notify at, is on by default. Turn it off to leave this service out of its project's Weekly Security Digest. The other services of the project still appear, and Vulnerabilities Found keeps working. To stop the digest for a whole channel, turn off Weekly Security Digest on that channel in the same panel.
Scan results
| Result | Meaning |
|---|---|
| Scanning | The scan is running |
| Passed | No finding at or above the threshold. Lower findings may exist |
| Failed | A build scan found something at or above the threshold, so the deployment was blocked |
| Error | The scanner could not run. A build scan that errors also fails the build |
| Skipped | No supported lockfile |
Open findings and scan history
Open findings shows the latest completed scan of the environment: the result, when it ran, the commit and the threshold it used, then one tile per severity with its count and a table of the findings at your Notify at level. Lower findings sit behind a Show link under the table. Click a tile to show only that severity, click it again to show all. The table is sorted by severity and links each vulnerability ID to its public advisory. Fix with agent and Scan now sit in the panel header.
Scan history lists every scan with its Result, Trigger, Commit, Findings per severity, New findings that the previous scan did not have, and When. Click a scan to open its detail page: the findings with the same severity tiles, Fix with agent for that scan, and a Scan details panel with the trigger, the commit (linked to GitHub), the deployment for build scans, the threshold, new findings, who started it and how long it took, plus the lockfiles it read.
History is kept for as long as your organization's audit log retention, 90 days by default. See Audit Logs. The latest scan of every environment is always kept.
Scan now
Scan now starts a manual scan of the commit running on Main. It works even when Dependency scanning is off, so you can check a service before you commit to scanning every build. The scan runs in the background and the page updates when it finishes. If a scan of the environment is already running, no second one starts. The service needs a successful deployment first.
Fix with agent
Fix with agent starts a coding agent session on the service that upgrades the vulnerable packages at your Notify at level to their fixed versions, regenerates the lockfile, runs the existing tests and build, and opens a pull request. Findings without a fixed version stay untouched and are listed in the pull request description. You land in the session, where you can follow the work and send follow-ups.
The button appears when the latest scan has findings at your Notify at level with a fix, you are not a reader, and agents are enabled for your organization. The session is metered like any other agent session. See Agents and AI budget and spend.
Previews
Preview environments have no Security tab, no background scans and no security notifications. Their builds are still scanned with the same switch and block threshold as Main while scanning is on, and the findings are in the preview deployment's Vulnerabilities tab. Access follows the choice you made on Access, see Access.
Notifications
Two events cover security. Choose which channels receive them in the Notifications panel on Vulnerabilities, or under Settings → Notifications → Project channels.
| Event | When it is sent |
|---|---|
| Vulnerabilities Found | A build, scheduled or manual scan of Main finds vulnerabilities at your Notify at level that the previous scan did not have |
| Weekly Security Digest | Every Monday at 09:00 in Europe/Prague, one message per project that lists services with Include in weekly digest on and open findings at their Notify at level, or findings at or above their block threshold. It is a fixed weekly summary of the latest results, separate from the background scan schedule |
A build that a scan blocked is announced by the existing Dependency Vulnerabilities Found event instead, so it is not announced twice. See Notifications for the full list of events and for setting up channels.
Troubleshooting
| Problem | Solution |
|---|---|
| OIDC provider cannot be selected | Remove the service's custom domains, and check that your plan is Earth or higher |
| Password cannot be selected | Password protection needs the Earth plan or higher |
| OIDC sign-in fails with a redirect URI error | Register that environment's Callback URL and Post-logout redirect URL with the provider |
| OIDC sign-in works on Main but not on a preview | Register the preview's URLs. Each preview needs its own |
| OIDC sign-in fails after returning from the provider while the environment shows Protected | The client secret is probably wrong or was changed at the provider. See OIDC Providers |
| Failed, route disabled | Fix the reason shown under the status, then click Retry. Rock8Cloud also retries on its own 15 minutes after the failure, then 1 hour and 6 hours after each next failure, when the gateway reported an invalid configuration |
| Browser requests to another protected service fail | Expected. Sessions are per hostname. See Sessions are per hostname |
| A build fails with a vulnerability message | Open the deployment's Vulnerabilities tab, upgrade the packages or lower Block deploys at |
| A scan shows Skipped | Commit a package-lock.json, pnpm-lock.yaml, yarn.lock or bun.lock |
| Scan now says the environment has no deployed build | Deploy the service once, then scan again |
| No background scans appear | Turn on Scan on a schedule in Background scans, and make sure Main has a deployed build |
| No notification for a new finding | It is below Notify at. Lower the level in the Notifications panel |
| Fix with agent is missing | The latest scan has no finding at your Notify at level with a fixed version, you are a reader, or agents are disabled |