Skip to content

Simplify the removal of all certificates from a namespace#477

Merged
shakeelrao merged 3 commits intomainfrom
shak/cert-management
Sep 22, 2025
Merged

Simplify the removal of all certificates from a namespace#477
shakeelrao merged 3 commits intomainfrom
shak/cert-management

Conversation

@shakeelrao
Copy link
Copy Markdown
Contributor

@shakeelrao shakeelrao commented Sep 22, 2025

Currently, to remove all certificates from a NS, clients need to export the PEM bundle from the NS and then run:

tcld namespace ca remove -n <namespace> -f pem.txt

This flow is slightly tedious, since you often don't know (or care) about the existing certificates when wiping them.

To solve this, this PR introduces a --all flag to the tcld namespace ca remove subcommand. When provided, the command removes all certificates from the namespace directly:

tcld namespace ca remove -n <namespace> --all

@shakeelrao shakeelrao requested a review from a team as a code owner September 22, 2025 03:10
@shakeelrao shakeelrao changed the title Support removing all client CA certs from a namespace Support removing all certificates from a namespace Sep 22, 2025
@shakeelrao shakeelrao changed the title Support removing all certificates from a namespace Simplify the ability to remove all certificates from a namespace Sep 22, 2025
@shakeelrao shakeelrao changed the title Simplify the ability to remove all certificates from a namespace Simplify the removal of all certificates from a namespace Sep 22, 2025
Copy link
Copy Markdown
Contributor

@captainbeardo captainbeardo left a comment

Choose a reason for hiding this comment

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

Maybe add some tests?

@shakeelrao
Copy link
Copy Markdown
Contributor Author

Maybe add some tests?

doh! forgot we had unit tests, haha. i did test locally though :-)

@shakeelrao shakeelrao merged commit 531067b into main Sep 22, 2025
5 checks passed
@shakeelrao shakeelrao deleted the shak/cert-management branch September 22, 2025 19:57
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.

2 participants