[Feature Request] Support TEMPORAL_GRPC_META_<whatever>
environment variable
#699
Labels
enhancement
New feature or request
Describe the solution you'd like
We have described how we can accept gRPC metadata (i.e. HTTP headers) via environment variables at temporalio/proposals#95. But this doesn't need to wait on that to be implemented here like the other environment variables that are already here.
Quoting the proposal:
TEMPORAL_GRPC_META_<name>
.<name>
is canonicalized into HTTP header format (gRPC libraries do this for you).TEMPORAL_GRPC_META
as a single var that accepts some kind of structured format?value (common in HTTP values), there's not a good delimiter for other-delimited key=value, and requiring a JSON
object as the env var value is a bit hard to use.
TEMPORAL_GRPC_META_<index>
askey: value
?TEMPORAL_GRPC_META_AUTHORIZATION
asBearer my-token
is cleaner thanTEMPORAL_GRPC_META_0
asAuthorization: Bearer my-token
.TEMPORAL_GRPC_META
as a multiline set of headers?parsers may not be present/accessible in every standard library). Granted we could accept our own multiline format
or only support a simple subset of the header format.
The text was updated successfully, but these errors were encountered: