{"id":19592852,"url":"https://github.com/cleafy/elasticsearch-http-basic-auth-plugin","last_synced_at":"2025-10-12T13:07:04.152Z","repository":{"id":46949093,"uuid":"152087260","full_name":"Cleafy/elasticsearch-http-basic-auth-plugin","owner":"Cleafy","description":"A simple and fast plugin adding HTTP basic authentication to Elasticsearch","archived":false,"fork":false,"pushed_at":"2021-09-20T20:35:59.000Z","size":29,"stargazers_count":16,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T01:01:36.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/Cleafy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-08T13:45:23.000Z","updated_at":"2024-07-25T12:41:13.000Z","dependencies_parsed_at":"2022-09-14T12:11:24.939Z","dependency_job_id":null,"html_url":"https://github.com/Cleafy/elasticsearch-http-basic-auth-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleafy%2Felasticsearch-http-basic-auth-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleafy%2Felasticsearch-http-basic-auth-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleafy%2Felasticsearch-http-basic-auth-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleafy%2Felasticsearch-http-basic-auth-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cleafy","download_url":"https://codeload.github.com/Cleafy/elasticsearch-http-basic-auth-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154825,"owners_count":21544563,"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":[],"created_at":"2024-11-11T08:37:11.937Z","updated_at":"2025-10-12T13:06:59.108Z","avatar_url":"https://github.com/Cleafy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://travis-ci.org/Cleafy/elasticsearch6-http-basic.svg?branch=master)](https://github.com/Cleafy/elasticsearch6-http-basic)\n\n\n# HTTP Basic auth for ElasticSearch\n\nThis plugin provides an extension of ElasticSearchs HTTP Transport module to enable **HTTP basic authentication** and/or\n**Ip based authentication**.\n\nRequesting `/` does not request authentication to simplify health check configuration.\n\nThere is no way to configure this on a per index basis.\n\n\n## Version Mapping\n\n|     Http Basic Plugin       | elasticsearch                |\n|-----------------------------|------------------------------|\n| v0.0.1                      |                        6.3.2 |\n| v0.1.0                      |                        7.6.0 |\n| v0.2.0                      |                       7.12.0 |\n| v0.3.0                      |                       7.13.3 |\n\n## Installation\n\nDownload the desired version from https://github.com/Cleafy/elasticsearch6-http-basic/releases and copy it to `plugins/http-basic`.\n\n## Configuration\n\nOnce the plugin is installed it can be configured in the [elasticsearch modules configuration file](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html#settings). See the [elasticserach directory layout information](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html) for more information about the default paths of an ES installation.\n\n|     Setting key                   |  Default value               | Notes                                                                   |\n|-----------------------------------|------------------------------|-------------------------------------------------------------------------|\n| `http.basic.enabled`              | true                         | **true** disables the default ES HTTP Transport module                  |\n| `http.basic.user`                 | \"admin\"                      |                                                                         |\n| `http.basic.password`             | \"admin_pw\"                   |                                   \n| `http.basic.log`                  | false                        | enables plugin logging to ES log. Unauthenticated requests are always logged.                                         |\n\n**Be aware that the password is stored in plain text.**\n\n## Http basic authentication\n\nsee [this article](https://en.wikipedia.org/wiki/Basic_access_authentication)\n\n## Configuration example\n\nThe following code enables plugin logging, sets user and password.\n\n```\nhttp.basic.enable: true\nhttp.basic.log: true\nhttp.basic.user: \"some_user\"\nhttp.basic.password: \"some_password\"\n```\n\n## Testing\n\n**note:** localhost is a whitelisted ip as default.\nConsidering a default configuration with **my_username** and **my_password** configured.\n\nCorrect credentials\n```\n$ curl -v --user my_username:my_password no_local_host:9200/foo # works (returns 200) (if credentials are set in configuration)\n```\n\nWrong credentials\n```\n$ curl -v --user my_username:wrong_password no_local_host:9200/    # health check, returns 200 with  \"{\\\"OK\\\":{}}\" although Unauthorized\n$ curl -v --user my_username:password no_local_host:9200/foo       # returns 401\n```\n\n\n## Issues\n\nPlease file your issue here: \nhttps://github.com/Cleafy/elasticsearch6-http-basic/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleafy%2Felasticsearch-http-basic-auth-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleafy%2Felasticsearch-http-basic-auth-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleafy%2Felasticsearch-http-basic-auth-plugin/lists"}