Commit ced0cac
committed
Add Env0 join method (#60386)
* Add Env0 method
This adds a new `env0` join method to support joining from env0
workflows, and especially the embedded tbot in the Terraform provider
when running on env0.
This is the first OIDC join method on the new join service, and will
not support legacy joining. As such, it won't be backported beyond
v18.
Closes #53798
changelog: Add new `env0` join method to support joining within Env0 workflows
* Fix imports
* Fix failing test
* Add env0 token source
* Fix missing env0 join method in tbot
* Fix env0 validation
This fixes some issues in env0 token validation:
- azp check is disabled since it's set to a random (ish) value
- Use correct audience URL (their docs specified the wrong value)
* Fix incorrect date in new file copyright header
* Fix generated tfschema
* Fix failing test after adding the token source
* First round of code review
* Add example token claims in comment
* Move common OIDC handling logic into a separate handler
Specific validation logic is now separate and the validator is passed
as an argument to a generic `handleOIDCJoin()` handler.
* Fix imports
* Rename joinclient/join_env0.go to join_oidc.go1 parent fb8248f commit ced0cac
File tree
32 files changed
+6334
-2958
lines changed- api
- gen/proto/go/teleport
- join/v1
- workloadidentity/v1
- proto/teleport
- join/v1
- legacy/types
- workloadidentity/v1
- types
- docs/pages/reference/infrastructure-as-code
- operator-resources
- terraform-provider
- data-sources
- resources
- examples/chart/teleport-cluster/charts/teleport-operator/operator-crds
- integrations
- operator/config/crd/bases
- terraform/tfschema
- lib
- auth
- machineid/machineidv1
- join
- env0
- internal/messages
- joinclient
- joinv1
- tbot/bot/onboarding
- utils/hostid
- web
32 files changed
+6334
-2958
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 209 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
110 | 124 | | |
111 | 125 | | |
112 | 126 | | |
| |||
233 | 247 | | |
234 | 248 | | |
235 | 249 | | |
| 250 | + | |
| 251 | + | |
236 | 252 | | |
237 | 253 | | |
238 | 254 | | |
239 | 255 | | |
240 | 256 | | |
241 | 257 | | |
| 258 | + | |
| 259 | + | |
242 | 260 | | |
243 | 261 | | |
244 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1540 | 1540 | | |
1541 | 1541 | | |
1542 | 1542 | | |
| 1543 | + | |
| 1544 | + | |
1543 | 1545 | | |
1544 | 1546 | | |
1545 | 1547 | | |
| |||
2029 | 2031 | | |
2030 | 2032 | | |
2031 | 2033 | | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
2032 | 2079 | | |
2033 | 2080 | | |
2034 | 2081 | | |
| |||
0 commit comments