Skip to content

claude: document hash-based redaction in redactability guide#166243

Open
visheshbardia wants to merge 1 commit intocockroachdb:masterfrom
visheshbardia:update-claude-rule-redaction
Open

claude: document hash-based redaction in redactability guide#166243
visheshbardia wants to merge 1 commit intocockroachdb:masterfrom
visheshbardia:update-claude-rule-redaction

Conversation

@visheshbardia
Copy link
Contributor

@visheshbardia visheshbardia commented Mar 20, 2026

Update the redactability Claude rule to cover the recently enabled hash-based redaction support from cockroachdb/redact. Documents all Hash* wrapper types (HashString, HashInt, HashUint, etc.), the HashValue marker interface for custom types, configuration via the log config, and testing guidance.

Epic: CC-35037
Release note: None

@visheshbardia visheshbardia requested review from a team and arjunmahishi and removed request for a team March 20, 2026 03:50
@trunk-io
Copy link
Contributor

trunk-io bot commented Mar 20, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

}

t.Run("hashing enabled", func(t *testing.T) {
redact.EnableHashing(nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: In the documentation above on line 67, we mentioned to always provide a salt but here we enabled hashing with nil. Can we update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Comment on lines +50 to +51
| `int` | `redact.HashInt` |
| `uint` | `redact.HashUint` |
Copy link
Contributor

Choose a reason for hiding this comment

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

In the redact PR: https://github.com/cockroachdb/redact/pull/33/files
HashInt is mapped as int64 and HashUint is mapped as uint64. Can we update here the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, updated.
Thanks!

@visheshbardia visheshbardia force-pushed the update-claude-rule-redaction branch from 075721e to b6ba26a Compare March 20, 2026 06:13
Update the redactability Claude rule to cover the recently enabled
hash-based redaction support from cockroachdb/redact. Documents all
Hash* wrapper types (HashString, HashInt, HashUint, etc.), the
HashValue marker interface for custom types, configuration via the
log config, and testing guidance.

Release note: None
@visheshbardia visheshbardia reopened this Mar 20, 2026
Copy link
Contributor

@Abhinav1299 Abhinav1299 left a comment

Choose a reason for hiding this comment

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

LGTM

@cockroach-teamcity cockroach-teamcity added the X-perf-gain Microbenchmarks CI: Added if a performance gain is detected label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

X-perf-gain Microbenchmarks CI: Added if a performance gain is detected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants