{"id":19156981,"url":"https://github.com/bertrandmartel/kibana-oauth2-proxy","last_synced_at":"2025-05-07T07:46:54.310Z","repository":{"id":94808497,"uuid":"115843367","full_name":"bertrandmartel/kibana-oauth2-proxy","owner":"bertrandmartel","description":"oauth2 proxy docker config for Kibana 6.1.1 with searchguard or xpack","archived":false,"fork":false,"pushed_at":"2018-01-01T18:13:52.000Z","size":7,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:17:41.552Z","etag":null,"topics":["docker","kibana","oauth2","searchguard","x-pack"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertrandmartel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-12-31T04:48:24.000Z","updated_at":"2023-11-15T22:10:05.000Z","dependencies_parsed_at":"2023-03-13T16:56:49.358Z","dependency_job_id":null,"html_url":"https://github.com/bertrandmartel/kibana-oauth2-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fkibana-oauth2-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fkibana-oauth2-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fkibana-oauth2-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fkibana-oauth2-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertrandmartel","download_url":"https://codeload.github.com/bertrandmartel/kibana-oauth2-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252838809,"owners_count":21812082,"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":["docker","kibana","oauth2","searchguard","x-pack"],"created_at":"2024-11-09T08:36:48.859Z","updated_at":"2025-05-07T07:46:54.301Z","avatar_url":"https://github.com/bertrandmartel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kibana Oauth2.0 proxy config\n\nDocker configuration for using [oauth2_proxy](https://github.com/bitly/oauth2_proxy) as Oauth2.0 proxy for Kibana 6.1.1 using either : \n\n* [Search Guard](http://docs.search-guard.com/latest/main-concepts)\n* [X-Pack](https://www.elastic.co/products/x-pack)\n\n![oauth2](https://user-images.githubusercontent.com/5183022/34469919-b20b629e-ef27-11e7-84a7-3ec9ea5e765e.png)\n\n\nEdit `searchguard/docker-compose.yml` or `xpack/docker-compose.yml` with correct oauth config (container `oauth2-proxy`) : \n\n```yaml\n- GITHUB_ORG=\u003cYour Org\u003e\n- GITHUB_TEAM=\u003cYour Team\u003e\n- CLIENT_ID=\u003cYour Github Client ID\u003e\n- CLIENT_SECRET=\u003cYour Github Client Secret\u003e\n```\n\nThe sample configuration here uses Github authentication for a single Team inside an organization, You can use any supported Oauth provider available [here](https://github.com/bitly/oauth2_proxy#oauth-provider-configuration). You will need to update `oauth-proxy/start.sh` with the correct variables if they are not already there\n\n## SearchGuard\n\n```bash\ncd searchguard\ndocker-compose up\n```\n\nThen go to http://locahost:4180\n\n## X-Pack\n\nComplete tutorial for xpack can be found [here](https://www.elastic.co/blog/user-impersonation-with-x-pack-integrating-third-party-auth-with-kibana)\n\n```bash\ncd xpack\ndocker-compose up\n```\n\nThen go to http://locahost:4180\n\n## Note for searchguard\n\nThe `searchguard/docker-compose.yml` uses two custom images with built-in proxy configuration :\n\n* [`bertrandmartel/docker-elasticsearch`](https://github.com/bertrandmartel/docker-elasticsearch) forked from [`khezen/docker-elasticsearch`](https://github.com/khezen/docker-elasticsearch)\n* [`bertrandmartel/docker-kibana`](https://github.com/bertrandmartel/docker-kibana) forked from [`khezen/docker-kibana`](https://github.com/khezen/docker-kibana)\n\nFor already existing configuration, check [Using Kibana with proxy authentication](http://docs.search-guard.com/latest/kibana-authentication-search-guard#using-kibana-with-proxy-authentication)\n\n## Using a base path\n\nOnly when using Search Guard config, if you want to use a base path, for instance \"/kibana\" : \n\n```yaml\nnginx-proxy:\n  environment:\n    - BASE_PATH=/kibana/\n```\nand \n\n```yaml\nkibana:\n  environment:\n    SERVER_BASE_PATH: \"/kibana\"\n```\nand\n\n```yaml\noauth2-proxy:\n  environment:\n    - UPSTREAM=http://nginx-proxy:8080/kibana/\n```\n\nAfter composing up, go to http://localhost:4180/kibana\n\nYou can find a sample config [here](https://github.com/bertrandmartel/kibana-oauth2-proxy/blob/base-path/searchguard/docker-compose.yml)\n\n## License\n\n    The MIT License (MIT) Copyright (c) 2017-2018 Bertrand Martel","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandmartel%2Fkibana-oauth2-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertrandmartel%2Fkibana-oauth2-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandmartel%2Fkibana-oauth2-proxy/lists"}