Skip to content

Conversation

@kradalby
Copy link
Collaborator

@kradalby kradalby commented Nov 1, 2025

When adding the mode to bypass gRPC, a naive policy validation was added to both the gRPC set, and the bypass mode.

This caused the policy to invalidate in unexpected ways as the gRPC already handles this validation in the backend.

This commit moves the validation logic into the bypass branch.

Fixes #2825

@kradalby kradalby requested a review from juanfont as a code owner November 1, 2025 21:35

users, err := d.ListUsers()
if err != nil {
ErrorOutput(err, fmt.Sprintf("Failed to load users fro policy validation: %s", err), output)
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: for

Copy link
Collaborator

@nblock nblock left a comment

Choose a reason for hiding this comment

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

Works with the sample from: #2825 (comment)

When adding the mode to bypass gRPC, a naive policy validation
was added to both the gRPC set, and the bypass mode.

This caused the policy to invalidate in unexpected ways as the gRPC
already handles this validation in the backend.

This commit moves the validation logic into the bypass branch.

Fixes juanfont#2825

Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby force-pushed the kradalby/2825-policy-cli-err branch from 981cd92 to c54e917 Compare November 2, 2025 09:32
@kradalby kradalby enabled auto-merge (squash) November 2, 2025 09:33
@kradalby kradalby merged commit 02c7c1a into juanfont:main Nov 2, 2025
94 of 95 checks passed
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.

[Bug] v0.27.0 policy apply errors

2 participants