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

Require Admin to restart Oauth2Proxy #674

Merged
merged 6 commits into from
Sep 19, 2024

Conversation

Richard87
Copy link
Contributor

No description provided.

@Richard87 Richard87 requested a review from satr September 19, 2024 10:19
return access.HasAccess(ctx, kubeClient, &authorizationapi.ResourceAttributes{
Verb: "patch",
Group: "",
Resource: radixv1.KindRadixRegistration,
Copy link
Contributor

@satr satr Sep 19, 2024

Choose a reason for hiding this comment

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

Suggested change
Resource: radixv1.KindRadixRegistration,
Resource: radixv1.ResourceRadixRegistrations,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

func IsRadixApplicationAdmin(ctx context.Context, kubeClient kubernetes.Interface, appName string) (bool, error) {
return access.HasAccess(ctx, kubeClient, &authorizationapi.ResourceAttributes{
Verb: "patch",
Group: "",
Copy link
Contributor

@satr satr Sep 19, 2024

Choose a reason for hiding this comment

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

Suggested change
Group: "",
Group: radixv1.GroupName,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@Richard87 Richard87 self-assigned this Sep 19, 2024
@Richard87 Richard87 requested a review from satr September 19, 2024 12:31
@Richard87 Richard87 merged commit cd1c04e into master Sep 19, 2024
6 checks passed
@Richard87 Richard87 deleted the require-admin-to-restart-oauth2proxy branch September 19, 2024 13:12
Richard87 added a commit that referenced this pull request Sep 20, 2024
Release Require Admin to restart Oauth2Proxy (#674)
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