Use the web app.

Find how to do each task in the Rivex web app, page by page.

Harden a Dockerfile.

Open Harden to turn a Dockerfile into a hardened one.

Paste or upload a Dockerfile.

Paste your Dockerfile into the Dockerfile field, or select Upload Dockerfile and pick a file. Then select Harden. A Dockerfile can be at most 512 KB.

Answer the questions Rivex asks.

After you paste, drop or upload a Dockerfile, or pause while you type, the page may show We noticed… with questions about your Dockerfile. They cover published ports, the user, the health check and volumes. Each question shows the line it comes from.

  • Yes, reachable on purpose for a published port.
  • Yes — UID for the user. Enter the UID first.
  • Yes for a health check that your orchestrator runs.
  • Yes, mounted for a volume.

A yes answer writes the fact into Deployment context, and Rivex uses it when it hardens. No removes the question and changes nothing.

Name the real base image.

Base image is optional. Fill it in when the final stage of your Dockerfile is really built from another image, so Rivex works from that image.

Describe the deployment context.

Deployment context is optional. Open it to tell Rivex how the image is built and run. Choose Form or JSON to pick how you enter it.

The form has Run as user, Build target, Build args, Builder and Advanced. The JSON input takes a full context object. The context reference lists every fact you can give. Never paste secrets into the context.

Choose whether to verify the build.

Verify the build in the sandbox builds the hardened Dockerfile in an isolated sandbox. Each build uses one of the month's verified builds of your plan, and the line next to the box says how many are left, for example "4 of 5 verified builds left this month". It counts the builds of the workspace whose policy you pick: an organization's policy uses the organization's builds, and No policy or one of your personal policies uses your own. The box is checked when builds are left. Clear it to harden without a build. When this month's verified builds are used up, the box is cleared and can't be changed; hardening still runs, and the page says from which date builds are verified again. When the server doesn't verify builds, the box is cleared and can't be changed, and the page says build verification is turned off on this server. When build verification is not turned on for the workspace, the result says not enabled for this organization or not enabled for your account.

Read the results.

On Harden, the results appear below the form after you select Harden.

Read the findings.

Findings groups the findings by severity: critical, high, medium and low. Each finding shows its rule, the line number or line range, a message and an explanation. A finding about something your Dockerfile lacks has no line. It says what is missing instead. When your deployment context changed a finding, the finding says so.

See the findings inside the Dockerfile field.

After Rivex hardens, the Dockerfile field becomes a read-only view with numbered lines. Each finding sits under the line it points at. Select Show in Dockerfile on a finding to jump to its line. Select Back to finding to jump back.

Edit the Dockerfile again.

Select Edit, press Enter or double-click a line to bring back the editable field. After you change the text, the page says Results are for the previous version — Harden again. Select Harden to get fresh results.

Read the hardened Dockerfile.

Hardened Dockerfile shows the result in full.

Compare the changes.

Changes shows only what differs from your original, with a plus or minus beside each line. Select Show full file to see every line.

Download the files.

Downloads offers Download hardened Dockerfile, Download SBOM and Download attestation. When Rivex suggests an ignore file, it also offers Download .dockerignore. The attestation downloads as attestation.sigstore.json, a standard Sigstore bundle that cosign verify-blob-attestation checks.

Read the SBOM and the attestation.

Above Download SBOM, "What's in the base image" opens a table of the packages in the SBOM: name, version, type and licence, sorted by name. It is the SBOM of the base image, not the final image. The page shows the base image's name and version and the number of packages. Type the filter box to narrow the table by any of the four columns. If Rivex can't read the SBOM, the view says so and the download is unchanged. The same view is on an open run in History.

Above Download attestation, a short summary shows who signed it, when, the shortened SHA-256 of your Dockerfile and of the hardened Dockerfile (select Copy for the full value), the number of findings and the build verification result. The summary is read from the file and is not checked: it says so, and links to the page "Verify a Rivex attestation" (/verify-attestation.html), which explains how to check the signature.

Understand SBOM and attestation statuses.

An SBOM lists what is in your base image. An attestation is a signed record of the hardening. When one of them is not available, its download button is replaced by a line that starts with its name, SBOM or Attestation, then a colon and one of these statuses:

  • turned off on this server: the operator turned SBOM generation off for the whole server. This is not a failure.
  • not enabled for this organization: the run used an organization's policy, and SBOM generation is not turned on for that organization. This is not a failure.
  • not enabled for your account: a personal run, and SBOM generation is not turned on for your account. This is not a failure.
  • turned off on this server by its operator — a server setting, not a failure: signing is off on this server. Nothing went wrong. The line ends with the link Attestation docs.
  • server busy — try again in a moment: the server is busy. Select Harden again shortly.
  • generation failed — try again: generating the SBOM or the attestation failed or timed out. Select Harden again.
  • not signed — the hardened file still contains a secret on line N. Remove it and run again.: the hardened Dockerfile still holds a secret on line N, so Rivex signed and published nothing for this run. Remove the secret and select Harden again. When the line is not known, the line leaves out "on line N".
  • skipped — <image> is <N> MB compressed, over the size limit.: the base image is too big for an SBOM. The line may go on to name a slim variant that fits. Trying again does not help. When the size is not known, the line says only that the image is over the size limit.
  • no base image to scan: Rivex could not work out which base image to scan. One of the next five reasons may follow it.
  • the image is built FROM scratch: there is no base image to scan.
  • the base image uses a build argument with no value: the FROM line uses a build argument that has no value.
  • the image is built on an earlier stage: the final stage starts from another stage, not from an image.
  • the build target stage was not found: the build target names no stage in your Dockerfile.
  • the base image reference is not valid: Rivex cannot read the image reference.
  • registry not allowed on this server: this server is set not to scan images from that registry. When the registry is known, the line names it.

The Build verification line is always shown, with one of these texts:

  • passed — the hardened Dockerfile built in the sandbox
  • failed, followed by why when Rivex could read it from the build's log: the step whose line failed, its instruction and the exit code, for example "the step on line 3 (RUN make) exited with code 2.", with the build's error lines in a block below it. A build that installs packages with pip, npm, Maven or apt runs with a short-lived sandbox credential, so Rivex never shows its output: the line then names the error only when Rivex recognizes it, for example "npm ci needs a package-lock.json or npm-shrinkwrap.json, and the build had none." A line Rivex added or changed while hardening says so, and to check that change in the diff or turn off its rule in a policy. When the Dockerfile copies no project files and the errors point at missing ones, the line says to add a COPY for them, then explains that the website sends only the Dockerfile and gives the command rivex harden Dockerfile --build-context ., with links to install the CLI and to the CLI docs. Without a readable log the text is "failed — the hardened Dockerfile did not build in the sandbox".
  • turned off on this server: the operator turned build verification off for the whole server. This is not a failure.
  • not enabled for this organization: the run used an organization's policy, and build verification is not turned on for that organization. This is not a failure.
  • not enabled for your account: a personal run, and build verification is not turned on for your account. This is not a failure.
  • not verifiable offline, followed by the line and the host: the sandbox has no internet, and that step needs a host with no cache. The text reads "line N reaches HOST, which has no offline cache". Nothing was built, so this is neither a pass nor a failure.
  • not run, followed by the line that copies project files: the Dockerfile uses COPY, ADD or a bind mount on files from your project, and they weren't sent with the Dockerfile. The text reads "line N copies project files (INSTRUCTION) that weren't sent with the Dockerfile". Nothing was built, so this is not a failure. To verify with them, run rivex harden Dockerfile --build-context . in your project folder (install the CLI; the CLI guide explains it).
  • not run — skipped for this run.: Verify the build in the sandbox was cleared for this run, so nothing was built. This is not a failure.
  • not run, because this month's verified builds are used up: the text reads "this month's verified builds are used up (N of N). They renew on DATE." The plan's verified builds for this month are all used, so nothing was built. This is not a failure: the hardened Dockerfile and the findings are there as usual. The line links to Billing, which shows what is used.

Review past runs.

Open History to see your earlier runs. Each row shows the image, the date and the number of findings. Older runs are on further pages.

Open a run.

Select a run to open it. The run shows Findings, Your Dockerfile, Hardened Dockerfile, Changes and Artifacts. Artifacts holds the SBOM, the attestation and the build verification, with the same statuses as on Harden. A run signed before attestations used the standard Sigstore format offers Download attestation (legacy format) instead, which saves attestation.json.

Download a report.

Select Download report on an open run to save its report.

Delete a run.

Select Delete run. The page asks you to confirm and says that this cannot be undone. Select Delete to remove the run, or Cancel to keep it. Whether Rivex keeps runs at all is a setting. See the section on account settings.

Manage hardening policies.

Open Policies. A policy is a named set of rules that Rivex switches off when you use it.

Create a policy.

Select New policy, type a name in Policy name and select Create.

Turn rules on or off.

Each policy lists every rule with a checkbox. Untick a rule to switch it off for that policy. Select Apply to save. The card shows Saved.

Rename or remove a policy.

Select Rename to change a policy's name. Select Remove, then Confirm, to delete it.

In an organization, only owners and admins can change its policies. Everyone else sees them marked read-only.

Use a policy when you harden.

When you have a policy to choose from, Harden shows a Policy list above the Dockerfile field. The list groups your own policies under Personal and each organization's policies under the organization's name. Pick a policy before you harden. Leave it on No policy to apply every rule.

Work in an organization.

Open Organization to work with your team.

Create an organization.

You need a verified email address. Type a name in Organization name and select Create organization. You become its owner. An account can own one organization; to create another, you would need to give up the first. For the same reason, someone who owns an organization can't be made an owner of another one. The Active organization list in the header switches between Personal and each organization you belong to. The Organization page, the audit log and billing follow the one you pick. If you sign in with Google and Google confirms your address (a Gmail address, or a Google Workspace address on your organization's domain), your email counts as verified.

Invite a member.

Owners and admins see Invite member. Enter an Email address, choose a Role (admin or member) and select Send invitation. The person you invite sees Pending invitations with Accept and Decline. Rivex sends no email: ask the person to sign in at /sign-in to accept. Accepting needs a verified email address. While sign-up is closed, someone without a Rivex account must join the waitlist and be approved first.

Know what each role can do.

  • owner: can change the role of any admin or member and remove any admin or member. The only owner cannot be removed or demoted.
  • admin: can invite people, remove members and change the organization's settings. An admin cannot remove an owner.
  • member: can see the organization's policies and leave it.

Owners and admins can open the Audit log and set Retention mode.

Change a role or remove a member.

The Members list shows each member's role. An owner picks a new role from the list beside a member. Select Remove beside a member to remove them.

Leave an organization.

Select Leave organization. The button is disabled for the only owner, who must give the role to another member first.

Read the audit log.

Open Audit log. The log is per organization, and only owners and admins can view it.

Filter the entries.

The table has the columns When (UTC), Actor, Action and Target. Narrow it with the filters Action, Actor, From (UTC) and To (UTC), then select Apply. Use the paging buttons to move through long logs.

Download the log as CSV.

Select Download CSV to save the entries as a CSV file.

Create and revoke API keys.

Open API keys to manage the keys that the command line, CI and the API use.

Create a key.

You need a verified email address. Type a Name, then select Create key. The page shows the key once, under Your new API key — you won't see this again. Select Copy and store the key somewhere safe before you select Dismiss. The list afterwards shows each key's name, a short id and its date, never the key itself.

Revoke a key.

Select Revoke beside a key, then Yes, revoke. Anything that still uses the key stops working.

Change account settings.

Open Settings to manage your account.

Change your password.

Profile shows your email address and whether it is verified. If it is not, select Resend verification email. To change your password, enter your Current password, a New password and Confirm new password, then select Change password.

Choose whether runs are kept.

Under Run history, Retention mode has two choices: Persistent — keep run history and Ephemeral — discard after session.

Sign out of open sessions.

Sessions lists each open session with its browser, when it signed in and when it was last active. The one you are using is marked This device. Select Sign out on a row, then Yes, sign out, to end that session. Select Sign out everywhere to end all of them.

Check your plan and usage.

Open Billing. It follows the Active organization: an organization shows its plan, and Personal shows your personal workspace.

Current plan shows the Plan, Verified builds this month (used out of what the plan allows), Renews on and, for an organization, Seats. A personal workspace is on the Individual plan, and an organization on the Team plan, which has more verified builds a month. Hardening runs are not limited: only builds verified in the sandbox count, and a run where nothing was built uses none. A run counts against an organization when it uses one of the organization's policies; otherwise against your personal workspace. When the month's verified builds are used up, the page says so and gives the date they renew. Plans are set by Rivex, and no one in an organization can change its plan.