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: RBAC should default deny missing variables. #5105

Merged
merged 2 commits into from
Nov 16, 2022
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Nov 16, 2022

The default behavior was to use 'true' for missing variables. This was an incorrect assumption. If the variable is missing, the new default is to deny (fail secure).

Fixes #5103

The default behavior was to use 'true' for missing variables. This
was an incorrect assumption. If the variable is missing, the new
default is to deny (fail secure).
@@ -470,7 +470,7 @@ func (t opInternalMember2) SQLString(cfg SQLConfig) string {
}

if sqlType == VarTypeSkip {
return "true"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the mistake 😢

@Emyrk Emyrk requested a review from kylecarbs November 16, 2022 16:04
@Emyrk Emyrk merged commit 015a6f9 into main Nov 16, 2022
@Emyrk Emyrk deleted the stevenmasley/rbac_deny branch November 16, 2022 17:01
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: a member user sees all workspaces in CLI
2 participants