Skip to content

Commit

Permalink
Strip whitespace is not supported for conbytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Nov 9, 2023
1 parent f33e365 commit 1d2420e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion registrar/zenith/registrar/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class SSHPublicKeyType(str, enum.Enum):
ED25519 = "ssh-ed25519"





class RegistrarConfig(
Configuration,
default_path = "/etc/zenith/registrar.yaml",
Expand All @@ -29,7 +32,7 @@ class RegistrarConfig(
Configuration model for the zenith-registrar package.
"""
#: The key that is used to sign the subdomain tokens
subdomain_token_signing_key: conbytes(strip_whitespace = True, min_length = 32)
subdomain_token_signing_key: conbytes(min_length = 32)

#: The base domain that Zenith services are proxied under
#: The FQDN (i.e. subdomain + base domain) for each service must be at most 64 characters
Expand Down

0 comments on commit 1d2420e

Please sign in to comment.