help request: For security reasons, I need to add basic auth authentication to the prometheus plugin #7599
Answered
by
tzssangglass
zhaoyang1221
asked this question in
Q&A
-
DescriptionFor security reasons, I need to add basic auth authentication to the prometheus plugin. Is there any module in apisix or openresty can do that? Environment
|
Beta Was this translation helpful? Give feedback.
Answered by
tzssangglass
Aug 2, 2022
Replies: 1 comment 1 reply
-
we can use and we can add |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zhaoyang1221
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we can use
public-api
plugin to protect the API that is exposed byprometheus
plugin, ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/prometheus.md#specifying-metricsand we can add
basic-auth
plugin when config thepublic-api
plugin. ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/public-api.md#basic-usage