canister-auth-headers.mjs
10 lines 388 B
Raw
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor ⚠ breaking 1 day ago
1 /**
2 * ICP canister HTTP expects X-Gateway-Auth when the canister has a non-empty
3 * gateway_auth_secret (see hub/icp `gatewayAuthorized`). The gateway proxy
4 * always merges this; direct fetch helpers must do the same.
5 */
6 export function canisterAuthHeaders() {
7 const secret = process.env.CANISTER_AUTH_SECRET || '';
8 if (!secret) return {};
9 return { 'x-gateway-auth': secret };
10 }
File History 2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor 1 day ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6 docs: accept Calendar Events v0 spec with Phase 0 security … Human 1 day ago