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

Fix disabling redact PII on logging settings #3577

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

dfialho
Copy link
Contributor

@dfialho dfialho commented Nov 7, 2024

Description

Trying to disable redact PII on the logging
settings would have no effect because the logging
settings object would be marshaled without the
redact_pii field which result in the default
value being used, which is true in this case.

To fix this, the redact_pii is now included
even set to false when the logging settings
object is marshaled.

Has your change been tested?

Besides the automated test, the change was
manually validated by using the lib to call
the API to make the change that was causing
problems.

Types of changes

What sort of change does your code introduce/modify?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented in cloudflare/api-schemas
    and relies on stable APIs.

@dfialho dfialho requested a review from jacobbednarz as a code owner November 7, 2024 11:29
teams_accounts_test.go Outdated Show resolved Hide resolved
teams_accounts.go Outdated Show resolved Hide resolved
Trying to disable redact PII on the logging
settings would have no effect because the logging
settings object would be marshaled without the
`redact_pii` field which result in the default
value being used, which is `true` in this case.

To fix this, the `redact_pii` is now included
even set to `false` when the logging settings
object is marshaled.
@jacobbednarz jacobbednarz merged commit 7289d6f into cloudflare:master Nov 12, 2024
8 of 9 checks passed
@github-actions github-actions bot added this to the v0.110.0 milestone Nov 12, 2024
Copy link
Contributor

This functionality has been released in v0.110.0.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants