vgs-cli 1.37.0.dev2__py3-none-any.whl → 1.37.0.dev3__py3-none-any.whl
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.
- vgs_cli-1.37.0.dev3.data/data/vgscli/agent-gateway-schema.yaml +59 -0
- vgs_cli-1.37.0.dev3.data/data/vgscli/agent-gateway.yaml +16 -0
- vgs_cli-1.37.0.dev3.data/data/vgscli/reveal-session-schema.yaml +94 -0
- vgs_cli-1.37.0.dev3.data/data/vgscli/reveal-session.yaml +34 -0
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/METADATA +146 -1
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/RECORD +46 -36
- vgscli/_version.py +1 -1
- vgscli/agent_gateway_api.py +293 -0
- vgscli/audits_api.py +9 -0
- vgscli/cli/__init__.py +17 -5
- vgscli/cli/commands/apply.py +120 -0
- vgscli/cli/commands/delete.py +37 -0
- vgscli/cli/commands/generate.py +10 -0
- vgscli/cli/commands/get.py +83 -0
- vgscli/errors.py +9 -1
- vgscli/resource-templates/reveal-session.yaml +34 -0
- vgscli/resource-templates/service-account/agent-gateway.yaml +16 -0
- vgscli/reveal_sessions_api.py +76 -0
- vgscli/telemetry.py +1 -0
- vgscli/validation-schemas/agent-gateway-schema.yaml +59 -0
- vgscli/validation-schemas/reveal-session-schema.yaml +94 -0
- vgscli/vgs.py +44 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/collect-form-api-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/collect-form-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/console-route-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/credentials-admin.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/form-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/http-route-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/notification-integration-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/notification-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/public-credential-collect.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/read-credentials-no-pci.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/read-credentials-with-pci.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/service-account-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/sftp-route-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/tenant-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/tenant-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/theme.tcss +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/vault-resources.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/vault-schema.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/vault-template.yaml +0 -0
- {vgs_cli-1.37.0.dev2.data → vgs_cli-1.37.0.dev3.data}/data/vgscli/vgs-cli.yaml +0 -0
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/WHEEL +0 -0
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/entry_points.txt +0 -0
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/licenses/LICENSE +0 -0
- {vgs_cli-1.37.0.dev2.dist-info → vgs_cli-1.37.0.dev3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
+
type: object
|
|
4
|
+
additionalProperties: false
|
|
5
|
+
required:
|
|
6
|
+
- apiVersion
|
|
7
|
+
- kind
|
|
8
|
+
- data
|
|
9
|
+
properties:
|
|
10
|
+
apiVersion:
|
|
11
|
+
type: string
|
|
12
|
+
enum:
|
|
13
|
+
- 1.0.0
|
|
14
|
+
kind:
|
|
15
|
+
type: string
|
|
16
|
+
enum:
|
|
17
|
+
- AgentGateway
|
|
18
|
+
data:
|
|
19
|
+
type: object
|
|
20
|
+
additionalProperties: false
|
|
21
|
+
properties:
|
|
22
|
+
autoGuardedRoutes:
|
|
23
|
+
# null: leave the preference as it is (get prints null when it is unset)
|
|
24
|
+
type: [boolean, "null"]
|
|
25
|
+
stepUpWebhookUrl:
|
|
26
|
+
type: string
|
|
27
|
+
stepUpHoldSeconds:
|
|
28
|
+
type: integer
|
|
29
|
+
minimum: 0
|
|
30
|
+
destinations:
|
|
31
|
+
type: array
|
|
32
|
+
items:
|
|
33
|
+
oneOf:
|
|
34
|
+
- type: object
|
|
35
|
+
additionalProperties: false
|
|
36
|
+
required:
|
|
37
|
+
- hostPattern
|
|
38
|
+
- action
|
|
39
|
+
properties:
|
|
40
|
+
hostPattern:
|
|
41
|
+
type: string
|
|
42
|
+
minLength: 1
|
|
43
|
+
action:
|
|
44
|
+
type: string
|
|
45
|
+
enum:
|
|
46
|
+
- block
|
|
47
|
+
- trust
|
|
48
|
+
- guarded
|
|
49
|
+
- type: object
|
|
50
|
+
additionalProperties: false
|
|
51
|
+
required:
|
|
52
|
+
- hostPattern
|
|
53
|
+
- delete
|
|
54
|
+
properties:
|
|
55
|
+
hostPattern:
|
|
56
|
+
type: string
|
|
57
|
+
minLength: 1
|
|
58
|
+
delete:
|
|
59
|
+
const: true
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{#- Least-privilege credentials for an agent platform: reveal-sessions:read and reveal-sessions:write (create, list, read and end reveal sessions). No route, vault or credential access. -#}
|
|
2
|
+
apiVersion: 1.0.0
|
|
3
|
+
kind: ServiceAccount
|
|
4
|
+
data:
|
|
5
|
+
name: agent-gateway
|
|
6
|
+
{%- if vaults | length == 0 %}
|
|
7
|
+
{{- cli_warn("Service Account won't have access to any tenants inside the organization. If it needs tenant access, use --tenant <TENANT_ID>.") or "" }}
|
|
8
|
+
{%- else %}
|
|
9
|
+
vaults:
|
|
10
|
+
{%- for vault_id in vaults %}
|
|
11
|
+
- {{ vault_id }}
|
|
12
|
+
{%- endfor %}
|
|
13
|
+
{%- endif %}
|
|
14
|
+
scopes:
|
|
15
|
+
- name: reveal-sessions:read
|
|
16
|
+
- name: reveal-sessions:write
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
+
type: object
|
|
4
|
+
additionalProperties: false
|
|
5
|
+
required:
|
|
6
|
+
- apiVersion
|
|
7
|
+
- kind
|
|
8
|
+
- data
|
|
9
|
+
properties:
|
|
10
|
+
apiVersion:
|
|
11
|
+
type: string
|
|
12
|
+
enum:
|
|
13
|
+
- 1.0.0
|
|
14
|
+
kind:
|
|
15
|
+
type: string
|
|
16
|
+
enum:
|
|
17
|
+
- RevealSession
|
|
18
|
+
data:
|
|
19
|
+
type: object
|
|
20
|
+
additionalProperties: false
|
|
21
|
+
required:
|
|
22
|
+
- aliases
|
|
23
|
+
properties:
|
|
24
|
+
aliases:
|
|
25
|
+
type: array
|
|
26
|
+
minItems: 1
|
|
27
|
+
items:
|
|
28
|
+
type: object
|
|
29
|
+
additionalProperties: false
|
|
30
|
+
required:
|
|
31
|
+
- alias
|
|
32
|
+
- format
|
|
33
|
+
properties:
|
|
34
|
+
alias:
|
|
35
|
+
type: string
|
|
36
|
+
minLength: 1
|
|
37
|
+
format:
|
|
38
|
+
type: string
|
|
39
|
+
enum:
|
|
40
|
+
- card_number
|
|
41
|
+
- card_cvc
|
|
42
|
+
- text
|
|
43
|
+
bin:
|
|
44
|
+
type: string
|
|
45
|
+
pattern: ^[0-9]{6,8}$
|
|
46
|
+
length:
|
|
47
|
+
type: integer
|
|
48
|
+
minimum: 1
|
|
49
|
+
storage:
|
|
50
|
+
type: string
|
|
51
|
+
enum:
|
|
52
|
+
- PERSISTENT
|
|
53
|
+
- VOLATILE
|
|
54
|
+
- persistent
|
|
55
|
+
- volatile
|
|
56
|
+
allowedHosts:
|
|
57
|
+
type: array
|
|
58
|
+
maxItems: 20
|
|
59
|
+
items:
|
|
60
|
+
type: string
|
|
61
|
+
minLength: 1
|
|
62
|
+
allowedClientCidrs:
|
|
63
|
+
type: array
|
|
64
|
+
maxItems: 10
|
|
65
|
+
items:
|
|
66
|
+
type: string
|
|
67
|
+
minLength: 1
|
|
68
|
+
egressProxySettings:
|
|
69
|
+
type: object
|
|
70
|
+
additionalProperties: false
|
|
71
|
+
required:
|
|
72
|
+
- type
|
|
73
|
+
- scheme
|
|
74
|
+
- hostname
|
|
75
|
+
- port
|
|
76
|
+
properties:
|
|
77
|
+
type:
|
|
78
|
+
const: custom
|
|
79
|
+
scheme:
|
|
80
|
+
type: string
|
|
81
|
+
enum:
|
|
82
|
+
- http
|
|
83
|
+
- https
|
|
84
|
+
hostname:
|
|
85
|
+
type: string
|
|
86
|
+
minLength: 1
|
|
87
|
+
port:
|
|
88
|
+
type: integer
|
|
89
|
+
minimum: 1
|
|
90
|
+
maximum: 65535
|
|
91
|
+
username:
|
|
92
|
+
type: string
|
|
93
|
+
password:
|
|
94
|
+
type: string
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
apiVersion: 1.0.0
|
|
2
|
+
kind: RevealSession
|
|
3
|
+
data:
|
|
4
|
+
# Tokens (aliases) this session may reveal. At least one is required.
|
|
5
|
+
aliases:
|
|
6
|
+
- # Alias of the stored value, for example tok_live_card.
|
|
7
|
+
alias: tok_live_card
|
|
8
|
+
# One of: card_number, card_cvc, text.
|
|
9
|
+
format: card_number
|
|
10
|
+
# Optional. 6 to 8 leading digits kept in the revealed token.
|
|
11
|
+
bin: "411111"
|
|
12
|
+
# Optional. Length of the generated token.
|
|
13
|
+
length: 16
|
|
14
|
+
# Optional. One of: PERSISTENT (the default), VOLATILE. Any case is accepted.
|
|
15
|
+
storage: VOLATILE
|
|
16
|
+
|
|
17
|
+
# Optional. Hosts the session may reveal to. Up to 20 entries. Without
|
|
18
|
+
# hosts, the tenant's agent gateway settings decide every host.
|
|
19
|
+
allowedHosts:
|
|
20
|
+
- api.stripe.com
|
|
21
|
+
|
|
22
|
+
# Optional. Client networks (CIDR) allowed to use the session proxy.
|
|
23
|
+
# Up to 10 entries.
|
|
24
|
+
allowedClientCidrs:
|
|
25
|
+
- 203.0.113.0/24
|
|
26
|
+
|
|
27
|
+
# Optional. Upstream proxy that outbound traffic is sent through.
|
|
28
|
+
# egressProxySettings:
|
|
29
|
+
# type: custom
|
|
30
|
+
# scheme: https
|
|
31
|
+
# hostname: proxy.example.com
|
|
32
|
+
# port: 8443
|
|
33
|
+
# username: proxy-user
|
|
34
|
+
# password: proxy-password
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vgs-cli
|
|
3
|
-
Version: 1.37.0.
|
|
3
|
+
Version: 1.37.0.dev3
|
|
4
4
|
Summary: VGS Client
|
|
5
5
|
Home-page: https://github.com/verygoodsecurity/vgs-cli
|
|
6
6
|
Author: Very Good Security
|
|
@@ -70,6 +70,8 @@ Command Line Tool for programmatic configurations on VGS.
|
|
|
70
70
|
- [Routes](#routes)
|
|
71
71
|
- [Collect Forms](#collect-forms)
|
|
72
72
|
- [Access credentials and logs](#access-credentials-and-logs)
|
|
73
|
+
- [Reveal sessions](#reveal-sessions)
|
|
74
|
+
- [Agent gateway settings and destinations](#agent-gateway-settings-and-destinations)
|
|
73
75
|
- [Service accounts](#service-accounts)
|
|
74
76
|
- [Certificates](#certificates)
|
|
75
77
|
- [Automation with VGS CLI](#automation-with-vgs-cli)
|
|
@@ -202,6 +204,7 @@ access. The CLI masks generated webhook secrets in its output.
|
|
|
202
204
|
| `vgs generate access-credentials -T <TENANT_ID>` | Generate tenant access credentials. Capture the output securely as shown below. |
|
|
203
205
|
| `vgs logs access -T <TENANT_ID>` | View tenant access logs. |
|
|
204
206
|
| `vgs logs operations -T <TENANT_ID> -R <REQUEST_ID>` | View request operation logs. |
|
|
207
|
+
| `vgs logs reveal-decisions -T <TENANT_ID> -R <REQUEST_ID>` | Show why a request's reveal session decisions were made (outcome, decider, reason, host, and ordered checks). |
|
|
205
208
|
|
|
206
209
|
Access-credential generation is a live mutation that returns secret material.
|
|
207
210
|
Write it to a new, approved absolute path outside version control with
|
|
@@ -216,6 +219,143 @@ owner-only permissions, and do not display or inspect it in shared logs:
|
|
|
216
219
|
)
|
|
217
220
|
```
|
|
218
221
|
|
|
222
|
+
### Reveal sessions
|
|
223
|
+
|
|
224
|
+
A reveal session lets an agent platform reveal selected tokens to an allowlist
|
|
225
|
+
of hosts through a session proxy. Creating, listing, and ending sessions
|
|
226
|
+
requires the `reveal-sessions:*` scopes, which must be enabled for your
|
|
227
|
+
organization by VGS. Use the `agent-gateway`
|
|
228
|
+
[service-account template](#service-accounts) for a least-privilege account.
|
|
229
|
+
|
|
230
|
+
| Command | Purpose |
|
|
231
|
+
| --- | --- |
|
|
232
|
+
| `vgs generate reveal-session > reveal-session.yaml` | Generate a reveal session template. |
|
|
233
|
+
| `vgs apply reveal-session -T <TENANT_ID> -f reveal-session.yaml` | Create a reveal session. |
|
|
234
|
+
| `vgs get reveal-sessions -T <TENANT_ID>` | List reveal sessions with their state, expiry, allowed hosts, and counters. |
|
|
235
|
+
| `vgs delete reveal-session -T <TENANT_ID> <SESSION_ID>` | End a reveal session. `SESSION_ID` is `RS` plus 22 base58 characters. |
|
|
236
|
+
|
|
237
|
+
Required scopes: `apply reveal-session` and `delete reveal-session` need
|
|
238
|
+
`reveal-sessions:write`; `get reveal-sessions` needs `reveal-sessions:read`
|
|
239
|
+
(`reveal-sessions:write` does not imply read).
|
|
240
|
+
|
|
241
|
+
`apply reveal-session` prints the session's proxy URL and tokens once, and
|
|
242
|
+
writes `Store the proxy URL now: it carries the session secret and is not shown
|
|
243
|
+
again.` to stderr. The URL is `<scheme>://<session id>:<secret>@<host>:<port>`:
|
|
244
|
+
treat it as a secret, like a password.
|
|
245
|
+
Store them immediately: they are not shown again, and `get reveal-sessions`
|
|
246
|
+
never lists them. Capture the output as shown for
|
|
247
|
+
[access credentials](#access-credentials-and-logs).
|
|
248
|
+
|
|
249
|
+
The `proxy` block includes `scheme`: `https` means clients make a TLS connection
|
|
250
|
+
to the proxy itself, `http` a plain one (shown as `http` when the server sends none).
|
|
251
|
+
|
|
252
|
+
Point a browser at `pacUrl` (a PAC file that sends all traffic to the gateway), and still supply the session credentials when the proxy asks for them.
|
|
253
|
+
|
|
254
|
+
Example `reveal-session.yaml`:
|
|
255
|
+
|
|
256
|
+
```yaml
|
|
257
|
+
apiVersion: 1.0.0
|
|
258
|
+
kind: RevealSession
|
|
259
|
+
data:
|
|
260
|
+
aliases:
|
|
261
|
+
- alias: tok_live_card
|
|
262
|
+
format: card_number # card_number, card_cvc, or text
|
|
263
|
+
bin: "411111" # optional, 6 to 8 digits
|
|
264
|
+
length: 16 # optional
|
|
265
|
+
storage: VOLATILE # optional: PERSISTENT (default) or VOLATILE
|
|
266
|
+
allowedHosts: # optional, up to 20 hosts
|
|
267
|
+
- api.stripe.com
|
|
268
|
+
allowedClientCidrs: # optional, up to 10 CIDRs
|
|
269
|
+
- 203.0.113.0/24
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
`vgs logs reveal-decisions -T <TENANT_ID> -R <REQUEST_ID> [-o json|yaml]` shows
|
|
273
|
+
the reveal decisions recorded for a request. Fields are snake_case attributes, as
|
|
274
|
+
the API returns them: `outcome`, `decided_by`, `reason`,
|
|
275
|
+
`host`, the ordered `checks` (`check`, `result`, `detail`), `occurred_at`,
|
|
276
|
+
`session_id`, and `alias_hashes`. `<REQUEST_ID>` is the request trace ID used by
|
|
277
|
+
`vgs logs access` and `vgs logs operations`. Plaintext, tokens, and raw aliases
|
|
278
|
+
are never included.
|
|
279
|
+
|
|
280
|
+
`vgs generate reveal-session` also shows the optional `egressProxySettings` block
|
|
281
|
+
(`type: custom`, `scheme`, `hostname`, `port`, `username`, `password`).
|
|
282
|
+
|
|
283
|
+
### Agent gateway settings and destinations
|
|
284
|
+
|
|
285
|
+
The agent gateway decides what a reveal session may do with hosts that are not
|
|
286
|
+
on its `allowedHosts` list. Three tenant preferences and a list of destination
|
|
287
|
+
overrides control it.
|
|
288
|
+
|
|
289
|
+
| Command | Purpose |
|
|
290
|
+
| --- | --- |
|
|
291
|
+
| `vgs get agent-gateway -T <TENANT_ID>` | Print the three preferences (an unset `autoGuardedRoutes` prints `null`, an unset webhook `""` and an unset hold `0`) and every destination with its `id`, `hostPattern`, `action` and `origin`, sorted by `hostPattern`. |
|
|
292
|
+
| `vgs apply agent-gateway -T <TENANT_ID> -f agent-gateway.yaml` | Set the preferences in the file and make the destination overrides match it, then print the result. |
|
|
293
|
+
|
|
294
|
+
Required scopes: `get agent-gateway` needs `preferences:read` and
|
|
295
|
+
`agent-gateway:read`; `apply agent-gateway` needs `preferences:write`,
|
|
296
|
+
`agent-gateway:write` and `agent-gateway:read` (`agent-gateway:write` does not
|
|
297
|
+
imply read, and `apply` reads the configuration back; without
|
|
298
|
+
`agent-gateway:read` the API leaves the agent gateway preferences out of the
|
|
299
|
+
preference list). The `agent-gateway` service-account
|
|
300
|
+
template grants only the `reveal-sessions:*` scopes, so a service account that
|
|
301
|
+
runs these commands needs the extra scopes.
|
|
302
|
+
|
|
303
|
+
The `get agent-gateway` output can include the step-up webhook URL, which may
|
|
304
|
+
embed a secret in its path, so do not log it.
|
|
305
|
+
|
|
306
|
+
Example `agent-gateway.yaml`:
|
|
307
|
+
|
|
308
|
+
```yaml
|
|
309
|
+
apiVersion: 1.0.0
|
|
310
|
+
kind: AgentGateway
|
|
311
|
+
data:
|
|
312
|
+
autoGuardedRoutes: true # agentGatewayAutoGuardedRoutes; null leaves it as it is
|
|
313
|
+
stepUpWebhookUrl: https://hooks.example.com/vgs # agentGatewayStepUpWebhookUrl
|
|
314
|
+
stepUpHoldSeconds: 15 # 0 (default 20) or 5 to 30
|
|
315
|
+
destinations: # optional; omit to leave destinations alone
|
|
316
|
+
- hostPattern: "*.bad.example.com"
|
|
317
|
+
action: block # block, trust, or guarded
|
|
318
|
+
- hostPattern: checkout.shop.example.com
|
|
319
|
+
action: trust
|
|
320
|
+
- hostPattern: pay.example.net
|
|
321
|
+
delete: true # the only way apply removes an auto row
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
`allowedHosts` on a reveal session is optional; without it, the settings above
|
|
325
|
+
decide every host.
|
|
326
|
+
|
|
327
|
+
Unlisted hosts are `guarded` by default. A tenant that never set
|
|
328
|
+
`autoGuardedRoutes` gets `guarded` sessions unless `stepUpWebhookUrl` is set,
|
|
329
|
+
which makes them `step_up`. `autoGuardedRoutes: true` is `guarded` even with a
|
|
330
|
+
webhook, and `autoGuardedRoutes: false` is `step_up` with a webhook and
|
|
331
|
+
`strict` without one. `get agent-gateway` prints an unset `autoGuardedRoutes` as
|
|
332
|
+
`null`, with a comment, and `apply` treats `null` as "leave it as it is": it
|
|
333
|
+
never writes or deletes the preference. `apply` also skips a preference whose
|
|
334
|
+
value already matches what `get` prints (`unchanged <field>`), so applying the
|
|
335
|
+
output of `get` writes no preference. While `autoGuardedRoutes` is unset,
|
|
336
|
+
setting a webhook where there was none tightens (guarded to step-up); changing
|
|
337
|
+
or clearing it loosens.
|
|
338
|
+
|
|
339
|
+
`apply agent-gateway` prints one line per change (`created`, `updated`,
|
|
340
|
+
`deleted` or `unchanged`) as it is made, restrictive-first: `block` destinations,
|
|
341
|
+
preferences that tighten, `trust` and `guarded` destinations, deletes, then
|
|
342
|
+
preferences that loosen. A `hostPattern` may appear only once in the file.
|
|
343
|
+
|
|
344
|
+
Destinations are matched by `hostPattern`, ignoring
|
|
345
|
+
case, surrounding spaces and one trailing dot. Destinations missing from the
|
|
346
|
+
server are created, a different `action` is updated, and `origin: manual`
|
|
347
|
+
destinations that the file does not list are deleted. Omit `destinations` to
|
|
348
|
+
leave all of them as they are. Each preference is set only when it appears in
|
|
349
|
+
the file.
|
|
350
|
+
|
|
351
|
+
Destinations with `origin: auto` are staged by the gateway for your review and
|
|
352
|
+
do not affect decisions until you act on them. `apply` keeps them unless the
|
|
353
|
+
file names them with `delete: true`. Listing an auto destination with an
|
|
354
|
+
`action` makes it a manual one. A `destinations` entry has either an `action`
|
|
355
|
+
or `delete: true`, not both. The server refuses patterns that can never receive
|
|
356
|
+
plaintext (`never_host`) and invalid values, and `apply` prints the server's
|
|
357
|
+
`code` and `detail`.
|
|
358
|
+
|
|
219
359
|
### Service accounts
|
|
220
360
|
|
|
221
361
|
Generate a service-account resource and save the YAML so you can review it
|
|
@@ -226,6 +366,10 @@ when no tenant is supplied, the generated account has no tenant access.
|
|
|
226
366
|
vgs generate service-account --template vgs-cli -T <TENANT_ID> > service-account.yaml
|
|
227
367
|
```
|
|
228
368
|
|
|
369
|
+
The `agent-gateway` template accepts zero or more tenants and needs no
|
|
370
|
+
`--var name`; without `-T` it prints a warning and the account has no tenant
|
|
371
|
+
access.
|
|
372
|
+
|
|
229
373
|
Payment-credential templates require exactly one tenant and a name containing
|
|
230
374
|
1–20 characters:
|
|
231
375
|
|
|
@@ -240,6 +384,7 @@ vgs generate service-account --template <TEMPLATE> -T <TENANT_ID> --var name=<NA
|
|
|
240
384
|
| `read-credentials-no-pci` | Read tokenized credentials without PCI data. |
|
|
241
385
|
| `read-credentials-with-pci` | Read credentials including PCI data. |
|
|
242
386
|
| `credentials-admin` | Read and write payment credentials. |
|
|
387
|
+
| `agent-gateway` | Create, list, and end reveal sessions (`reveal-sessions:read`, `reveal-sessions:write`), with no route, vault, or credential access, for agent platforms. The `reveal-sessions:*` scopes must be enabled for the organization. |
|
|
243
388
|
|
|
244
389
|
After reviewing the generated scopes, apply the resource to the organization:
|
|
245
390
|
|
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
vgs_cli-1.37.0.
|
|
2
|
-
vgs_cli-1.37.0.
|
|
3
|
-
vgs_cli-1.37.0.
|
|
4
|
-
vgs_cli-1.37.0.
|
|
5
|
-
vgs_cli-1.37.0.
|
|
6
|
-
vgs_cli-1.37.0.
|
|
7
|
-
vgs_cli-1.37.0.
|
|
8
|
-
vgs_cli-1.37.0.
|
|
9
|
-
vgs_cli-1.37.0.
|
|
10
|
-
vgs_cli-1.37.0.
|
|
11
|
-
vgs_cli-1.37.0.
|
|
12
|
-
vgs_cli-1.37.0.
|
|
13
|
-
vgs_cli-1.37.0.
|
|
14
|
-
vgs_cli-1.37.0.
|
|
15
|
-
vgs_cli-1.37.0.
|
|
16
|
-
vgs_cli-1.37.0.
|
|
17
|
-
vgs_cli-1.37.0.
|
|
18
|
-
vgs_cli-1.37.0.
|
|
19
|
-
vgs_cli-1.37.0.
|
|
20
|
-
vgs_cli-1.37.0.
|
|
21
|
-
vgs_cli-1.37.0.
|
|
1
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/agent-gateway-schema.yaml,sha256=nxtYR2oTt4Hl3NhVkWQt17bzujFo7npcrHtTJrWvLKg,1405
|
|
2
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/agent-gateway.yaml,sha256=OsWYD2-JKcv2xhDCiGHZshTK0-ihsGn_GukzYNEBbRA,637
|
|
3
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/collect-form-api-schema.yaml,sha256=THuJbLUo7LOr0c1JUo3FPJEc9Jvde59K4JjdlkVF3hw,1246
|
|
4
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/collect-form-schema.yaml,sha256=vHAN6_Gsg14CeSL41sHEQgboYF-CHF2RaNw72aJ3W8o,1337
|
|
5
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/console-route-schema.yaml,sha256=hKME9kKILXFWkf-zwbAAWwMoXZWnzFHG37_51SqPKKw,1305
|
|
6
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/credentials-admin.yaml,sha256=acyLd54Cp7l2fpugfjVfYh07-MIE0BX-JVq4lHraE1s,869
|
|
7
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/form-template.yaml,sha256=pY4gOd8jXJRohcpJYijBt4m5cPyHvEVlCBtHgs2AL8M,927
|
|
8
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/http-route-template.yaml,sha256=vGHvBXA_6pwFtH1vVRWKiwxb4sahzuLvpqGAlavrStc,1085
|
|
9
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/notification-integration-schema.yaml,sha256=1qHzS5ZxlhTdrDab6-qJhszwu7cpith2HleX3uAO_4E,1837
|
|
10
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/notification-template.yaml,sha256=hr36msbrgiTjWligLHVDHMmO49QDzjTwBSLYoBw3WQE,1288
|
|
11
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/public-credential-collect.yaml,sha256=CiorC-6TMx7M0TI8DHmoRSfVKDpOom2wIr_ilwmHQNA,696
|
|
12
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/read-credentials-no-pci.yaml,sha256=_kWRne_ARh8v7A_jHG08gwgPG6NqZhrDRyq6L-ULs2M,769
|
|
13
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/read-credentials-with-pci.yaml,sha256=jWXgFdcqZYisakAt9COM6cjf2-x_Q4eidDLaUh8CZOk,796
|
|
14
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/reveal-session-schema.yaml,sha256=UUHkgWwpVoHgSpDA0SPWv0Tt-DVaOnW7ue9mC7aa3hw,1977
|
|
15
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/reveal-session.yaml,sha256=VkL7DkoUcI57J21xgyXiOhOuImvvuvvgTUEHCGV9Rzo,1105
|
|
16
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/service-account-schema.yaml,sha256=L1pjNXgnks15N1wNgf_1GmGcOvxn0nu49v7ersUjFno,1090
|
|
17
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/sftp-route-template.yaml,sha256=zkT6lIVDgVyzLKgZ8QnyJJooy2egZk1cQthdjan_JrM,853
|
|
18
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/tenant-schema.yaml,sha256=xqFEnG6Pcxj3EFsW8URNQexkTo6d6SQK0cMtqsAS5x8,1794
|
|
19
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/tenant-template.yaml,sha256=ucEV4p2cZ1G43nh1Mt8dcNH4-xtrP9C1XW2LjVM5xD4,914
|
|
20
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/theme.tcss,sha256=6teLRfBJkyWzIx8y6OjB8MW_DjIujuLjj01OtfQApus,8050
|
|
21
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/vault-resources.yaml,sha256=95CCxQher3MBQq96bvjZviNgo1rgv_NhCtI8X-oxIpA,26335
|
|
22
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/vault-schema.yaml,sha256=a-wW7X8RyHr-669wtOZrlxlIfeQVtx8EUfA-3vpYytk,637
|
|
23
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/vault-template.yaml,sha256=IlDisL3H5LXUDMkhUaouKMarRdu0-pJxpTz8ij_lp_M,383
|
|
24
|
+
vgs_cli-1.37.0.dev3.data/data/vgscli/vgs-cli.yaml,sha256=5gCjjloyepaKI6zZfDLeUEWxuRExI-dGJI9RO3omP2k,484
|
|
25
|
+
vgs_cli-1.37.0.dev3.dist-info/licenses/LICENSE,sha256=NwSyzgDYdzv6O2ns2C6UODGI8LN1VnVe_FPTnWS4eXY,1082
|
|
22
26
|
vgscli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
vgscli/_version.py,sha256=
|
|
27
|
+
vgscli/_version.py,sha256=r8SafJFHXRhkI29SGVuwbeq5aRFdlj3Z9F4uRJbUml8,1681
|
|
24
28
|
vgscli/access_logs.py,sha256=G0GjlLjWiC-N6OzK6-RCvWddcVGQlLCLAcyO9pLWIOM,1928
|
|
25
|
-
vgscli/
|
|
29
|
+
vgscli/agent_gateway_api.py,sha256=V84HmdU-XzPKTwRxPPlyWCuULQFvBv87Z7VuehNkEEk,10642
|
|
30
|
+
vgscli/audits_api.py,sha256=iR4jCyNfmx4e_IfwY-Xx2cp6HfmSu4p3fwiHfjZJ9TY,3466
|
|
26
31
|
vgscli/auth.py,sha256=vdUZ12nqtefIuSHNmwCFvxoqwS3m6ZP5TqLZFNwKnSU,2104
|
|
27
32
|
vgscli/auth_server.py,sha256=J12vthy2FhOr4Kfyp1waxu3bFErV_kXAycE8rcBKYW8,4993
|
|
28
33
|
vgscli/auth_utils.py,sha256=aC1VI0dFdFeupLS9Okz4uDz-wHhhFabqiLUg2R5vO2s,600
|
|
@@ -37,7 +42,7 @@ vgscli/collect_forms_api.py,sha256=rORLu-jd5IMsiAoR7VkgIkpskWd9GfjZs6zeHKEoOPs,1
|
|
|
37
42
|
vgscli/config_file.py,sha256=HB8lANU0qoO09Wnkf-QDzPh2qtrnFcqcetnCaQgtQ3U,1543
|
|
38
43
|
vgscli/console_config.py,sha256=7gSMXarjlyczxBwkiS0jpFrfbU8pbJSD7VaHnjgy1Mw,1522
|
|
39
44
|
vgscli/diagnostics.py,sha256=iWKFr_jNQSZt4H1CnoecNo7-wNjSNpzXV2nRyhDm9es,1385
|
|
40
|
-
vgscli/errors.py,sha256=
|
|
45
|
+
vgscli/errors.py,sha256=u9386GtjdOJKaKtGgwzAa9PGSJ_00YaEqFjP3Ru8jHU,13125
|
|
41
46
|
vgscli/file_token_util.py,sha256=537b54paMGw0u5PL5VJgQqQ7awKa9lQP88n3tUc_lyw,771
|
|
42
47
|
vgscli/id_generator.py,sha256=3CbvSOUSyLON76p6M8wUhVQVig8j75_rnWdpxLhBifM,1510
|
|
43
48
|
vgscli/keyring_token_util.py,sha256=cnR72-0AInzujUsIwHoXwPbgprbkllgAXN-AAI3qsPM,4632
|
|
@@ -46,22 +51,23 @@ vgscli/notifications_api.py,sha256=1EXmRb2fOJrU1QOAZ6gmq8yMjBLhNZGSVs3kRtD2Dfw,2
|
|
|
46
51
|
vgscli/payment_accounts_api.py,sha256=wF6K3m7nlKtPmqO9RCpmGFSXYHWtwfhXqNfgI1IGqFI,1665
|
|
47
52
|
vgscli/payment_credentials_api.py,sha256=Gwz5tLIS1gRc2Hzi877_mynznNOKEGF-VoKzxqkj-mM,2169
|
|
48
53
|
vgscli/personalization_api.py,sha256=mtbtJYX9pKG5CC7CBSiOfs6O1K8UOpergs6kAKUWaYI,1415
|
|
54
|
+
vgscli/reveal_sessions_api.py,sha256=Ycuweh2IcCDT7VrBDtN_Kv5oRRdA_pSpCUpv1IAjmr4,2637
|
|
49
55
|
vgscli/secure_store.py,sha256=wRLQv6qrTp1PJkb5N1zSmv2bA5NSJjEhqMNMFMoSbiY,3625
|
|
50
|
-
vgscli/telemetry.py,sha256=
|
|
56
|
+
vgscli/telemetry.py,sha256=1K8C474WEm4TGcn5DVif6yluCxGF4T3rAYNhyBhkl3w,25788
|
|
51
57
|
vgscli/tenant_configuration.py,sha256=mX6DUFNOr8Rnppzpw6SMV_FADLWm8w543_jYvipOxdE,6404
|
|
52
58
|
vgscli/tenant_creation.py,sha256=es8to2-crpu0k5UBzWd75I0BSNjInysjuDePy0z9xsk,22461
|
|
53
59
|
vgscli/tenant_provisioning_api.py,sha256=-mQcSECgWG23LKczu1B9J1d7Bb6ZA6lkpr9RegJiiLg,1203
|
|
54
60
|
vgscli/testing.py,sha256=MLrsvy3mEwvjtqyuG0UjwEX-rDkbWUo52aXvu2H2sTk,1437
|
|
55
61
|
vgscli/text.py,sha256=c2d1As7awq8PlEF9NiI6JrjsYYousj9YT0o1xOQ2MQM,172
|
|
56
62
|
vgscli/token_handler.py,sha256=qTshP4i8Rdhpgk9YUu0i5YAqYiRK3PsZCZAtPVc9BUU,239
|
|
57
|
-
vgscli/vgs.py,sha256=
|
|
58
|
-
vgscli/cli/__init__.py,sha256=
|
|
63
|
+
vgscli/vgs.py,sha256=aXl-pjszXe2ONWh_zs_xEc3lcazeauL4MDXAFQ6N6Ns,8727
|
|
64
|
+
vgscli/cli/__init__.py,sha256=ft4ccT6dM5rlvpLOXN6TeUvY_I_Y9NcwdgrTlqD47Ek,4231
|
|
59
65
|
vgscli/cli/commands/__init__.py,sha256=8ptc9-Vzdx0HU3ZeMcKERYjmJyuB5IMjBSF3Igx5yQ4,206
|
|
60
|
-
vgscli/cli/commands/apply.py,sha256=
|
|
66
|
+
vgscli/cli/commands/apply.py,sha256=oH2n2VDMSCPODIxD4WRFbuVOehXagCr449BRFJhB-AI,30604
|
|
61
67
|
vgscli/cli/commands/certificate.py,sha256=JjZFLvfMKeAL65s-y7DwtqpkTrmGKJ84ywdZyVT5ajQ,30038
|
|
62
|
-
vgscli/cli/commands/delete.py,sha256=
|
|
63
|
-
vgscli/cli/commands/generate.py,sha256=
|
|
64
|
-
vgscli/cli/commands/get.py,sha256=
|
|
68
|
+
vgscli/cli/commands/delete.py,sha256=gTSOzX_XOD7jZGjyJmHMb5GxU9UENaNDj_BBkgOXldw,5318
|
|
69
|
+
vgscli/cli/commands/generate.py,sha256=EdwfL9JfWNQW_raXsP_8DCpEeWE7_-nEh2vjtpefepY,5759
|
|
70
|
+
vgscli/cli/commands/get.py,sha256=CaPiCVQ5GSuO5MSNkmrXSiJY2AtySkI1daFKwWEc3tE,12325
|
|
65
71
|
vgscli/cli/types/__init__.py,sha256=a-P-SoGHpLzMg7CL1hhg5x_nf6sHq0qAuGm_AtIITmw,107
|
|
66
72
|
vgscli/cli/types/resource_id.py,sha256=7JILR-KjoVGQDHB40tXJfTcU53iR8wM9Zr24fY5le3o,1172
|
|
67
73
|
vgscli/cli/types/variable.py,sha256=IVcszPoWmTjeo_evDsLN06LuUZGTLL-wcZCVfBNBP8I,414
|
|
@@ -102,24 +108,28 @@ vgscli/operations/tenant_details.py,sha256=vtzxYjUFyjToweKf3ZqdBMB14P87USpqNzxWW
|
|
|
102
108
|
vgscli/resource-templates/form-template.yaml,sha256=pY4gOd8jXJRohcpJYijBt4m5cPyHvEVlCBtHgs2AL8M,927
|
|
103
109
|
vgscli/resource-templates/http-route-template.yaml,sha256=vGHvBXA_6pwFtH1vVRWKiwxb4sahzuLvpqGAlavrStc,1085
|
|
104
110
|
vgscli/resource-templates/notification-template.yaml,sha256=hr36msbrgiTjWligLHVDHMmO49QDzjTwBSLYoBw3WQE,1288
|
|
111
|
+
vgscli/resource-templates/reveal-session.yaml,sha256=VkL7DkoUcI57J21xgyXiOhOuImvvuvvgTUEHCGV9Rzo,1105
|
|
105
112
|
vgscli/resource-templates/sftp-route-template.yaml,sha256=zkT6lIVDgVyzLKgZ8QnyJJooy2egZk1cQthdjan_JrM,853
|
|
106
113
|
vgscli/resource-templates/tenant-template.yaml,sha256=ucEV4p2cZ1G43nh1Mt8dcNH4-xtrP9C1XW2LjVM5xD4,914
|
|
107
114
|
vgscli/resource-templates/vault-template.yaml,sha256=IlDisL3H5LXUDMkhUaouKMarRdu0-pJxpTz8ij_lp_M,383
|
|
115
|
+
vgscli/resource-templates/service-account/agent-gateway.yaml,sha256=OsWYD2-JKcv2xhDCiGHZshTK0-ihsGn_GukzYNEBbRA,637
|
|
108
116
|
vgscli/resource-templates/service-account/credentials-admin.yaml,sha256=acyLd54Cp7l2fpugfjVfYh07-MIE0BX-JVq4lHraE1s,869
|
|
109
117
|
vgscli/resource-templates/service-account/public-credential-collect.yaml,sha256=CiorC-6TMx7M0TI8DHmoRSfVKDpOom2wIr_ilwmHQNA,696
|
|
110
118
|
vgscli/resource-templates/service-account/read-credentials-no-pci.yaml,sha256=_kWRne_ARh8v7A_jHG08gwgPG6NqZhrDRyq6L-ULs2M,769
|
|
111
119
|
vgscli/resource-templates/service-account/read-credentials-with-pci.yaml,sha256=jWXgFdcqZYisakAt9COM6cjf2-x_Q4eidDLaUh8CZOk,796
|
|
112
120
|
vgscli/resource-templates/service-account/vgs-cli.yaml,sha256=5gCjjloyepaKI6zZfDLeUEWxuRExI-dGJI9RO3omP2k,484
|
|
121
|
+
vgscli/validation-schemas/agent-gateway-schema.yaml,sha256=nxtYR2oTt4Hl3NhVkWQt17bzujFo7npcrHtTJrWvLKg,1405
|
|
113
122
|
vgscli/validation-schemas/collect-form-api-schema.yaml,sha256=THuJbLUo7LOr0c1JUo3FPJEc9Jvde59K4JjdlkVF3hw,1246
|
|
114
123
|
vgscli/validation-schemas/collect-form-schema.yaml,sha256=vHAN6_Gsg14CeSL41sHEQgboYF-CHF2RaNw72aJ3W8o,1337
|
|
115
124
|
vgscli/validation-schemas/console-route-schema.yaml,sha256=hKME9kKILXFWkf-zwbAAWwMoXZWnzFHG37_51SqPKKw,1305
|
|
116
125
|
vgscli/validation-schemas/notification-integration-schema.yaml,sha256=1qHzS5ZxlhTdrDab6-qJhszwu7cpith2HleX3uAO_4E,1837
|
|
126
|
+
vgscli/validation-schemas/reveal-session-schema.yaml,sha256=UUHkgWwpVoHgSpDA0SPWv0Tt-DVaOnW7ue9mC7aa3hw,1977
|
|
117
127
|
vgscli/validation-schemas/service-account-schema.yaml,sha256=L1pjNXgnks15N1wNgf_1GmGcOvxn0nu49v7ersUjFno,1090
|
|
118
128
|
vgscli/validation-schemas/tenant-schema.yaml,sha256=xqFEnG6Pcxj3EFsW8URNQexkTo6d6SQK0cMtqsAS5x8,1794
|
|
119
129
|
vgscli/validation-schemas/vault-resources.yaml,sha256=95CCxQher3MBQq96bvjZviNgo1rgv_NhCtI8X-oxIpA,26335
|
|
120
130
|
vgscli/validation-schemas/vault-schema.yaml,sha256=a-wW7X8RyHr-669wtOZrlxlIfeQVtx8EUfA-3vpYytk,637
|
|
121
|
-
vgs_cli-1.37.0.
|
|
122
|
-
vgs_cli-1.37.0.
|
|
123
|
-
vgs_cli-1.37.0.
|
|
124
|
-
vgs_cli-1.37.0.
|
|
125
|
-
vgs_cli-1.37.0.
|
|
131
|
+
vgs_cli-1.37.0.dev3.dist-info/METADATA,sha256=NRpg9iAP-y_iEXryhS3TozQdUZkRUj-nqTll_4JgjTM,18281
|
|
132
|
+
vgs_cli-1.37.0.dev3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
133
|
+
vgs_cli-1.37.0.dev3.dist-info/entry_points.txt,sha256=wCWhRQiMX4Ja6kkqJlYr8LbuiywpmXyyRAZPsau-_RY,39
|
|
134
|
+
vgs_cli-1.37.0.dev3.dist-info/top_level.txt,sha256=gabTxCWMkl80q6ha_m-hs_1wQMfGntZcv5DEmkl8JEw,7
|
|
135
|
+
vgs_cli-1.37.0.dev3.dist-info/RECORD,,
|