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

Add API Authentication #326

Draft
wants to merge 4 commits into
base: development
Choose a base branch
from
Draft

Add API Authentication #326

wants to merge 4 commits into from

Conversation

p-galligan
Copy link
Member

Attempt at adding configurable API key authentication for client connections.

Does not update tests.

Attempt at adding configurable API key authentication for client connections.

Does not update tests.
ELASTICSEARCH_HOSTS = ["elasticsearch:9200"] # hostnames (including ports, if applicable) at which Elasticsearch is available (list of strings)
ELASTICSEARCH_INDEX = "default" # name of Elasticsearch index to target (string)
ELASTICSEARCH_CONNECTION = "default" # name of Elasticsearch connection to use (string)
ELASTICSEARCH_API_KEY = "FvWxPqRwTUI1Zlc2c09iRW1oJ632ajZqeWMtV2hSZFd1RHRzQUxQVXZqQQnn" # Encoded API Key provided by Elasticsearch
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a real API key

@p-galligan p-galligan marked this pull request as draft December 11, 2024 15:08
@p-galligan p-galligan requested a review from helrond December 11, 2024 15:08
@helrond
Copy link
Member

helrond commented Dec 11, 2024

This looks conceptually right to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants