Skip to main content

Module attach_consumer_label

Module attach_consumer_label 

Source
Expand description

Consumer-label header injection plugin (attach-consumer-label).

Copies the attached consumer’s labels into upstream request headers so backends can see who is calling without re-reading credentials. It does not authenticate — an upstream auth node (e.g. key-auth) must have attached the consumer identity first, writing consumer.labels into context.message. Each label k=v becomes a request header <header_prefix><k>: v. With no consumer attached it is a pure passthrough. It never rejects.

Structs§

AttachConsumerLabelPlugin
Injects the consumer’s labels as upstream request headers.