Skip to content

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

Merged
timothyb89 merged 1 commit intobranch/v17from
timothyb89/v17/bitbucket-pipelines-joining
Nov 23, 2024
Merged

[v17] Machine ID: Add bitbucket join method for Bitbucket Pipelines joining (#48724)#49335
timothyb89 merged 1 commit intobranch/v17from
timothyb89/v17/bitbucket-pipelines-joining

Conversation

@timothyb89
Copy link
Copy Markdown
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 <39066650+rosstimothy@users.noreply.github.com>

* Fix build after constant rename

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
@public-teleport-github-review-bot
Copy link
Copy Markdown

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

@github-actions
Copy link
Copy Markdown
Contributor

🤖 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
@timothyb89 timothyb89 deleted the timothyb89/v17/bitbucket-pipelines-joining branch November 23, 2024 01:28
@fheinecke fheinecke mentioned this pull request Mar 18, 2025
@fheinecke fheinecke mentioned this pull request Apr 9, 2025
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