Skip to content

fix: source edits keep the ingest key; a disabled source takes no evidence - #68

Open
alexeybe1kin wants to merge 8 commits into
mainfrom
fix/evidence-source-updates
Open

alexeybe1kin wants to merge 8 commits into
mainfrom
fix/evidence-source-updates

Conversation

@alexeybe1kin

Copy link
Copy Markdown
Collaborator

Hunt findings memorygate-1 F13 and F14.

  • POST /evidence/sources with new secrets replaced the whole secret map. That dropped the ingest_key made by rotate-ingest-key, so the listener was cut off. The ingest key is now kept; other secrets are replaced as before (and {} still means unchanged).
  • POST /evidence accepted evidence for a disabled source. It is now refused with 409.
  • last_ingested_at was set to the event's own occurred_at, which can be years old or in the future. It is now the arrival time.

Tests: tests/test_evidence_source_updates.py, 2 tests, both failing on main. Locally: evidence and listener tests 44 passed; ruff and types ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant