MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / authHeaderSecrets

Function authHeaderSecrets

internal/e2e/e2e_test.go:55–60  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

53// auth headers. The relay signs with the deployment HMAC secret
54// (cfg.Signing.HMACSecret, TestHMACSecret in tests) — the sole signer.
55func 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

Callers 2

TestInboundDeliveredFunction · 0.85
TestReplayProtectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected