{"id":21008862,"url":"https://github.com/telkomindonesia/bytebase-unauth","last_synced_at":"2025-10-20T07:28:10.507Z","repository":{"id":168935539,"uuid":"644759274","full_name":"TelkomIndonesia/bytebase-unauth","owner":"TelkomIndonesia","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-17T08:13:39.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T11:08:56.945Z","etag":null,"topics":["bytebase","oauth2","oidc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TelkomIndonesia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-24T07:43:34.000Z","updated_at":"2023-07-29T22:21:09.000Z","dependencies_parsed_at":"2024-06-21T06:59:58.998Z","dependency_job_id":"3375cadc-ad87-4685-bab1-ea0e393169f8","html_url":"https://github.com/TelkomIndonesia/bytebase-unauth","commit_stats":null,"previous_names":["telkomindonesia/bytebase-forwardauth","telkomindonesia/bytebase-unauth"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TelkomIndonesia%2Fbytebase-unauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TelkomIndonesia%2Fbytebase-unauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TelkomIndonesia%2Fbytebase-unauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TelkomIndonesia%2Fbytebase-unauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TelkomIndonesia","download_url":"https://codeload.github.com/TelkomIndonesia/bytebase-unauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243430308,"owners_count":20289702,"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":["bytebase","oauth2","oidc"],"created_at":"2024-11-19T09:14:07.127Z","updated_at":"2025-10-20T07:28:10.393Z","avatar_url":"https://github.com/TelkomIndonesia.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bytebase UnAuth\n\nA simple service to create [bytebase](https://www.bytebase.com/) login session (HTTP cookies) based on supplied HTTP headers. It was created to enable delegation of authentication to external service. See [docker-compose.yml](./docker-compose.yml) for reference on using [caddy security plugin](https://authp.github.io/) to delegate authentication to external OAuth2 provider.\n\n## HTTP Headers\n\n- `X-User-Email`: the email of user. Should be unique.\n- `X-User-Name`: the username of user. Should be unique.\n- `X-User-Role`: the role assigned to the user. If multiple (comma separated) values are given, than it will use only the first one. If `BYTEBASE_UNAUTH_GROUP_PREFIX` environment variable is specified, then only prefixed value are choosen and the actual role name are extracted by removing the prefix, e.g. when prefix is `bytebase/`, then `bytebase/owner` become `owner`.\n\n## Environment Variables\n\n- `BYTEBASE_UNAUTH_PG_URL`: the url to external postgres database. This should be the same as [`PG_URL`](https://www.bytebase.com/docs/get-started/install/external-postgres/#:~:text=pg%20or%20pass-,PG_URL,-environment%20variable%20to) used by bytebase.\n- `BYTEBASE_UNAUTH_LISTEN_ADDRESS`: the listen address, default `:8080`.\n- `BYTEBASE_UNAUTH_CREATOR_ID`:  the existing user ID used for creating new user, default `101`.\n- `BYTEBASE_UNAUTH_GROUP_PREFIX`: as noted above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomindonesia%2Fbytebase-unauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelkomindonesia%2Fbytebase-unauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelkomindonesia%2Fbytebase-unauth/lists"}