@fabrika/auth-core 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/wire.ts +6 -0
package/package.json
CHANGED
package/src/wire.ts
CHANGED
|
@@ -63,6 +63,12 @@ export function proxySecretVariable(id: string): string {
|
|
|
63
63
|
return `${FABRIKA_PROXY_SECRET}_${sha256Hex(id).slice(0, 32).toUpperCase()}`
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* The variable holding the secret the platform proxy sends IAM's installation entry in `PROXY_SECRET_HEADER`. The proxy
|
|
68
|
+
* and IAM hold it under this one name. It proves only who wrote IAM's client-address and request-id headers.
|
|
69
|
+
*/
|
|
70
|
+
export const IAM_PROXY_SECRET_VARIABLE = 'FABRIKA_INSTALLATION_PROXY_SECRET_IAM'
|
|
71
|
+
|
|
66
72
|
/**
|
|
67
73
|
* Every `X-Fabrika-*` name a proxy hop carries to an application. Caddy's first step and the Cloudflare proxy Worker
|
|
68
74
|
* delete each of them from the client's request before anything else, then set only what the decision asserts. A new
|