-
Notifications
You must be signed in to change notification settings - Fork 805
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
Add admin failover for managed domains #3154
Conversation
Name: "failover", | ||
Aliases: []string{"fo"}, | ||
Usage: "Failover domains with domain data IsManagedByCadence=true to target cluster", | ||
Flags: []cli.Flag{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this command should only be executed by cadence team. Should the command also takes in a security token and verify its content before actually execution?
Just an idea to explore. I understand this is not easy as the underlying domain failover command doesn't require security token.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. But security token on open sourced repo is merely support on server API.
Internally we will be protected by the auth feature.
What changed?
Add admin CLI command to failover managed domains
Why?
Currently domain failover is by design managed by cadence user. Some users dislike to failover themselves because they don't know how or when to failover.
By adding this managed failover support, cadence now have the ability to failover users domain on their behalf.
How did you test it?
Unit test.
Local test.
Will do staging test before release.
Potential risks
No risk.