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

Workload Identity: Add workload-identity-api service #50859

Merged
merged 11 commits into from
Jan 17, 2025

Conversation

strideynet
Copy link
Contributor

Part of: #49986

As per RFD191: #49133

Depends on #50833

@strideynet strideynet added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 backport/branch/v17 labels Jan 8, 2025
@strideynet strideynet force-pushed the strideynet/tbot-workload-api-new-ux branch from e5ddbfe to b753e19 Compare January 8, 2025 14:35
@strideynet strideynet force-pushed the strideynet/refactor-tbot-internals-around-attrs branch from 5eeb25c to 85accc5 Compare January 8, 2025 14:35
@strideynet strideynet force-pushed the strideynet/tbot-workload-api-new-ux branch from b753e19 to 1b58ca1 Compare January 8, 2025 14:37
@strideynet strideynet force-pushed the strideynet/refactor-tbot-internals-around-attrs branch from 85accc5 to 68eebba Compare January 8, 2025 14:38
@strideynet strideynet changed the title Add new config struct for workload-identity-api service Workload Identity: Addworkload-identity-api service Jan 9, 2025
@strideynet strideynet changed the title Workload Identity: Addworkload-identity-api service Workload Identity: Add workload-identity-api service Jan 9, 2025
@strideynet strideynet force-pushed the strideynet/tbot-workload-api-new-ux branch from 4027530 to 907f813 Compare January 14, 2025 13:06
@strideynet strideynet force-pushed the strideynet/refactor-tbot-internals-around-attrs branch from 68eebba to 467a4cb Compare January 14, 2025 13:08
@strideynet strideynet marked this pull request as ready for review January 14, 2025 14:10
lib/tbot/cli/start_workload_identity_api.go Show resolved Hide resolved
Comment on lines +28 to +30
var (
_ ServiceConfig = &WorkloadIdentityAPIService{}
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var (
_ ServiceConfig = &WorkloadIdentityAPIService{}
)

From Effective Go:

The appearance of the blank identifier in this construct indicates that the declaration exists only for the type checking, not to create a variable. Don't do this for every type that satisfies an interface, though. By convention, such declarations are only used when there are no static conversions already present in the code, which is a rare event.

lib/tbot/service_workload_identity_api.go Show resolved Hide resolved
@strideynet strideynet force-pushed the strideynet/refactor-tbot-internals-around-attrs branch from 467a4cb to bc2ce53 Compare January 15, 2025 10:44
Base automatically changed from strideynet/refactor-tbot-internals-around-attrs to master January 15, 2025 12:42
@strideynet strideynet force-pushed the strideynet/tbot-workload-api-new-ux branch from 65cd987 to b426d09 Compare January 15, 2025 14:06
Copy link
Contributor

@timothyb89 timothyb89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well on my machine, I was able to issue SVIDs through the socket with spiffe-helper without any trouble. This is much more convenient than before!

lib/tbot/cli/start_workload_identity_api.go Outdated Show resolved Hide resolved
@strideynet strideynet enabled auto-merge January 17, 2025 09:40
@strideynet strideynet disabled auto-merge January 17, 2025 10:22
@strideynet strideynet enabled auto-merge January 17, 2025 10:23
@strideynet strideynet added this pull request to the merge queue Jan 17, 2025
Merged via the queue into master with commit e7bd5c2 Jan 17, 2025
43 checks passed
@strideynet strideynet deleted the strideynet/tbot-workload-api-new-ux branch January 17, 2025 11:02
@public-teleport-github-review-bot

@strideynet See the table below for backport results.

Branch Result
branch/v16 Failed
branch/v17 Create PR

strideynet added a commit that referenced this pull request Jan 17, 2025
* Add new config struct for `workload-identity-api` service

* Add CLI command

* Add API

* Wire up API

* Add framework of test

* Rename label selectors for consistency

* Rename for consistency

* Add more assertions to TestBotWorkloadIdentityAPI

* Add to command registry

* Fix CLI flags
github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2025
…#51157)

* Workload Identity: Add `workload-identity-api` service (#50859)

* Add new config struct for `workload-identity-api` service

* Add CLI command

* Add API

* Wire up API

* Add framework of test

* Rename label selectors for consistency

* Rename for consistency

* Add more assertions to TestBotWorkloadIdentityAPI

* Add to command registry

* Fix CLI flags

* cla check cla check cla check cla check cla check cla chec
mvbrock pushed a commit that referenced this pull request Jan 18, 2025
* Add new config struct for `workload-identity-api` service

* Add CLI command

* Add API

* Wire up API

* Add framework of test

* Rename label selectors for consistency

* Rename for consistency

* Add more assertions to TestBotWorkloadIdentityAPI

* Add to command registry

* Fix CLI flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants