diff options
| author | tv <tv@krebsco.de> | 2026-11-15 20:23:27 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-15 20:23:27 +0000 |
| commit | 562be3ff576a3e83ce564161245c100a18fee8c9 (patch) | |
| tree | c19adbbab126902ed02bd39e2b1d56b0cf9f40e6 | |
| parent | 6a587c31bfc1c7b21fad0bc7a01af2355a4fa3aa (diff) | |
continuum-signed: its reading of an envelope is best effort
The reference client's check of an envelope takes some strings the
server doesn't (padded base64, a meta field twice, a number written as
a float). Only a string crafted so, from before a strict policy, gets
there, and the server answers `409`; the comment says so.
| -rwxr-xr-x | scripts/continuum-signed | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/continuum-signed b/scripts/continuum-signed index b4d9498..00d5c30 100755 --- a/scripts/continuum-signed +++ b/scripts/continuum-signed @@ -90,7 +90,9 @@ login() { # Whether $1 is an envelope as continuum reads one: `cv2.`, then the value, the meta and # the signature, each in base64url, the value one line of JSON and the meta one line -# holding its six fields, no more. Anything else is a plain value, replaced as one. +# holding its six fields, no more. Anything else is a plain value, replaced as one. Best +# effort: what the server reads decides, and a string crafted to read as one here and +# not there (padded, a field twice, a number written as a float) is answered `409`. is_envelope() { case $1 in cv2.*.*.*) ;; |
