test: reject the config.example.yml placeholder signing_key
The placeholder is 45 characters, so it passes the length check and a deployment could unknowingly sign URLs with a key that is public in this repository. Add a failing validation case (and the placeholder constant it references); the rejection follows. Model: opus-4-8
This commit is contained in:
@@ -303,6 +303,11 @@ func invalidHostAndCredentialCases() []abortCase {
|
||||
yaml: "signing_key: short\n",
|
||||
wantErrSubstrings: []string{keySigningKey},
|
||||
},
|
||||
{
|
||||
name: "signing_key is the documented placeholder",
|
||||
yaml: "signing_key: " + placeholderSigningKey + "\n",
|
||||
wantErrSubstrings: []string{keySigningKey},
|
||||
},
|
||||
{
|
||||
name: "signing_key missing",
|
||||
yaml: "port: 8080\n",
|
||||
|
||||
Reference in New Issue
Block a user