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

Deduplicate access request IDs before signing certificates #9453

Merged
merged 1 commit into from Dec 17, 2021

Conversation

espadolini
Copy link
Contributor

An user with an approved access request <request_id> could repeatedly call tsh login --request-id=<request_id> and accumulate multiple copies of the same access request in their ssh certificate, so we just deduplicate the IDs before proceeding with the checks and the issuance.

As a bonus, we also display the current active requests (if any) in the output of tsh status.

@russjones russjones requested review from fspmarshall and removed request for atburke December 16, 2021 21:29
@espadolini espadolini force-pushed the espadolini/access-requests-dedup branch from 1d80844 to 58bb61d Compare December 17, 2021 10:30
@espadolini espadolini enabled auto-merge (squash) December 17, 2021 10:30
@espadolini espadolini enabled auto-merge (squash) December 17, 2021 10:31
@espadolini espadolini merged commit 4e8e7c3 into master Dec 17, 2021
@espadolini espadolini deleted the espadolini/access-requests-dedup branch December 17, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants