kubernetes-client / kubernetes-client/java
GCP authentication does not support refreshing tokens
- Ngôn ngữ chính
- Java
- Star
- 4k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 16
Mô tả
This relates to #143.
GCPAuthenticator does not implement the refresh() method.
How can the client be used without manually refreshing the access token if it is expired?
for reference, initializing the client (i.e. running the example) with an expired token will result in:
`Caused by: java.lang.IllegalStateException: Unimplemented
at io.kubernetes.client.util.authenticators.GCPAuthenticator.refresh(GCPAuthenticator.java:49)
at io.kubernetes.client.util.KubeConfig.getAccessToken(KubeConfig.java:188)
at io.kubernetes.client.util.credentials.KubeconfigAuthentication.(KubeconfigAuthentication.java:33)
at io.kubernetes.client.util.ClientBuilder.kubeconfig(ClientBuilder.java:165)
at io.kubernetes.client.util.ClientBuilder.standard(ClientBuilder.java:80)
at io.kubernetes.client.util.Config.defaultClient(Config.java:104)
at serivces.KubernetesService.(KubernetesService.groovy:23)
... 2 more`
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with GCPAuthenticator.java at refresh(), then trace the expired-token path through KubeConfig.java at getAccessToken() and the ClientBuilder initialization shown in the stack trace. Run the referenced client example with an expired token; done means initialization refreshes the token instead of throwing Unimplemented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- gcp, java
- Lĩnh vực
- authentication, cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100