{"id":14985616,"url":"https://github.com/bgelov/prometheus-web-yml","last_synced_at":"2026-01-04T20:04:59.478Z","repository":{"id":173198613,"uuid":"650379397","full_name":"bgelov/prometheus-web-yml","owner":"bgelov","description":"Prometheus web.yml file generator for basic authentication","archived":false,"fork":false,"pushed_at":"2023-06-18T01:40:29.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T10:08:31.907Z","etag":null,"topics":["authentication","basic-auth-prometheus","basic-authentication","prometheus","prometheus-authentication","prometheus-yml","web-yml","yml"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgelov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T00:27:17.000Z","updated_at":"2024-01-30T17:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0c4b864-e03f-4625-96db-c6a5233ee4f1","html_url":"https://github.com/bgelov/prometheus-web-yml","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"6ce724487a7e11820c7ce62c602649995d81d57c"},"previous_names":["bgelov/prometheus-web-yml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgelov%2Fprometheus-web-yml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgelov%2Fprometheus-web-yml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgelov%2Fprometheus-web-yml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgelov%2Fprometheus-web-yml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgelov","download_url":"https://codeload.github.com/bgelov/prometheus-web-yml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244814716,"owners_count":20514805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","basic-auth-prometheus","basic-authentication","prometheus","prometheus-authentication","prometheus-yml","web-yml","yml"],"created_at":"2024-09-24T14:11:22.195Z","updated_at":"2026-01-04T20:04:59.448Z","avatar_url":"https://github.com/bgelov.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What kind of script is this?\nThe script generates a web.yml file with a password hash using [bcrypt](https://en.wikipedia.org/wiki/Bcrypt), which is necessary to enable basic authentication for Prometheus.\n\n## How does it work?\nThe script prompts for username and password.\nWhen you enter username and password, you need waiting 10 seconds timeout for bcrypt processing.\n- If there is a web.yml file, you will be prompted to either recreate it or add credentials to the end of the file.\n- If there is no web.yml file, a new file will be generated.\n\nAfter, you need add web.yml to Prometheus configuration:\n```\n--web.config.file=/etc/prometheus/web.yml\n```\n\nPrometheus documentations about basic auth: [https://prometheus.io/docs/guides/basic-auth/](https://prometheus.io/docs/guides/basic-auth/)\n\n## Example of a generated file\n```\nbasic_auth_users:\n  test: $2y$17$Ac2deeUOLKZSP2L81awluuTAiisMp46T4NTJ0MX3tpfPXC3MUVl8G\n```\n\n## Why is it necessary?\nRead the article by [JFrog](https://github.com/jfrog): [Don’t let Prometheus Steal your Fire](https://jfrog.com/blog/dont-let-prometheus-steal-your-fire/)\n\n\n## Add rights for executing .sh file\n```\nchmod u+x generate_web_yml.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgelov%2Fprometheus-web-yml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgelov%2Fprometheus-web-yml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgelov%2Fprometheus-web-yml/lists"}