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

Allow creating certificate authorities #2001

Merged
merged 1 commit into from
Jun 8, 2018
Merged

Allow creating certificate authorities #2001

merged 1 commit into from
Jun 8, 2018

Conversation

klizhentas
Copy link
Contributor

Creating certificate authorities is necessary during
migration/recovery procedures.

Creating certificate authorities is necessary during
migration/recovery procedures.
@klizhentas
Copy link
Contributor Author

@russjones @r0mant please review

if err != nil {
return trace.Wrap(err)
}
if err := client.UpsertCertAuthority(certAuthority); err != nil {
Copy link
Contributor

@russjones russjones Jun 8, 2018

Choose a reason for hiding this comment

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

Since this does a upsert and not create it's a pretty serious operation with which you can accidentally take down your entire cluster. We should probably prompt the user with something like before continuing.

Warning: Updating your certificate authorities can potentially put your
cluster in a unrecoverable state. Make sure you backup all Teleport state
and export your existing certificate authorities before you continue.

Are you sure you want to proceed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't have this flow anywhere, so I would let them do this on their own risk.

@klizhentas klizhentas merged commit 3645b4b into master Jun 8, 2018
@klizhentas klizhentas deleted the sasha/create2 branch June 8, 2018 18:43
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