-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support authentication with certificate in exec-credentials #5608
Comments
https://kubernetes.io/docs/reference/access-authn-authz/authentication/#input-and-output-formats
|
Is your task related to a problem? Please describe
In class io.fabric8.kubernetes.client.Config, it is only support authenticate with token, authenticate with certificate is unsupported and marked as TODO.
Due to there is no token generated by ExecConfig and certificate is not supported yet, so all requests treat as anonymous request
WARN No token returned
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://[server]:6443/api/v1/namespaces/sandbox/secrets. Message: secrets is forbidden: User "system:anonymous" cannot list resource "secrets" in API group "" in the namespace "sandbox". Received status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], group=null, kind=secrets, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=secrets is forbidden: User "system:anonymous" cannot list resource "secrets" in API group "" in the namespace "sandbox", metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Forbidden, status=Failure, additionalProperties={}).
Describe the solution you'd like
Implement TODO item, add support to authenticate with certificate
Describe alternatives you've considered
No response
Additional context
Fabric8 Kubernetes Client version: 6.8.1
The text was updated successfully, but these errors were encountered: