Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AuthorizationPolicy docs to indicate that targetRef cannot include a namespace #1928

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

adleong
Copy link
Member

@adleong adleong commented Feb 27, 2025

An AuthorizationPolicy cannot target a resource in another namespace, as this would allow one namespace to grant access to another's resources. This is codified in the CRD as the targetRef does not have a namespace field. However, our docs incorrect claim that it does have a namespace field.

We correct this error by removing references to the non-existent field and clarifying that only the namespace which can be targeted is the local one.

Copy link
Member

@kflynn kflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adleong! 🙂

@kflynn kflynn merged commit 0d3c368 into main Feb 27, 2025
7 checks passed
@kflynn kflynn deleted the alex/authorization-target-local branch February 27, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants