Skip to content

Fix: Enable users to use Archived Workflows functionality when RBAC is Namespace delegated #10399

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

Merged
merged 17 commits into from
Jan 31, 2023

Conversation

juliev0
Copy link
Contributor

@juliev0 juliev0 commented Jan 25, 2023

Fixes #8498

Implementation is based on the recommendations by Jesse here. Each archives request (not just "list") now includes a namespace parameter, and implements GetNamespace(), enabling the existing gateway functionality to locate the right Service Account based on the caller's claims.

For backward compatibility with existing client libraries, the existing field selector method of selecting namespace is also supported.

Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
}
message ListArchivedWorkflowLabelValuesRequest {
k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions listOptions = 1;
string namespace = 2;
}
Copy link
Contributor Author

@juliev0 juliev0 Jan 25, 2023

Choose a reason for hiding this comment

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

I wasn't absolutely sure whether to add namespace to these last two. These seem to be used for populating the drop downs. The requests themselves don't need that information, but I figured if somebody has selected a user namespace this will allow them to get this information in the case of namespace-delegated RBAC.

Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
…mespace

Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
@juliev0 juliev0 marked this pull request as ready for review January 30, 2023 02:25
@sarabala1979 sarabala1979 merged commit 133b4a3 into argoproj:master Jan 31, 2023
Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

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

Thank you @juliev0!

jessesuen pushed a commit to akuity/argo-workflows that referenced this pull request Jan 31, 2023
…s Namespace delegated (argoproj#10399)

Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
reddymh pushed a commit to reddymh/argo-workflows that referenced this pull request Jan 31, 2023
…s Namespace delegated (argoproj#10399)

Signed-off-by: Julie Vogelmani <julie_vogelman@intuit.com>
Signed-off-by: Rajshekar Reddy <reddymh@gmail.com>
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.

Viewing Archived Workflows when RBAC is Namespace Delegated - Bug?
4 participants