# Exposed path recommendations (reverse proxy)

**URL:** <https://forum.keycloak.org/t/exposed-path-recommendations-reverse-proxy/18886>\
**Category:** Securing applications\
**Tags:** admin-console\
**Created:** [December 9, 2022, 1:32am UTC](https://forum.keycloak.org/t/exposed-path-recommendations-reverse-proxy/18886 "2022-12-09T01:32:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruceesmith](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bruceesmith](https://forum.keycloak.org/u/bruceesmith)\
**Post date:** [December 9, 2022, 1:32am UTC](https://forum.keycloak.org/t/exposed-path-recommendations-reverse-proxy/18886/1 "2022-12-09T01:32:35Z")

</div>

# Exposed path recommendations

In the [Reverse Proxy documentation](https://www.keycloak.org/server/reverseproxy) the recommendation is to not expose the `/admin/` path in the proxy. When logging in to the Security Admin Console, however, the browser requests these pages

- `/admin/master/console/config`
- `/admin/master/console/whoami`
- `/admin/master/console/messages.json?lang=en`
- `/admin/realms?briefRepresentation=true`
- `/admin/realms/master`
- `/admin/realms/master/localization/en`
- `/admin/realms/myrealm`
- `/admin/realms/myrealm/localization/en`
- `/admin/serverinfo`

I have a custom realm _myrealm_, referenced in the above list.

If the proxy does not expose `/admin/` or any of those listed paths, how can the login succeed?

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [December 9, 2022, 7:46am UTC](https://forum.keycloak.org/t/exposed-path-recommendations-reverse-proxy/18886/2 "2022-12-09T07:46:46Z")

</div>

It’s recommended to not expose the `admin` path to the public (inter)network. If the proxy is your only way to access Keycloak admin ui, you should configure it to be accessible from a trusted/internal network, but not for public access.

---

<div class="post-metadata">

**Author:** ![bruceesmith](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bruceesmith](https://forum.keycloak.org/u/bruceesmith)\
**Post date:** [December 20, 2022, 9:40pm UTC](https://forum.keycloak.org/t/exposed-path-recommendations-reverse-proxy/18886/3 "2022-12-20T21:40:34Z")

</div>

Thanks, good advice in general. In my case the entire solution is on an extremely well protected intranet with absolutely no inbound access from the Internet, or even from other subnets in the intranet. The only access to the Keycloak admin UI is from inside this subnet. My question around the documentation remains valid, I believe, since the many redirects and XHR requests during login reference /admin/ endpoints - if these are not visible to the browser, how can login possibly succeed?
