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
Include stderr in cred provider plugin errors #117448
Include stderr in cred provider plugin errors #117448
Conversation
@cartermckinnon: The label(s) In response to this:
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/test-infra repository. |
Hi @cartermckinnon. 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 Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
one line fix to pass through an err, happy to land this. /ok-to-test |
LGTM label has been added. Git tree hash: fedd000fde3c45cf031e68470e622c268d5efbbe
|
/priority important-soon |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cartermckinnon, dims 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 |
What type of PR is this?
/kind feature
This is a small quality-of-life thing.
What this PR does / why we need it:
This PR includes stderr in the error returned after failing to invoke a credential provider exec plugin. Failure in these external plugins (due to mismatched
apiVersion
, for example) currently only results in a generic log line:After this PR, the message will include more details. For example:
Determining why a credential provider plugin failed is otherwise somewhat obtuse. I've done this by placing a logging shim between kubelet and the provider, but this PR makes such an effort unnecessary.
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
While the credential provider does return secrets via standard output, which should never be logged by kubelet -- secrets should not be logged to standard error. If we need to explicitly document this in the credential provider contract, we can do that.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
N/A