24 lines
670 B
Bash
Executable File
24 lines
670 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Dry-run demo — show effective policy without executing.
|
|
#
|
|
# This is the killer feature for AI agents:
|
|
# Agent: "Run X with these secrets."
|
|
# User: "Hold on, let me see exactly what policy you'd be running under."
|
|
# $ xop --dry-run ...
|
|
#
|
|
# No Touch ID / PAM needed, no real secrets required. Pure policy inspection.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
./target/release/xop \
|
|
--dry-run \
|
|
--secret DB_PASS='DB_PASS' \
|
|
--secret API_KEY='API_KEY' \
|
|
--allow-net='mysql.internal:3306,api.internal:443' \
|
|
--deny-net='*' \
|
|
--deny-read='/etc/shadow,~/.aws/credentials' \
|
|
--on-leak=kill \
|
|
-- \
|
|
./deploy.sh --target=staging |