Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lentus
Copy link

@lentus lentus commented May 9, 2025

See #1969

The current implementation does not explicitly specify whether this endpoint performs a read or write operation. Because of this the access operation is determined by checking the default for the used request method, which results in write since this is a POST endpoint. Because of this, you need an API key for a role with Admission Control (M) permission to call this endpoint.

By specifying the access operation as access.AccessOPRead, an API key using a role with the Admission Control (V) permission can be used to test admission control rules.

Copy link
Contributor

@williamlin-suse williamlin-suse left a comment

Choose a reason for hiding this comment

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

LGTM

@williamlin-suse williamlin-suse merged commit 0a13b60 into neuvector:main May 10, 2025
@lentus lentus deleted the assess-read-perm branch May 15, 2025 17: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