-
Notifications
You must be signed in to change notification settings - Fork 2k
[v18] Add Env0 join method (#60386) #60710
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
Conversation
|
Amplify deployment status
|
|
Note, this depends on a few PRs:
|
ced0cac to
03ac710
Compare
* 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.go
03ac710 to
8b6a05e
Compare
|
@timothyb89 - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes. |
strideynet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we manually tested this backport? If so, can we record that on the PR with what has been tested?
Fair call out - I did manually retest it against my Env0 tenant without any trouble. I've added a note to the PR description about this as well. |
Backport of #60386 for branch/v18
I re-tested the backport against a live Env0 tenant without any trouble. Note that as written this functionality will not be usable without #60293, but will work as expected once merged.
This adds a new
env0join 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
env0join method to support joining within Env0 workflowsFix 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:
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.go