fix(sources): stored secrets are sent to a new host when a source's URL changes #11
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sources.persist_attrs(sources.ex:356) and:382) keep a blank secret field as "keep stored" even when atest_connection(:urlfield changes, so Test connection or Save sends the stored credential to whatever host was just entered. Any logged-in account can read out every stored API key this way.Fix: when any
:urlfield changes, drop stored secrets and require them to be re-entered (validation error if blank).Regression test: Nye's test/audit/secret_retarget_test.exs (proof F2).
Found in the pre-1.0 gap audit of main @
69e09f0.