You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This section provides an overview of the available options for engine authentication. Regardless of the specific engine type, all engines share the same authentication logic and are configured in the same way. This means that the authentication options and configurations remain consistent and standardized across all engines. You can explore this section to learn about the various authentication choices and understand how to configure them. This uniform approach to authentication simplifies the setup process and ensures a seamless experience, regardless of the engine you are working with.


Default (No Authentication)

By default the authentication section of default engine, is of type NONE (e.i. disabled), and it also contains commented options for the other authentication methods

Delete what you don't need

If you don't required authentication please delete the comments

'engines': [
    {
        'name': DEFAULT_ENGINE_NAME,  # Name of the connection
        .
		.
		.
        'auth': {
            'type': Authentications.NONE,

            # With Authentications.BASIC
            # #### For Basic Auth ####
            # 'username': '',
            # 'password': ''

            # With Authentications.AWS
            # #### For AWS Auth ####
            # 'aws_region': '',
            # 'aws_service': '',
            # 'aws_access_key': '',
            # 'aws_secret_key': ''

            # With Authentications.AWS
            # #### For AWS Auth With Credentials Provider (AWS)####
            # 'credentials_provider': True,
            # 'aws_region': '',
            # 'aws_service': ''

        }
    }
],
		

Basic

Basic authentication is a straightforward method used for user authentication in web applications and APIs. It involves the client sending the username and password credentials in the request header to access a protected resource on the server. The server then verifies the credentials and grants access if they match the stored ones. 

'engines': [
    {
        'name': DEFAULT_ENGINE_NAME,  # Name of the connection
        .
		.
		.
        'auth': {
            'type': Authentications.BASIC,
            'username': 'your_username',
            'password': 'your_password'
        }
    }
],
		


In-URL Basic Authentication

If for some reason you need basic authentication but not in all the URLs or every URL has a different authentication credentials, there is an alternative, you can just put the credentials in the URL of each node like this

https://USENAME:PASSWORD@localhost:9200

This method does not requires to setup the authentication, since the basic is implicit by adding the credentials in the URL

AWS

With Credentials Provider

An AWS credential provider is a component or mechanism that supplies the necessary credentials to authenticate and authorize access to AWS services. It is responsible for retrieving the required security credentials, such as access keys or temporary session tokens, which are then used to interact with AWS APIs, SDKs, and command-line tools.


'engines': [
    {
        'name': DEFAULT_ENGINE_NAME,  # Name of the connection
        .
		.
		.
        'auth': {
            'type': Authentications.AWS,
            'credentials_provider': True,
            'aws_region': 'YOUR_REGION',
            'aws_service': 'YOUR_SERVICE'

        }
    }
],
		

With Access and Secret Key

This is the most basic form of authentication. It involves using an access key ID and a secret access key, which are long-term credentials. These credentials are generated in the AWS Identity and Access Management (IAM) service and provide programmatic access to AWS services. They are typically used for programmatic interactions with AWS through SDKs, CLI tools, and APIs.


'engines': [
    {
        'name': DEFAULT_ENGINE_NAME,  # Name of the connection
        .
		.
		.
        'auth': {
            'type': Authentications.AWS,
            'aws_region': 'YOUR_REGION',
            'aws_service': 'YOUR_SERVICE',
            'aws_access_key': 'YOUR_ACCESS_KEY',
            'aws_secret_key': 'YOUR_SECRET_KEY'

        }
    }
],
		
  • No labels