Skip to content

docs: name the Secret in cross-namespace ReferenceGrant examples - #2807

Merged
aabchoo merged 4 commits into
theagentrouter:mainfrom
abdulaziz-dev-lab:docs/referencegrant-secret-name
Oct 9, 2026
Merged

aabchoo merged 4 commits into
theagentrouter:mainfrom
abdulaziz-dev-lab:docs/referencegrant-secret-name

Conversation

@abdulaziz-dev-lab

Copy link
Copy Markdown
Contributor

Description

The ReferenceGrant examples for a BackendSecurityPolicy whose Secret is in another namespace leave out to.name, so each one allows every Secret in that namespace. This names the one Secret each example needs:

  • cmd/aigw/testdata/cross_namespace_secret_grant.yaml now grants only shared-openai-apikey, so TestRunCmdContext_writeEnvoyResourcesAndRunExtProc_crossNamespaceSecret runs with a grant scoped to the Secret.
  • The "Secrets in another namespace" example in connect-providers.md names the Secret, and a sentence below it explains what name does and how to allow more than one Secret.

Related Issues/PRs (if applicable)

Follow-up to #2783, for @aabchoo's review comment [1].

Special notes for reviewers (if applicable)

The example in the v1.2 upgrade guidance already names the Secret, so the release notes are unchanged.

1: #2783 (comment)

The aigw cross-namespace Secret fixture and the connect-providers docs example left out to.name, which grants every Secret in the namespace.

Signed-off-by: Abdulaziz Alharbi <246710009+abdulaziz-dev-lab@users.noreply.github.com>
@abdulaziz-dev-lab
abdulaziz-dev-lab requested a review from a team as a code owner October 6, 2026 22:56
@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for theagentrouter canceled.

Name Link
🔨 Latest commit ecb0ef4
🔍 Latest deploy log https://app.netlify.com/projects/theagentrouter/deploys/6ac90c91ece4b7000746dfb2

@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@missBerg missBerg added documentation Improvements or additions to documentation area/site Website and docs site area/security Guardrails, content safety, security integrations labels Oct 9, 2026
@aabchoo
aabchoo enabled auto-merge (squash) October 9, 2026 15:31
@aabchoo
aabchoo merged commit 2855d9b into theagentrouter:main Oct 9, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/security Guardrails, content safety, security integrations area/site Website and docs site documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants