mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Enforce valid publish_signing_algorithm config
This commit is contained in:
parent
73d35c9d54
commit
7322f3796b
1 changed files with 6 additions and 0 deletions
|
@ -4129,6 +4129,12 @@ def apply_master_config(overrides=None, defaults=None):
|
|||
_update_ssl_config(opts)
|
||||
_update_discovery_config(opts)
|
||||
|
||||
if opts["publish_signing_algorithm"] not in salt.crypt.VALID_SIGNING_ALGORITHMS:
|
||||
raise salt.exceptions.SaltConfigurationError(
|
||||
f"The publish signging algorithm '{opts['publish_signing_algorithm']}' is not valid. "
|
||||
f"Please specify one of {','.join(salt.crypt.VALID_SIGNING_ALGORITHMS)}."
|
||||
)
|
||||
|
||||
return opts
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue