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

backupccl: stop logging unsanitized backup stmt in schedule executor #99150

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

msbutler
Copy link
Collaborator

Informs #99145

Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Mar 21, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

👍 Thanks for fixing this up.

If we wanted to go a bit further, we have some code in this file for creating redacted backup statements. We could print a redacted backup statement rather than just the schedule ID if we saw value in having the whole statement.

But, I personally thing that just the ID is fine.

@msbutler msbutler added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Mar 22, 2023
@msbutler
Copy link
Collaborator Author

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Mar 22, 2023

Build failed:

@msbutler
Copy link
Collaborator Author

bors r=retry

@craig
Copy link
Contributor

craig bot commented Mar 22, 2023

Build failed (retrying...):

@msbutler
Copy link
Collaborator Author

bors r-

@craig
Copy link
Contributor

craig bot commented Mar 22, 2023

Canceled.

This patch ensures that no unsanitized uris or secret keys get written to the
jobs table if the backup fails.

Informs cockroachdb#99145

Release note: None
@msbutler
Copy link
Collaborator Author

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Mar 22, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 T-disaster-recovery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants