Commit 3ae096d
authored
feat(agent_secrets): add 1Password as optional secret store backend (#5)
* feat(agent_secrets): add 1Password as optional secret store backend
Add OnePasswordStore implementing the SecretStore trait via the op CLI,
following the same pattern used by cargo-credential-1password.
- New platform/onepassword.rs with put/get/delete/list_keys via op CLI
- Items stored as Secure Notes with base64 content, tagged 'shadi'
- Runtime backend selection via SHADI_SECRET_BACKEND=onepassword env var
- Configurable vault (SHADI_OP_VAULT) and account (SHADI_OP_ACCOUNT)
- Gated behind 'onepassword' Cargo feature flag
- Feature enabled in shadictl and shadi_py
- Unit tests for JSON parsing, error classification, and construction
Closes #4
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* fix(demo): fix sandbox and secrets for 1Password backend demo
- Fix macOS Seatbelt sandbox: add sysctl-read, unrestricted mach-lookup
for op daemon, ~/.slim write access for SLIM bindings, and resolve
relative policy paths to absolute before emitting subpath rules
- Set default llm_provider to anthropic in secops.toml and import script
- Update import script to read LLM_PROVIDER env var with anthropic default
- Update launch scripts to forward SHADI_SECRET_BACKEND, SHADI_OP_VAULT,
SHADI_OP_ACCOUNT and use uv run --no-project --python
- Add just build auto-install of shadi .so to venv
- Add -op Justfile targets for 1Password-backed demo workflow
- Update docs: README, architecture, security, cli, demo, scripts/README
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* fix(demo): pre-read 1P secrets, code-sign .so, fix SLIM startup and TLS
- scripts/launch_slim.sh: remove --endpoint flag (conflicts with slimctl)
- scripts/launch_secops_a2a.sh: add SLIM TLS cert defaults, PYTHONUNBUFFERED,
and pre-read all 1Password secrets into SHADI_SECRET_* env vars before the
sandbox starts (op CLI hangs without a TTY in background processes)
- scripts/launch_avatar.sh: same pre-read block for avatar LLM + SLIM secrets
- agents/secops/skills.py: require_shadi_secret() checks SHADI_SECRET_<KEY>
env var fallback before calling op; avoids sandbox op hang
- agents/avatar/adk_agent/agent.py: same env var fallback in
require_shadi_secret_value(); fix send_message() to collect artifacts from
all terminal states using state.value for correct enum comparison
- agents/secops/a2a_server.py: startup print, executor debug print
- crates/shadi_sandbox/src/platform/macos.rs: allow ~/.cache write for gh CLI
- Justfile: codesign .so after build; demo-start depends on demo-stop;
op vault list preflight in demo-start-op/demo-avatar-op
- policies/demo/*.json: add litellm.prod.outshift.ai and github.com to net_allow
- tools/test_avatar_transport.py: diagnostic transport test script
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* feat(secops): add OpenTelemetry tracing for command and skill execution
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* fix: resolve multiple bugs in sandbox, OTel, and memory storage
- sandbox/macos: normalize resolve_path('.') to avoid trailing dot in
Seatbelt subpath rules (was silently denying writes to sandboxed CWD)
- secops/memory: fix SqlCipherMemoryStore called with key name instead of
resolved key value; pass actual secret as key= arg not key_name=
- secops/a2a_server: normalize labels list to comma-separated string
before passing to skill_collect_security_issues
- secops/telemetry: fix service.name empty when OTEL_SERVICE_NAME='';
use 'or' fallback instead of getenv default; forward OTEL vars via Justfile
- tools/shadi_prompt.py: fix pre-existing syntax corruption (require_slima2a_packages
body interleaved with load_secops_config and stray parser.add_argument calls;
create_prompt_session missing if-not-ok body and return)
- tools/test_avatar_transport.py: configurable timeout via CLI arg
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* chore: update demo
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
* chore: update demo
Signed-off-by: Luca Muscariello <muscariello@ieee.org>
---------
Signed-off-by: Luca Muscariello <muscariello@ieee.org>1 parent e27d2e9 commit 3ae096d
File tree
38 files changed
+3998
-611
lines changed- agents
- avatar
- adk_agent
- secops
- adk_agent
- evals
- tests
- crates
- agent_secrets
- src
- platform
- shadi_py
- shadi_sandbox/src/platform
- shadictl
- docs
- policies/demo
- scripts
- tools
38 files changed
+3998
-611
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
151 | | - | |
| 159 | + | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
166 | 181 | | |
167 | 182 | | |
168 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
169 | 242 | | |
170 | 243 | | |
171 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
201 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
208 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
209 | 238 | | |
210 | 239 | | |
211 | 240 | | |
| |||
223 | 252 | | |
224 | 253 | | |
225 | 254 | | |
226 | | - | |
227 | | - | |
228 | 255 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
232 | 268 | | |
233 | 269 | | |
234 | 270 | | |
| |||
251 | 287 | | |
252 | 288 | | |
253 | 289 | | |
254 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
255 | 295 | | |
256 | 296 | | |
257 | 297 | | |
| |||
0 commit comments