@ory/argus 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,13 +25,14 @@ print, inspect, commit, or place in a prompt:
|
|
|
25
25
|
|
|
26
26
|
- `ORY_USER_OAUTH2_TOKEN`
|
|
27
27
|
- `ANTHROPIC_API_KEY`
|
|
28
|
-
- any
|
|
28
|
+
- any streamed deployment credential value
|
|
29
29
|
- SPIFFE private keys or SVID file contents
|
|
30
30
|
|
|
31
31
|
The user OAuth2 token administers deployments as the signed-in identity. The
|
|
32
32
|
generated `ORY_AGENT_API_KEY` or customer-issued SVID is a separate runtime
|
|
33
33
|
credential. Never exchange their roles. Do not revoke a deployment or workload
|
|
34
|
-
registration
|
|
34
|
+
registration that predates the current run. Always revoke the fresh deployment
|
|
35
|
+
created for the current streamed-credential run during cleanup.
|
|
35
36
|
|
|
36
37
|
## Prerequisites
|
|
37
38
|
|
|
@@ -145,8 +146,9 @@ to `0.0.0.0`, expose the application port, and define a health check. Ignore
|
|
|
145
146
|
credentials, deployment state, dependencies, build output, and local environment
|
|
146
147
|
files in Git and the Docker context.
|
|
147
148
|
|
|
148
|
-
For Talos,
|
|
149
|
-
|
|
149
|
+
For Talos, the trusted deployment controller must inject the streamed values
|
|
150
|
+
directly into the workload's runtime secret facility without creating a local
|
|
151
|
+
credential file. For SPIFFE, use the file-backed environment contract in
|
|
150
152
|
`examples/spiffe`: mount the parent of the atomically switched `current`
|
|
151
153
|
generation read-only, and point `ORY_AGENT_SPIFFE_GENERATION_PATH` at `current`.
|
|
152
154
|
TypeScript `OryAgentClient.fromEnv()` and Python `OryAgentClient.from_env()` use
|
|
@@ -212,39 +214,31 @@ explicit owner must equal the authenticated identity.
|
|
|
212
214
|
|
|
213
215
|
## Create and deploy
|
|
214
216
|
|
|
215
|
-
|
|
217
|
+
Let the CLI create a fresh deployment and launch the trusted deployment
|
|
218
|
+
controller:
|
|
216
219
|
|
|
217
220
|
```bash
|
|
218
|
-
ory-agent deployment
|
|
221
|
+
ory-agent deployment run \
|
|
222
|
+
--result-file "$RUNNER_TEMP/ory-agent-result.json" \
|
|
223
|
+
-- trusted-deployer --credentials-stdin
|
|
219
224
|
```
|
|
220
225
|
|
|
221
|
-
The CLI
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
Verify `/healthz` and invoke `/probe` first. The guarded probe makes the first
|
|
239
|
-
authenticated runtime request that activates a ready deployment. Then run:
|
|
240
|
-
|
|
241
|
-
```bash
|
|
242
|
-
ory-agent deployment wait --for active --timeout 10m
|
|
243
|
-
ory-agent deployment status
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
Finally invoke `/run` with a prompt that calls `deployment_probe`. Diagnose
|
|
247
|
-
failures with secret-redacted logs.
|
|
226
|
+
The CLI sends the exact credential only to the child process's anonymous stdin,
|
|
227
|
+
never public stdout, a shell variable, log, or intermediate file. It strips its
|
|
228
|
+
deployment-administration credentials from the child environment. The optional
|
|
229
|
+
mode-`0600` result is non-secret and contains the newly created deployment ID.
|
|
230
|
+
Every invocation issues a new deployment and writes no credential, state,
|
|
231
|
+
pending journal, plaintext stage, or age identity.
|
|
232
|
+
|
|
233
|
+
The trusted controller must load stdin in memory, inject the values into the
|
|
234
|
+
workload secret facility, start and supervise the workload, verify `/healthz`,
|
|
235
|
+
invoke the guarded `/probe`, and exit only when that bounded workload run is
|
|
236
|
+
finished. For a long-running service, the controller must remain its supervisor;
|
|
237
|
+
do not detach and exit while the workload still needs the credential. After a
|
|
238
|
+
successful controller exit, the CLI waits for **Active** and automatically revokes.
|
|
239
|
+
It also revokes after controller failure, and a revoke failure makes the command
|
|
240
|
+
fail. Process termination before cleanup can still orphan a deployment; inventory
|
|
241
|
+
and explicitly revoke it rather than assuming a rerun will recover or reuse it.
|
|
248
242
|
|
|
249
243
|
## Customer-operated SPIFFE
|
|
250
244
|
|
|
@@ -257,7 +251,7 @@ customer exclusively owns and operates:
|
|
|
257
251
|
- helper/CSI/sidecar availability and the permissions on mounted key material
|
|
258
252
|
|
|
259
253
|
Ory records the expected workload identity and authenticates broker requests.
|
|
260
|
-
Neither `ory-agent deployment
|
|
254
|
+
Neither `ory-agent deployment run` nor the Ory packages install SPIRE, choose
|
|
261
255
|
selectors, create registrations, issue SVIDs, rotate files, or revoke workload
|
|
262
256
|
entries.
|
|
263
257
|
|
|
@@ -311,5 +305,6 @@ in the customer's non-production identity domain:
|
|
|
311
305
|
Report changed files, format/typecheck/test/build results, Docker health,
|
|
312
306
|
non-secret deployment ID and status, fixed-query and user-query probe results,
|
|
313
307
|
activation status, and blockers. Never report credentials, environment values,
|
|
314
|
-
authorization headers, or credential-file contents.
|
|
315
|
-
|
|
308
|
+
authorization headers, or credential-file contents. The trusted controller must
|
|
309
|
+
clean up its bounded workload before exiting; `deployment run` then revokes the
|
|
310
|
+
fresh Agent Security deployment automatically.
|
|
@@ -16,8 +16,9 @@ Use this playbook to turn the user's intent into a complete, secured deployment:
|
|
|
16
16
|
The user should be able to ask for an agent in product terms. Inspect the repository,
|
|
17
17
|
preserve its package manager and conventions, scaffold the application and controller,
|
|
18
18
|
run validation, and deploy it through the commands below. Ask before overwriting an
|
|
19
|
-
existing application or revoking a deployment
|
|
20
|
-
|
|
19
|
+
existing application or revoking a deployment that predates the current run. Always
|
|
20
|
+
revoke the fresh streamed-credential deployment during cleanup. Ask for missing
|
|
21
|
+
credentials; never fabricate them.
|
|
21
22
|
|
|
22
23
|
Use `ory-build-agent` for another SDK and `ory-deploy-agent` for the canonical Claude
|
|
23
24
|
Agent SDK Docker/Kubernetes deployment. Use `ory-e2b-sandbox` only when installing an
|
|
@@ -28,8 +29,8 @@ SDK application deployment.
|
|
|
28
29
|
|
|
29
30
|
Keep these components separate:
|
|
30
31
|
|
|
31
|
-
1. The trusted controller holds `E2B_API_KEY`, `OPENAI_API_KEY`, and the
|
|
32
|
-
|
|
32
|
+
1. The trusted controller holds `E2B_API_KEY`, `OPENAI_API_KEY`, and the streamed
|
|
33
|
+
deployment values in memory.
|
|
33
34
|
2. The E2B template contains only source and pinned dependencies. It contains no
|
|
34
35
|
credentials and no Agent start command.
|
|
35
36
|
3. The sandbox receives `OPENAI_API_KEY` and `ORY_*` only in the Agent command's
|
|
@@ -41,7 +42,7 @@ Never print, inspect, commit, upload, or place in a prompt:
|
|
|
41
42
|
|
|
42
43
|
- `OPENAI_API_KEY` or `E2B_API_KEY`
|
|
43
44
|
- `ORY_AGENT_API_KEY`
|
|
44
|
-
- any
|
|
45
|
+
- any streamed deployment credential value
|
|
45
46
|
- a user OAuth2 token
|
|
46
47
|
|
|
47
48
|
Never inject `ORY_USER_OAUTH2_TOKEN` into E2B. The deployment package is a complete
|
|
@@ -222,22 +223,28 @@ package_recipe_version: v1
|
|
|
222
223
|
credential_method: talos_api_key
|
|
223
224
|
```
|
|
224
225
|
|
|
225
|
-
Review the plan. Then
|
|
226
|
+
Review the plan. Then let the CLI create a fresh deployment and launch the
|
|
227
|
+
trusted E2B controller:
|
|
226
228
|
|
|
227
229
|
```bash
|
|
228
|
-
ory-agent deployment
|
|
230
|
+
ory-agent deployment run \
|
|
231
|
+
--result-file "$RUNNER_TEMP/ory-agent-result.json" \
|
|
232
|
+
-- trusted-e2b-controller --credentials-stdin
|
|
229
233
|
```
|
|
230
234
|
|
|
231
|
-
The CLI
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
credential
|
|
236
|
-
|
|
235
|
+
The CLI sends credentials only through the child process's anonymous stdin,
|
|
236
|
+
never public stdout, a shell variable, log, or intermediate file. It strips
|
|
237
|
+
deployment-administration credentials from the child environment. The atomic
|
|
238
|
+
mode-`0600` result contains the non-secret new deployment ID. `run` writes no
|
|
239
|
+
credential, state, pending journal, plaintext stage, or age identity. It waits
|
|
240
|
+
for **Active** after the controller succeeds and automatically revokes on every
|
|
241
|
+
normal success or failure path. A failed revoke fails the command. Process
|
|
242
|
+
termination before cleanup can still orphan a deployment, so inventory and
|
|
243
|
+
explicitly revoke it rather than assuming a rerun will recover it.
|
|
237
244
|
|
|
238
245
|
## Launch through the trusted controller
|
|
239
246
|
|
|
240
|
-
Load
|
|
247
|
+
Load credential stdin into a validated in-memory map without logging it. Require
|
|
241
248
|
exactly the deployment variables emitted by Agent Security, including
|
|
242
249
|
`ORY_AGENT_API_KEY`, `ORY_AGENT_SUBJECT_ID`, and `ORY_AGENT_ROOT_DELEGATION`. Add
|
|
243
250
|
`OPENAI_API_KEY` only to the Agent command environment.
|
|
@@ -271,9 +278,8 @@ runtime request. Therefore use this order:
|
|
|
271
278
|
1. Launch a canary sandbox from the immutable build.
|
|
272
279
|
2. Run the fixed guarded probe inside it with command-scoped credentials.
|
|
273
280
|
3. Verify the expected output files exist without dumping process environment.
|
|
274
|
-
4. Run
|
|
275
|
-
5.
|
|
276
|
-
6. Run the user's page-generation prompt and validate the static output.
|
|
281
|
+
4. Run the user's page-generation prompt and validate the static output.
|
|
282
|
+
5. Exit successfully so `ory-agent deployment run` verifies **Active** and revokes.
|
|
277
283
|
|
|
278
284
|
Start in Agent Security `observe`, review the recorded decision and activity, grant the
|
|
279
285
|
expected tool, deliberately promote policy to `enforce`, and prove an explicit deny keeps
|
package/dist/build-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repo": "ory-agent-plugins",
|
|
3
|
-
"commit": "
|
|
4
|
-
"commitShort": "
|
|
3
|
+
"commit": "10e9a2152966a02218217738fe24ba4172efda7d",
|
|
4
|
+
"commitShort": "10e9a21",
|
|
5
5
|
"branch": "main",
|
|
6
|
-
"commitDate": "2026-10-
|
|
6
|
+
"commitDate": "2026-10-02T19:52:18-07:00",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"builtAt": "2026-10-
|
|
8
|
+
"builtAt": "2026-10-03T02:56:24.735Z"
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/argus",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "Ory Argus: the core API for building authentication, authorization, and audit into AI agent harness plugins, extensions, and custom integrations",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://ory.com",
|