406e225e350009add340d0bd21e3e5ad40515a35
Real bug found via browser-testing the new bindings UI (t2db.8): UpdateBinding's own store-layer contract documents that an empty Secret means "preserve the existing one" (COALESCE against NULLIF), but handleBindingUpdate validated with the create-time Validate(), which unconditionally requires a full-length secret -- rejecting the exact "leave blank to keep it" edit flow the store was built to allow. Root-cause fix, not a UI workaround: Binding.Validate() (create, unchanged, still requires a real secret -- there's nothing to fall back to on insert) now delegates shared field checks to a private validateCommon(); a new ValidateForUpdate() reuses the same checks but only enforces the secret-length floor when the caller actually supplied a new one. handleBindingUpdate now calls ValidateForUpdate. 3 new domain tests + 1 new API-layer test pin: empty secret accepted on update, a genuinely-short new secret still rejected on update, empty secret still rejected on create.
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
133 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.9%
Vue
13.1%
TypeScript
7.7%
JavaScript
1.2%
Shell
0.6%
Other
0.4%