-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(commands): acl policy check errors on warnings #7000
Conversation
This fixes an issue where the authelia access-control check-policy command fails claiming errors when there are only warnings. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
ArtifactsThese changes are published for testing on Buildkite, DockerHub and GitHub Container Registry. Docker Container
|
WalkthroughThe update in the Changes
Related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- internal/commands/acl.go (1 hunks)
Additional comments: 1
internal/commands/acl.go (1)
- 61-62: The error message returned when configuration errors are detected has been updated to be more generic. While this addresses the issue of distinguishing between errors and warnings, it might be beneficial to provide more detailed feedback to the user. For instance, specifying whether the errors are critical or if there are only warnings that do not block the execution could enhance user experience.
Consider enhancing the error message to include specifics about the nature of the configuration issues detected, such as the number of errors and warnings, or even listing the warnings if the
verbose
flag is set.
This fixes an issue where the authelia access-control check-policy command fails claiming errors when there are only warnings.
Summary by CodeRabbit