Skip to content
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

Allow HTTP Basic access authentication in monitor #316

Open
logoff opened this issue Jan 18, 2025 · 1 comment
Open

Allow HTTP Basic access authentication in monitor #316

logoff opened this issue Jan 18, 2025 · 1 comment
Labels
feature request roadmap Will likely be implemented in the future
Milestone

Comments

@logoff
Copy link

logoff commented Jan 18, 2025

Current configuration of Monitor sites do not allow HTTP Basic access authentication. It will be very useful allowing it, so some secured sites can be monitored too.

ejsadiarin added a commit to ejsadiarin/glance that referenced this issue Feb 19, 2025
this closes [issue glanceapp#316](glanceapp#316)

Furthermore, this could be expanded to also pass the configured basic
auth credentials to the request when the user clicks on the specific
monitor widget
@ejsadiarin
Copy link

Hey, I added a pull request in dev branch for this feature. So it can be used like this:

- title: Traefik
  url: https://traefik.example.com
  icon: di:traefik
  basic-auth:
    username: your-username
    password: your-password

As of now on v0.7.2, a workaround is to use alt-status-codes (array) and add 401 (Unauthorized) and/or 403 (Forbidden) like so:

- title: Traefik
  url: https://traefik.example.com
  icon: di:traefik
  alt-status-codes:
    - 401
    - 403

@svilenmarkov svilenmarkov added roadmap Will likely be implemented in the future feature request labels Feb 22, 2025
@svilenmarkov svilenmarkov added this to the v0.8.0 milestone Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request roadmap Will likely be implemented in the future
Projects
None yet
Development

No branches or pull requests

3 participants