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

feat(security): add UserPermissionEvaluator #1179

Merged
merged 2 commits into from
Apr 27, 2024

Conversation

dbyron-sf
Copy link
Contributor

@dbyron-sf dbyron-sf commented Apr 26, 2024

so S3ArtifactStoreGetter can call a username-based hasPermission method. FiatPermissionEvaluator has this method, but using FiatPermissionEvaluator in kork would create a circular dependency.

The plan is:

  • publish a kork jar with UserPermissionEvaluator,
  • consume it in fiat and change FiatPermissionEvaluator to implement UserPermissionEvaluator instead of PermissionEvaluator
  • publish a fiat jar and consume it everywhere
  • change S3ArtifactStoreGetter to use UserPermissionEvaluator to fix the bug that test(artifacts): demonstrate that S3ArtifactStoreGetter.get does not … #1178 demonstrates
  • publish yet another kork jar and consume it everywhere to fix use of fetchReference in Evaluate Variables stages

so S3ArtifactStoreGetter can call a username-based hasPermission method.
FiatPermissionEvaluator has this method, but using FiatPermissionEvaluator in kork would
create a circular dependency.

The plan is:

- publish a kork jar with UserPermissionEvaluator,
- consume it in fiat and change FiatPermissionEvaluator to implement UserPermissionEvaluator instead of PermissionEvaluator
- publish a fiat jar and consume it everywhere
- change S3ArtifactStoreGetter to use UserPermissionEvaluator to fix the bug that spinnaker#1178 demonstrates
- publish yet another kork jar and consume it everywhere to fix use of fetchReference in Evaluate Variables stages
@dbyron-sf dbyron-sf marked this pull request as ready for review April 26, 2024 23:59
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Apr 27, 2024
@mergify mergify bot added the auto merged label Apr 27, 2024
@mergify mergify bot merged commit 0bd4ff8 into spinnaker:master Apr 27, 2024
5 checks passed
@dbyron-sf dbyron-sf deleted the add-UserPermissionEvaluator branch April 27, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants