Skip to content
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

[v17] Machine ID: Add bitbucket join method for Bitbucket Pipelines joining (#48724) #49335

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

timothyb89
Copy link
Contributor

@timothyb89 timothyb89 commented Nov 21, 2024

Backport of #48724 for branch/v17


This adds a new bitbucket join method that Machine ID bots can use to authenticate to Teleport from Bitbucket Pipelines CI runs.

changelog: Support delegated joining for Bitbucket Pipelines in Machine ID

…ng (#48724)

* Add `bitbucket` join method for Bitbucket Pipelines joining

This adds a new `bitbucket` join method that Machine ID bots can use
to authenticate to Teleport from Bitbucket Pipelines CI runs.

* Add unit tests for bitbucket joining

This also fully adds `deployment_environment_uuid` which was found to
be missing.

* Fix imports

* Update tf docs

* Docs update

* Update generated TF resources

* Attempt to work around docs linter

* Add provision token tests

* Remove pipeline_uuid and step_uuid from protos

Also, fix deploment_environment_uuid field name.

* Remove references to removed fields in tests

* Switch to go-oidc/v3 and remove now-redundant nbf check

* Fix go.mod imports for the TF provider

* Fix event-handler go.mod

* Address review feedback; add 15s timeout to fetch provider metadata

* Update lib/bitbucket/token_validator.go

Co-authored-by: rosstimothy <[email protected]>

* Fix build after constant rename

---------

Co-authored-by: rosstimothy <[email protected]>
@public-teleport-github-review-bot

@timothyb89 - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

Copy link

🤖 Vercel preview here: https://docs-442wgmulo-goteleport.vercel.app/docs

@timothyb89 timothyb89 added this pull request to the merge queue Nov 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 23, 2024
@timothyb89 timothyb89 added this pull request to the merge queue Nov 23, 2024
Merged via the queue into branch/v17 with commit bd92654 Nov 23, 2024
45 of 46 checks passed
@timothyb89 timothyb89 deleted the timothyb89/v17/bitbucket-pipelines-joining branch November 23, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants