authHeaderSecrets returns the secret the relay uses to sign inbound auth headers. The relay signs with the deployment HMAC secret (cfg.Signing.HMACSecret, TestHMACSecret in tests) — the sole signer.
(t *testing.T, ts *testutil.E2ATestServer, userID string)
| 53 | // auth headers. The relay signs with the deployment HMAC secret |
| 54 | // (cfg.Signing.HMACSecret, TestHMACSecret in tests) — the sole signer. |
| 55 | func authHeaderSecrets(t *testing.T, ts *testutil.E2ATestServer, userID string) []string { |
| 56 | t.Helper() |
| 57 | _ = ts |
| 58 | _ = userID |
| 59 | return []string{testutil.TestHMACSecret} |
| 60 | } |
| 61 | |
| 62 | // receivedAuthHeaders pulls the auth_headers map out of an email.received |
| 63 | // subscriber envelope's data block (the relay carries the signed |
no outgoing calls
no test coverage detected