Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to CFT logging modules #613

Merged
merged 7 commits into from
Oct 19, 2020
Merged

Migrate to CFT logging modules #613

merged 7 commits into from
Oct 19, 2020

Conversation

umairidris
Copy link
Member

I have upstreamed features from DPT into the CFT logging modules so they mostly match our feature set. They also have new features to set things like bucket locks which are useful for hipaa alignment.

expiration_days = 7*365
retention_policy = {
is_locked = true
retention_period_days = 6 * 365
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the different between the retention_period_days here and expiration_days above? and why are they set to different values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retention period does not actually do anything. It just forces the bucket to permanently have an expiry that is at least this amount. See https://cloud.google.com/storage/docs/bucket-lock. I also added a comment.

p.s. there seems to be an org policy we should probably set as well: https://cloud.google.com/storage/docs/org-policy-constraints#audit-logging. Do you want to look into that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure i'll look into that.

@umairidris umairidris merged commit 01d8629 into master Oct 19, 2020
@umairidris umairidris deleted the log branch October 19, 2020 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants