Skip to content

Conversation

ostrain
Copy link
Contributor

@ostrain ostrain commented Jul 22, 2025

The "Push Model via Credentials in Secret" section defines a label to associate the secret with a ClusterProfile but only accounts for the ClusterProfile's name.

ClusterProfiles are namespaced objects so we need a way to specify the namespace as well (the secret is in a per-consumer namespace whereas the ClusterProfile is shared across consumers so is likely in a different namespace).

This PR adds a second label to specify the ClusterProfile namespace.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 22, 2025
@k8s-ci-robot k8s-ci-robot requested review from JeremyOT and skitt July 22, 2025 19:10
@k8s-ci-robot
Copy link
Contributor

Welcome @ostrain!

It looks like this is your first PR to kubernetes/enhancements 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/enhancements has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 22, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @ostrain. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/multicluster Categorizes an issue or PR as relevant to SIG Multicluster. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 22, 2025
@ostrain
Copy link
Contributor Author

ostrain commented Jul 22, 2025

/cc ryanzhang-oss

@k8s-ci-robot
Copy link
Contributor

@ostrain: GitHub didn't allow me to request PR reviews from the following users: ryanzhang-oss.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc ryanzhang-oss

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@skitt
Copy link
Member

skitt commented Jul 24, 2025

FYI @ryanzhang-oss

Thanks @ostrain!

/ok-to-test
/approve

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 24, 2025
@ostrain
Copy link
Contributor Author

ostrain commented Aug 5, 2025

An alternative thought I had is we could consider removing this stuff and making this section less prescriptive about what the secret should look like.

Instead, we could recommend using the new external credential provider mechanism (https://github.com/kubernetes/enhancements/blob/master/keps/sig-multicluster/5339-clusterprofile-plugin-credentials/README.md), and then there could be one (or more) such plugins that reads creds from a secret, and the plugin could define what the secret should look like.

That KEP has a trivial sketch of such a secret-based plugin: https://github.com/kubernetes/enhancements/blob/master/keps/sig-multicluster/5339-clusterprofile-plugin-credentials/README.md#secret-reader-plugin

@ostrain
Copy link
Contributor Author

ostrain commented Aug 5, 2025

An alternative thought I had is we could consider removing this stuff and making this section less prescriptive about what the secret should look like.

This would also remove ambiguity of how the consumer should behave if the secret described by this section exists but the ClusterProfile also specifies credentialsProviders -- which would take precedence?

@lauralorenz
Copy link
Contributor

This looks good to me, but I'll pop the merge if I hard lgtm and I want @ryanzhang-oss to look.

I see what you mean in #5457 (comment) however. If we are staying prescriptive, I think a follow on with an API example of Push Model via Credentials in Secret inline here or in an appendix would be nice. I feel its implied that CredentialProvider should take preference over the "Not Recommended" secret provider but is not explicit. Are we ok to leave that to implementations to decide? Seems ok, possibly even preferred, to me but depends what you are going for.

@ostrain
Copy link
Contributor Author

ostrain commented Aug 5, 2025

/assign @ryanzhang-oss

I'd love your input on this when you get a chance, thanks!

@k8s-ci-robot
Copy link
Contributor

@ostrain: GitHub didn't allow me to assign the following users: ryanzhang-oss.

Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @ryanzhang-oss

I'd love your input on this when you get a chance, thanks!

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ryanzhang-oss
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 12, 2025
@ryanzhang-oss
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ostrain, ryanzhang-oss, skitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 17c96f9 into kubernetes:master Aug 12, 2025
4 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.34 milestone Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. sig/multicluster Categorizes an issue or PR as relevant to SIG Multicluster. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants