跳到主内容
@wquguru
精选75Cloudflare One(Changelog)云与平台

Cloudflare Gateway 新增 HTTP 策略高级请求头控制

Gateway - New header control options for Gateway HTTP policies

原文
发到 X

Cloudflare Gateway now supports advanced header control on Allow policies. Administrators can add, overwrite, or delete headers on matching requests using static values or dynamic variables.

Header operations

Gateway HTTP policies using the Allow action support three operations in rule_settings:

OperationAPI fieldBehavior
Addadd_headersAppends a value to the header. Existing values are preserved.
Overwriteset_headersReplaces the header value. Creates the header if it does not exist.
Deletedelete_headersRemoves the header from the request.

Gateway applies operations in order: delete, then overwrite, then add.

Dynamic variables

Header values can include dynamic variables using the @{...} syntax. Gateway resolves variables at request time from identity, device, and network context.

VariableDescription
@{identity.email}User email from the identity provider
@{identity.name}User display name from the identity provider
@{identity.id}Cloudflare identity UUID
@{identity.groups}Identity provider group memberships
@{identity.SAML}SAML attributes (if configured)
@{identity.OIDC}OIDC claims (if configured)
@{source.ip}Source IP of the connection
@{destination.ip}Destination IP of the request
@{device.id}Cloudflare One Client device UUID
@{device.posture}Device posture check results (JSON string)

You can mix static text and dynamic variables in a single header value. For example, user-@{identity.email} resolves to [email protected].

For more information, refer to Custom headers.

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近