Skip to content

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
Discussion options

You must be logged in to vote

we can use public-api plugin to protect the API that is exposed by prometheus plugin, ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/prometheus.md#specifying-metrics

and we can add basic-auth plugin when config the public-api plugin. ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/public-api.md#basic-usage

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhaoyang1221
Comment options

Answer selected by zhaoyang1221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7598 on August 02, 2022 13:14.