Rotate signed header keys for Inline Protection and DLP
Sublime supports two active signing keys per organization, shared by Inline Protection and Data Loss Prevention (DLP). Generate a replacement, test it, and update your mail flow rules before deleting the old key.
Each message source has its own signed header value. Update every affected source and rule during rotation. Treat these values as secrets.
Before you begin
Inline Protection or DLP must already be working. You need access to your provider's mail flow rules and a Sublime role with the write_inline_message_meta permission. See Role-Based Access Control.
Choose a non-critical internal mailbox and an external mailbox you control for testing.
Generate a replacement key
- Go to Admin > Message Sources and select a Microsoft 365 or Google Workspace source.
- Under Inline Processing Signed Header, click Generate New Signed Header (the rotation icon), then Copy. This control also generates keys for DLP.
- For each additional message source, copy its value for the replacement key. Generate the key only once per organization.
The old key stays active. If two keys already exist, finish the previous rotation before generating another.
Configure test rules
Create a separate test rule for each flow you use. Preserve the existing header name, routing destination, conditions, and loop-prevention settings. Replace only the authentication value and test scope.
Microsoft 365
- In the Exchange admin center, open Mail flow > Rules and copy the existing Sublime rule.
- Restrict the copy to the test recipient for Inline Protection or test sender for DLP. Add the corresponding exception to the original rule.
- Replace the authentication header value with the new value for that message source. Set the copy to Enforce and enable it.
Allow 30 minutes or more for Microsoft's rule changes to apply. Test modes do not perform the required delivery actions.
Google Workspace
- In Gmail Compliance settings, add a Content compliance setting matching your existing Sublime rule. Under Add custom headers, replace its authentication value with the new value for that source.
- Click Show options. Under Envelope filter, select Only affect specific envelope recipients for Inline Protection or Only affect specific envelope senders for DLP. Choose Single email address and enter the test mailbox.
- Exclude the test traffic from the original rule, then save. Wait for the changes to apply.
Test each mail flow
Send a harmless message with a distinctive subject through each flow you use:
| Flow | Send from → to |
|---|---|
| Inline Protection, inbound | External mailbox → internal test mailbox |
| Inline Protection, internal | Another internal mailbox → internal test mailbox |
| DLP, outbound | Internal test mailbox → external mailbox |
| DLP, internal | Internal test mailbox → another internal mailbox |
For each test:
- Confirm that only the test rule supplies the authentication value.
- Confirm delivery and inspect the received message's full headers for a
Receivedentry containingSublime SMTP Server. - Check for
X-Sublime-Processed-IDfor Inline Protection orX-Sublime-Outbound-Processed-IDfor DLP. Its value must contain mailbox and message identifiers, withoutunprocessed.
Sublime removes the authentication value before delivery. Check it in the provider's rule configuration. If a test fails, restore the mailbox's original routing and resolve the issue before continuing.
Update your rules and delete the old key
- Update every original Inline Protection and DLP rule with the replacement value for its message source.
- After changes apply, restore the original rules' test-mailbox scope and disable the test rules. Repeat the tests above, then delete the test rules.
- Confirm every affected source and flow uses the replacement. In Admin > Message Sources, open a source, identify the old key by its creation date, and click Delete Signed Header, then Delete.
Deleting a key affects all message sources in the organization. If the key cache fails to refresh, Sublime continues accepting the deleted key for up to five minutes.
Related
Updated 3 days ago