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

Remove external-rules feature flag #414

Merged

Conversation

raulcabello
Copy link
Contributor

Issue: rancher/rancher#45863

Problem

external-rules feature flag was added in Rancher v2.7 and v2.8 to help admins with the transition of the new RoleTemplate field ExternalRules. That's no longer needed in Rancher v2.9

Solution

Remove external-rules feature flag. It will work as it is always enabled, and can't be disabled.

@raulcabello raulcabello requested a review from a team as a code owner June 25, 2024 10:26
@raulcabello raulcabello force-pushed the remove-external-rules-flag branch from 266d402 to cf2bdaa Compare June 25, 2024 11:00
cr, err := r.clusterRoles.Get(roleTemplate.Name)
if err != nil {
return nil, fmt.Errorf("failed to get ClusterRole %q: %w", roleTemplate.Name, err)
return nil, fmt.Errorf("for external RoleTemplates, externalRules must be provided or a backing clusterRole must be installed to check for privilege escalations: failed to get ClusterRole %q: %w", roleTemplate.Name, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Explicitly noting that this looks ok, given that a similar change in the rancher/rancher#45864 (review) got marked as problem.

@raulcabello raulcabello merged commit bb70983 into rancher:release/v0.5 Jun 25, 2024
1 check passed
@raulcabello raulcabello deleted the remove-external-rules-flag branch June 25, 2024 14:10
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.

3 participants