Read environment files as text
APG rejects shell expansion and command substitution.
Local request guard / v0.1.0
For developers switching dev, staging, and production before they run a request.
See a blocked production request now.
cargo install --git https://github.com/B-Divyesh/sf-api-profile-guard.git --locked api-profile-guard
Sample check / 02
Change the sample request and check its policy result. The browser sends no input and starts no client.
READY
Choose an environment and operation. Then check the request.
Production policy / 03
Production requests need an exact host, an allowed operation, and the configured production confirmation phrase.
# Secrets stay in .env.prod
[profiles.production]
env_file = ".env.prod"
required = ["API_BASE_URL", "API_TOKEN"]
credential_class = "live"
production = true
acknowledgement = "production"
allowed_hosts = ["api.example.com"]
allow = ["GET /v1/*", "POST /v1/orders"]
deny = ["* /v1/admin/*"]
APG rejects shell expansion and command substitution.
Receipts exclude environment values, headers, query strings, and request bodies.
A blocked run does not start curl, Bruno, or your script.
CLI demo / 04
apg demo creates a temporary workspace. It shows one blocked request and one allowed request.
One binary / no account
Build the MIT-licensed Rust binary from the public source.
Install from source