Skip to content

add kcb_identity field on RequestCommon + thrift header write#674

Open
ghuryejay wants to merge 1 commit into
facebookresearch:v2-betafrom
ghuryejay:export-D104245265-to-v2-beta
Open

add kcb_identity field on RequestCommon + thrift header write#674
ghuryejay wants to merge 1 commit into
facebookresearch:v2-betafrom
ghuryejay:export-D104245265-to-v2-beta

Conversation

@ghuryejay

@ghuryejay ghuryejay commented Jun 1, 2026

Copy link
Copy Markdown

Summary:
X-link: facebook/mcrouter#480

Adds the kcbIdentity field to carbon::RequestCommon (mirrors the existing clientIdentifier and cryptoAuthToken fields), and updates the carbon compiler template to emit a setWriteHeader(kKcbIdentityHeader, ...) block in every generated *ThriftTransport.h. This is the wire-format support for Generalized KCB: callers set request.setKcbIdentity(aclName) and the transport writes the kcb_identity thrift header on the outgoing thrift call so the UCache server can bind the cache key to the named ACL group

Reviewed By: antonf

Differential Revision: D104245265

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 1, 2026
Summary:
X-link: facebook/mcrouter#480

Adds the `kcbIdentity` field to `carbon::RequestCommon` (mirrors the existing `clientIdentifier` and `cryptoAuthToken` fields), and updates the carbon compiler template to emit a `setWriteHeader(kKcbIdentityHeader, ...)` block in every generated `*ThriftTransport.h`. This is the wire-format support for Generalized KCB: callers set `request.setKcbIdentity(aclName)` and the transport writes the `kcb_identity` thrift header on the outgoing thrift call so the UCache server can bind the cache key to the named ACL group

Reviewed By: antonf

Differential Revision: D104245265
@ghuryejay ghuryejay force-pushed the export-D104245265-to-v2-beta branch from cc45354 to 8f22e87 Compare June 1, 2026 17:24
meta-codesync Bot pushed a commit to facebook/mcrouter that referenced this pull request Jun 1, 2026
Summary:
X-link: facebookresearch/DCPerf#674

Pull Request resolved: #480

Adds the `kcbIdentity` field to `carbon::RequestCommon` (mirrors the existing `clientIdentifier` and `cryptoAuthToken` fields), and updates the carbon compiler template to emit a `setWriteHeader(kKcbIdentityHeader, ...)` block in every generated `*ThriftTransport.h`. This is the wire-format support for Generalized KCB: callers set `request.setKcbIdentity(aclName)` and the transport writes the `kcb_identity` thrift header on the outgoing thrift call so the UCache server can bind the cache key to the named ACL group

Reviewed By: antonf

Differential Revision: D104245265

fbshipit-source-id: 07c975c74a1dd8f5feb0bfac064b7301204a491a
meta-codesync Bot pushed a commit that referenced this pull request Jun 1, 2026
Summary:
Pull Request resolved: #674

X-link: facebook/mcrouter#480

Adds the `kcbIdentity` field to `carbon::RequestCommon` (mirrors the existing `clientIdentifier` and `cryptoAuthToken` fields), and updates the carbon compiler template to emit a `setWriteHeader(kKcbIdentityHeader, ...)` block in every generated `*ThriftTransport.h`. This is the wire-format support for Generalized KCB: callers set `request.setKcbIdentity(aclName)` and the transport writes the `kcb_identity` thrift header on the outgoing thrift call so the UCache server can bind the cache key to the named ACL group

Reviewed By: antonf

Differential Revision: D104245265

fbshipit-source-id: 07c975c74a1dd8f5feb0bfac064b7301204a491a
meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Jun 3, 2026
Summary:
X-link: facebookresearch/DCPerf#674

X-link: facebook/mcrouter#480

Adds the `kcbIdentity` field to `carbon::RequestCommon` (mirrors the existing `clientIdentifier` and `cryptoAuthToken` fields), and updates the carbon compiler template to emit a `setWriteHeader(kKcbIdentityHeader, ...)` block in every generated `*ThriftTransport.h`. This is the wire-format support for Generalized KCB: callers set `request.setKcbIdentity(aclName)` and the transport writes the `kcb_identity` thrift header on the outgoing thrift call so the UCache server can bind the cache key to the named ACL group

Reviewed By: antonf

Differential Revision: D104245265

fbshipit-source-id: 07c975c74a1dd8f5feb0bfac064b7301204a491a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant