Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/aigw/testdata/cross_namespace_secret_grant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ spec:
to:
- group: ""
kind: Secret
name: shared-openai-apikey
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,11 @@ spec:
to:
- group: ""
kind: Secret
name: openai-secret # the Secret's name
```

The `name` field limits the grant to that one Secret. Without it, the grant covers every Secret in the namespace. To allow several Secrets, add a `to` entry for each.

With `aigw run`, put the ReferenceGrant in the configuration file.

#### Security Best Practices
Expand Down
Loading