-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add plugin attach-consmer-label #11604
Conversation
}' | ||
``` | ||
|
||
❶ Label the `department` information for the consumer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the Markdown style, which is easy to render by different Markdown tools
1. xxxx
2. xxxx
3. xxxx
}' | ||
``` | ||
|
||
❶ Consumer 的 `department` 标签信息。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
}' | ||
``` | ||
|
||
❶ 将 Consumer 标签 `department` 的值附加到请求头的 `X-Consumer-Department` 字段。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Description
Implement plugin
attach-consumer-label
.The
attach-consumer-label
plugin attaches custom consumer-related labels, in addition toX-Consumer-Username
andX-Credential-Indentifier
, to authenticated requests, for upstream services to differentiate between consumers and implement additional logics.Fixes # (issue)
Checklist