# Authentication for Alloy Proxy Setup

**URL:** <https://community.grafana.com/t/authentication-for-alloy-proxy-setup/156526>\
**Category:** Authentication\
**Tags:** alloy\
**Created:** [August 20, 2025, 2:05pm UTC](https://community.grafana.com/t/authentication-for-alloy-proxy-setup/156526 "2025-08-20T14:05:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amalstan](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/amalstan/32/56185_2.png) [@amalstan](https://community.grafana.com/u/amalstan)\
**Post date:** [August 20, 2025, 2:05pm UTC](https://community.grafana.com/t/authentication-for-alloy-proxy-setup/156526/1 "2025-08-20T14:05:57Z")

</div>

- What Grafana version and what operating system are you using? alloy, version v1.9.2 using Rocky 9.5

- **What** are you trying to achieve? Setting up authentication ( any kind ) between Alloy agent and Alloy proxy

- **How** are you trying to achieve it? using prometheus.receive\_http

- What happened? i cant seem to setup any kind of authentication between then so only authenticated servers can send data

- What did you **expect** to happen? tried http {} block but its not working

- Can you copy/paste the configuration(s) that you are having problems with? Yes here it is: http {  
auth {  
basic {  
username = “admin”  
password = “/etc/alloy/secrets/mimir-password”  
}  
filter {  
paths = [“/metrics”, “/v1”]  
authenticate\_matching\_paths = true  
}  
}  
}

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were. When i tried auth inside receiver\_http it doesnt exist

- Did you follow any online instructions? If so, what is the URL? Did not find any accurate ones

---

<div class="post-metadata">

**Author:** ![tonyswumac](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tonyswumac/32/22401_2.png) [@tonyswumac](https://community.grafana.com/u/tonyswumac)\
**Post date:** [August 22, 2025, 11:47pm UTC](https://community.grafana.com/t/authentication-for-alloy-proxy-setup/156526/2 "2025-08-22T23:47:50Z")

</div>

Looking at the HTTP block I don’t see a way to configure simple auth.

Not sure how you segment your network, but I don’t think this is a common use case. If you really want authentication on an Alloy proxy, putting alloy behind nginx with simple auth might be your easiest workaround.
