Why: PUT /api/sources/{name} with verification none or token returns 500 because the write leaves hmac_secret_sealed null where the column or query expects a value. Only sources verified by HMAC can be saved, so a token-verified webhook source can't be created or edited.
Done when: a source saves with each verification mode, the secret column is set only for HMAC, and a test with fakes covers each mode.
**Why**: PUT /api/sources/{name} with verification none or token returns 500 because the write leaves hmac_secret_sealed null where the column or query expects a value. Only sources verified by HMAC can be saved, so a token-verified webhook source can't be created or edited.
**Done when**: a source saves with each verification mode, the secret column is set only for HMAC, and a test with fakes covers each mode.
sam
added the bughigh labels 2026-11-22 00:20:20 +00:00
Fixed in a420b742e: sourceToSave left the sealed HMAC secret as a nil slice for token and none sources, which the store wrote as NULL into a NOT NULL column. It now starts empty; a table test over none, token and hmac failed for none and token before the fix.
Fixed in a420b742e: sourceToSave left the sealed HMAC secret as a nil slice for token and none sources, which the store wrote as NULL into a NOT NULL column. It now starts empty; a table test over none, token and hmac failed for none and token before the fix.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why: PUT /api/sources/{name} with verification none or token returns 500 because the write leaves hmac_secret_sealed null where the column or query expects a value. Only sources verified by HMAC can be saved, so a token-verified webhook source can't be created or edited.
Done when: a source saves with each verification mode, the secret column is set only for HMAC, and a test with fakes covers each mode.
Fixed in
a420b742e: sourceToSave left the sealed HMAC secret as a nil slice for token and none sources, which the store wrote as NULL into a NOT NULL column. It now starts empty; a table test over none, token and hmac failed for none and token before the fix.