Skip to content

fix: add ocirepositories to nsaccess rules#4665

Merged
erikgb merged 1 commit intoweaveworks:mainfrom
erikgb:nsaccess-rules
Feb 1, 2025
Merged

fix: add ocirepositories to nsaccess rules#4665
erikgb merged 1 commit intoweaveworks:mainfrom
erikgb:nsaccess-rules

Conversation

@erikgb
Copy link
Copy Markdown
Contributor

@erikgb erikgb commented Feb 1, 2025

Relates to #3702

What changed?

The primary change in this PR is to add ocirepositories to the source.toolkit.fluxcd.io in the required RBAC rules. This should be part of the requirements alongside the other Flux source types - as weave-gitops is able to list source resources. I did not add any requirement for access to the Flux API groups notification.toolkit.fluxcd.io or image.toolkit.fluxcd.io - even if I think it's strange that this is not a requirement.

I have also organized the required rules better:

  • Grouped by API group in list of requirements.
  • Fixed the semi-duplicated requirements for events.
  • Sorted resources in rules alphabetically.

Why was this change made?

Before starting on the simpler nsaccess checker suggested in #3702 (comment), I would like to correct the code currently used.

How was this change implemented?

How did you validate the change?

Release notes

Documentation Changes

@erikgb erikgb requested a review from a team February 1, 2025 09:57
@erikgb erikgb merged commit bf9b879 into weaveworks:main Feb 1, 2025
This was referenced Feb 4, 2025
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