aws / aws/aws-sdk-java-v2

Equivalent to `aws eks get-token`

Aperta
#6,440 1 commento 1 reazione 0 assegnatari Vedi su GitHub
feature-request service-api service:eks
Lingua principale
Java
Stelle
2.6k
Fork
1k
Merge medio
2g 9h
PR unite (30g)
51

Descrizione

### Describe the feature

It would be nice if there was a AWS Java SDK equivalent of AWS CLI's `aws eks get-token`, which I could call to generate a (time-limited) Kubernetes API token for my Java process' current AWS identity similar to:
```json
{
"kind": "ExecCredential",
"apiVersion": "client.authentication.k8s.io/v1beta1",
"spec": {},
"status": {
"expirationTimestamp": "1970-01-01T00:00:00Z",
"token": "k8s-aws-v1.[REDACTED]"
}
}
```

### Use Case

Authenticate to an AWS EKS cluster via its regular Kubernetes HTTP API, without having to create a permanent Kubernetes API token and pass it to the Java process that's already authenticated to AWS.

### Proposed Solution

An officially sanctioned version of e.g. https://github.com/MrBergin/EksX or https://stackoverflow.com/questions/59853623/get-authentication-token-from-aws-eks-using-the-aws-java-sdk-v2.

### Other Information

References: https://github.com/aws/aws-sdk-java/discussions/2737
References: https://github.com/aws/aws-sdk-java/issues/1795
References: https://stackoverflow.com/questions/59853623/get-authentication-token-from-aws-eks-using-the-aws-java-sdk-v2
References: https://github.com/MrBergin/EksX

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS Java SDK version used

2.33.2

### JDK version used

docker.io/library/eclipse-temurin:17.0.16_8-jre

### Operating System and version

Linux 6.16

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia confrontando l'output ExecCredential richiesto con `aws eks get-token` di AWS CLI, nonché con l'implementazione EksX indicata e le discussioni su AWS SDK. Determina dove potrebbe integrarsi una funzionalità di Java SDK ufficialmente supportata e considera completata la richiesta quando un processo Java può generare un token API Kubernetes EKS a tempo limitato dalla propria identità AWS corrente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, java, kubernetes
Ambito
api, authentication, cloud
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.