-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: output coordinator policy on generate
As soon as we embed a default coordinator policy into the CLI, the set and verify subcommands will stop working if the coordinator policy does not match expectations. Thus, we need to make users aware if we detect a non-default coordinator among the deployments. If the CLI encounters an unexpected coordinator policy in the input YAML, it prints the policy hash to stdout and warns on stderr. This provides the user with two choices, depending on their workflow: 1. Users that don't expect changes to the coordinator policy can abort right away to check why the policy changed. But even if they ignore the output entirely, set will still fail closed. 2. Users that deliberately changed the coordinator but want to verify it nonetheless. These users need to pass the output to the set command, if it was not empty. Co-authored-by: Paul Meyer <[email protected]>
- Loading branch information
1 parent
90e9aba
commit 9babab1
Showing
8 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters