You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qstash/howto/redact-fields.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ QStash messages can contain private data that you don't want visible in the Upst
7
7
8
8
QStash allows you to redact specific fields so they appear as `REDACTED:<SHA256>` in the dashboard and API. The original values are still used when delivering messages to your endpoint. The SHA256 hash lets you verify the two data without revealing the original data.
9
9
10
-
To redact a field, pass the `redactFields` option when publishing a message.
10
+
To redact a field, pass the `redact` option when publishing a message.
header: ["Authorization"] // or `header: true` to redact all headers
35
35
},
@@ -45,7 +45,7 @@ client.message.publish_json(
45
45
body={
46
46
"hello": "world",
47
47
},
48
-
redact_fields={
48
+
redact={
49
49
"body": True,
50
50
"header": ["Authorization"] //or`header: True` to redact all headers
51
51
},
@@ -73,7 +73,7 @@ However, when you retry a DLQ message, QStash delivers the original values to yo
73
73
74
74
## Schedules
75
75
76
-
You can also redact fields in schedules. Pass the `redactFields` option when creating a schedule, and all messages produced by that schedule will have the specified fields redacted.
76
+
You can also redact fields in schedules. Pass the `redact` option when creating a schedule, and all messages produced by that schedule will have the specified fields redacted.
77
77
Schedule get and list endpoints also apply redaction, so private data won't appear in API responses or the dashboard.
78
78
79
79
<CodeGroup>
@@ -86,7 +86,7 @@ const res = await client.schedule.create({
Copy file name to clipboardExpand all lines: workflow/howto/redact-fields.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Workflow runs can contain private data that you don't want visible in the Upstas
7
7
8
8
Upstash Workflow allows you to redact specific fields so they appear as `REDACTED:<SHA256>` in the dashboard and API. The original values are still used when delivering requests to your workflow endpoint. The SHA256 hash lets you verify the data without revealing the original values.
9
9
10
-
To redact fields, pass the `redactFields` option when triggering a workflow run.
10
+
To redact fields, pass the `redact` option when triggering a workflow run.
0 commit comments