Skip to content

Censor domain authcode by default in tools#3170

Open
CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:censor-authcode-default
Open

Censor domain authcode by default in tools#3170
CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:censor-authcode-default

Conversation

@CydeWeys

@CydeWeys CydeWeys commented Jul 21, 2026

Copy link
Copy Markdown
Member

When inspecting domain entities with tools like GetDomainCommand, displaying plaintext authentication codes is unnecessary and presents a security risk for credential exposure in logs and bug ticket comments (b/537293980).

This commit modifies GetDomainCommand to redact sensitive authcodes by default using an in-memory entity builder snapshot while preserving database records. An optional --show_authcode flag with arity 1 is introduced to explicitly display authcodes when required for transfer authorization.

BUG= http://b/537293980


This change is Reviewable

@CydeWeys
CydeWeys requested a review from gbrodman July 21, 2026 16:29
When inspecting domain entities with tools like GetDomainCommand, displaying
plaintext authentication codes is unnecessary and presents a security risk
for credential exposure in logs and bug ticket comments (b/537293980).

This commit modifies GetDomainCommand to redact sensitive authcodes by
default using an in-memory entity builder snapshot while preserving database
records. An optional --show_authcode flag with arity 1 is introduced to
explicitly display authcodes when required for transfer authorization.

BUG= http://b/537293980
@CydeWeys
CydeWeys force-pushed the censor-authcode-default branch from d7a4369 to 9395785 Compare July 21, 2026 16:40
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