Partner allowlist
Mercury IP allowlist from CI
Mercury requires an IP whitelist on Read and Write API tokens: individual IPv4 or IPv6 addresses, or CIDR ranges, edited on the token. Read-only tokens, and custom tokens whose scopes are not marked as requiring it, do not. A write token cannot be used from a GitHub-hosted runner's changing address.
. If a provider has moved a setting, their documentation is the authority.
What Mercury requires
Their token security docs are unusually direct. A Read and Write token must have a whitelist, so a leaked token cannot be replayed from an arbitrary host. Formats are single addresses and CIDR, v4 and v6, comma-separated, edited on the token page. They say they do not offer a way around it for those scopes.
They also name the usual escapes: Fixie or QuotaGuard on Heroku, an Elastic IP on a NAT Gateway or similar on AWS, or a whole known range in CIDR if your platform publishes one. A range that means “all of GitHub Actions” is a whitelist in form and not in spirit. Prefer a dedicated address or a small CIDR you control.
If the workflow only needs scopes that Mercury does not mark as requiring a whitelist, a read-only or narrower custom token avoids the problem. Do not take a write token “just in case” and then discover CI cannot call it.
Putting a workflow on the token
- 1Decide the egress path using the static IP guide. Mercury will accept a CIDR, so a larger-runner range can work on Enterprise Cloud. A single NAT address is easier to reason about.
- 2Create the token with the write scopes you need and add every egress address before the first production run. Update the token page when the addresses change. Mercury does not learn them from your cloud account.
- 3Put the token in CI secrets. Confirm a write from the workflow succeeds, and a write from your laptop (off the list) fails.
- 4Keep read-only tokens unscoped to the NAT if humans need to inspect the account without borrowing the production egress path.
The audit gap Mercury cannot close
Mercury can tell you the token and the source address. They cannot tell you which GitHub workflow held the token. A proxy URL that every job inherits makes the whitelist equivalent to “anyone in CI.” Binding the egress path to one workflow, and recording the connection, is the difference between an allowlist entry and an audit trail.
Sources
Related
Mercury already tells you to get a static IP. The next question is who holds it.
Proofbound is in development so that static IP is dedicated to you and bound to the workflow that passed policy, instead of a proxy password shared by every job. Mercury's token stays the credential they issued.
One email when early access opens.