Skip to content

Commit

Permalink
cli: add hex payload/progress to system_jobs
Browse files Browse the repository at this point in the history
Release note: none.
Epic: none.
  • Loading branch information
dt committed Apr 25, 2023
1 parent cfa9ede commit c6487e2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkg/cli/zip_table_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,18 +378,25 @@ var zipInternalTablesPerCluster = DebugZipTableRegistry{
"crdb_internal.system_jobs": {
// `payload` column may contain customer info, such as URI params
// containing access keys, encryption salts, etc.
nonSensitiveCols: NonSensitiveColumns{
customQueryUnredacted: `SELECT *,
to_hex(payload) AS hex_payload,
to_hex(progress) AS hex_progress
FROM crdb_internal.system_jobs`,
customQueryRedacted: `SELECT
"id",
"status",
"created",
'redacted' AS "payload",
"progress",
"created_by_type",
"created_by_id",
"claim_session_id",
"claim_instance_id",
"num_runs",
"last_run",
},
"last_run",
'<redacted>' AS "hex_payload",
to_hex(progress) AS "hex_progress"
FROM crdb_internal.system_jobs`,
},
"crdb_internal.kv_node_liveness": {
nonSensitiveCols: NonSensitiveColumns{
Expand Down

0 comments on commit c6487e2

Please sign in to comment.