Protection rules and IP allowlists
Require approval before the CLI reads protected environments and restrict access by IP address.
Protection rules
Add rules that must be satisfied each time the CLI downloads or runs with values from an environment, such as production. When several rules are enabled, all of them must be satisfied. Console access and automatic container injection are unchanged.
| Rule | What it requires |
|---|---|
| User authentication | The user running the command approves it by authenticating again right before each download or run. |
Open an Application Secrets or Shared Secrets group, select an environment, open its Access tab and select the rules to enable under Protection rules. Changes are saved immediately. Environment management permission is required to change rules; other users with secret access see them read-only. Protected environments show a Protected badge in the environment list and path.
Rules also apply when an Application environment inherits or explicitly references values from a protected Shared environment.
When you run rdc secret runtime or rdc secret download for an environment with user authentication:
- The CLI asks
Confirm your identity in the browser to continue? (y/N). Any answer other than yes stops without running anything. - Your browser opens the RDC approval page with a confirmation code. Approve only if it shows the same code as your terminal and you started the command.
- Authenticate again with one of the methods shown for your account. The CLI then continues automatically. Selecting Reject stops the command.
Each approval is valid for one download or run, for the same account and access token, within 5 minutes. The account that runs the command must approve it. Approvals and rejections, including the method used, appear in Audit.
The approval page offers the methods of the signed-in account:
| Account | Methods offered |
|---|---|
| Has a registered passkey | Passkey only |
| No passkey | Account password, or the linked Google account |
A passkey confirms that you are present on your own device. A password can be phished, and Google confirmation succeeds whenever that Google account is already signed in on the browser. Register a passkey in your account security settings for the strongest protection; once registered, the other methods are no longer accepted for your account.
Protected environments cannot be approved in non-interactive runs, such as CI jobs, because there is no one to approve them. Older CLI versions cannot approve and will stop; update the CLI.
Use protected environments in CI
CI jobs use a service account token in RDC_TOKEN. Service account tokens work with rdc secret download and rdc secret runtime only, and the account needs Envault Secret Accessor (or another role with secret-value access) in the workspace. Pass --workspace, --group and --environment; rdc secret configure is for signed-in users.
To let a CI job read a protected environment without approval, both of the following are required:
- Issue the service account token with Bypass protection rules (for CI). Only Workspace Owners and Admins can choose this option, it requires confirming a warning, and it cannot be changed after issuance.
- In the environment's Access tab, turn on Allow CI bypass tokens under Protection rules. Every protected environment the job reads, including inherited or referenced Shared environments, must allow it.
Bypass tokens skip approval
A bypass token reads protected environments without anyone approving the request. Anyone who obtains it can do the same until it expires or is revoked.
- Store it only in your CI secret store, never in source code, logs or build output.
- Give it the shortest practical expiration and allow bypass tokens only on the environments the job needs.
- Revoke it immediately if it may have leaked, then review the exports recorded in Audit.
IP allowlists still apply to bypass tokens.
Environment IP allowlists
Restrict Developer API and CLI secret downloads/runtime fetches to approved networks. Console access continues from any network with your signed-in account and IAM permissions. Automatic container injection is unchanged.
Open an Application Secrets or Shared Secrets group, select an environment, and open its Access tab to edit the Firewall Policy. Environment management permission is required. The Variables tab contains the environment's secret editor. Switching tabs within the same environment preserves unsaved variable and access-policy edits.
- Add up to 100 IP addresses or CIDR ranges. Each row can have an optional name, such as Office or VPN, up to 100 characters. Names are saved with the environment.
- Select Add address for another row or Use my IP to add your current public IP. Single IPv4 addresses receive
/32; IPv6 addresses receive/128. - Use the remove button to delete a row. Discard changes restores the saved list. Changes take effect only after saving. Duplicate addresses, invalid ranges and rows with a name but no address cannot be saved.
- Enter the public egress IP of your office, VPN or automation runner, rather than its private LAN address.
- Select Save changes to replace the list. An empty list permits any network, subject to IAM.
Downloads must satisfy the application's policy and all applicable inherited or explicitly referenced Shared source policies. Missing or unverifiable client addresses cannot read restricted environments. These rules do not revoke values already downloaded or injected into workloads.
If a CLI download is denied, use an approved network or ask an environment manager to review the application and its Shared sources. Managers can update policies in Console regardless of their current IP. Contact support if an approved network is still denied.