Audit what destroys data and what changes who can reach it - #24
Merged
Conversation
The log recorded credential, user, quota and upload-limit changes, but deleting a bucket — and everything in it — left no trace, and neither did making one anonymously readable. "Who made this public, and when" is the first question an incident asks and the one thing this log could not answer. Adds bucket.create, bucket.delete, bucket.access, bucket.cors, bucket.policy, object.upload and object.delete. The access and policy entries record the resulting visibility read back from the bucket record rather than what was requested, so the reader is not left re-evaluating a stored policy document months later — and a policy that replaces an earlier toggle shows up as the exposure it actually produced. Session events already existed; they now carry the source address, which is the field that makes a sign-in record useful. Peer address, never X-Forwarded-For: that header is written by whoever spoke to us last, and recording an attacker's chosen value as the source of a sign-in is worse than recording none. kAuditCapacity 5000 -> 20000, because object events arrive per click rather than per account change and the window in time is what the number really chooses. S3 signature failures stay unlogged and the write discipline is unchanged — no fsync, dropped when the I/O queue is full.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The log recorded credential, user, quota and upload-limit changes, but deleting a bucket — and everything in it — left no trace, and neither did making one anonymously readable. "Who made this public, and when" is the first question an incident asks and the one thing this log could not answer.
Adds bucket.create, bucket.delete, bucket.access, bucket.cors, bucket.policy, object.upload and object.delete. The access and policy entries record the resulting visibility read back from the bucket record rather than what was requested, so the reader is not left re-evaluating a stored policy document months later — and a policy that replaces an earlier toggle shows up as the exposure it actually produced.
Session events already existed; they now carry the source address, which is the field that makes a sign-in record useful. Peer address, never X-Forwarded-For: that header is written by whoever spoke to us last, and recording an attacker's chosen value as the source of a sign-in is worse than recording none.
kAuditCapacity 5000 -> 20000, because object events arrive per click rather than per account change and the window in time is what the number really chooses. S3 signature failures stay unlogged and the write discipline is unchanged — no fsync, dropped when the I/O queue is full.