Commit e4f9591
authored
feat(ske): implement idp flow for kubeconfig login (#1322)
* extract kubeconfig certificate validation
* simplify kubeconfig retrieval
* extract kubeconfig retrieval
* reorder imports
* Split kubeconfig retrieval and output
* replace hardcoded timeout with constant
* implement kubeconfig login --idp flow
* Add tests
* fix test failure if KUBECONFIG environment variable is set
* make retrieval of idp well known config reusable
* optionally initialize IDP_TOKEN_ENDPOINT auth field for service accounts
When activating a service account, clear a possibly stale old value. Add
a separate method to allow commands to request the initialization of the
IDP_TOKEN_ENDPOINT auth field.
* refactor token exchange into auth package1 parent 3b70f97 commit e4f9591
File tree
13 files changed
+772
-247
lines changed- docs
- internal
- cmd/ske/kubeconfig/login
- pkg
- auth
- services/ske/utils
13 files changed
+772
-247
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments