Skip to main content

Authentication methods

An authenticator is a named, reusable credential. You create it once, then attach it by name to a request of an Extract job. This page lists the authenticator types and the fields each one needs.

Every field below that holds a key, password, secret, or token is a reference to a stored secret. You never enter the value into the request configuration.

To attach an authenticator to an Extract job, see Connections and authentication. For the secret catalog, see Secrets.

Authenticator types​

TypeUsed forRequired fieldsOptional fields
BasicHTTP/REST APIs that use a username and passwordUsername, passwordNone
OAuth2APIs that issue tokens from a token endpointToken URL, client ID, client secretGrant type, scope, client credentials in
JWTAPIs that accept a signed JSON Web TokenIssuer, audience, scope, duration, private keyNone
DBConnectionRelational database extractionsHost, database, username, passwordPort
AWSAmazon S3 and other AWS requestsAccess key, secret keySession token, assume-role
AzureAzure Blob Storage and other Azure requestsAccount, plus one of: access key, SAS token, bearer tokenNone
GCPGoogle Cloud Storage and other GCP requestsGCP credentialsNone

Basic​

Username and password. The password references a stored secret.

OAuth2​

For APIs that exchange client credentials for a token at a token endpoint. You provide the token URL, the client ID, and the client secret, which references a stored secret. Grant type, scope, and Client credentials in are optional.

Client credentials in sets how the client proves who it is to the token endpoint:

Client credentials inWhat Hypermeter sends on the token request
Request body (client_secret_post)The client ID and secret as form fields. This is also the behavior when you leave the option empty.
Basic header (client_secret_basic)The client ID and secret in an Authorization: Basic header, and not in the body. Use it when the token endpoint asks for HTTP Basic client authentication, as Databricks machine-to-machine OAuth does.
  • Data requests always use the bearer token that the endpoint returns.
  • Hypermeter uses only the method you choose. It does not retry the token request with the other one.
  • You can change Client credentials in and keep your existing client secret reference. You do not need another secret.

JWT​

For APIs that accept a signed JSON Web Token. You provide the issuer, audience, scope, duration, and private key. The private key references a stored secret.

DBConnection​

For a relational database, where you run a query or pull a table: PostgreSQL, MySQL, MariaDB, SQL Server, or Oracle. You provide the host, database, username, and password. The password references a stored secret.

The port is optional. Without a port, Hypermeter uses 5432 for PostgreSQL, 3306 for MySQL or MariaDB, 1433 for SQL Server, and 1521 for Oracle. An explicit port must be an integer from 1 through 65535.

For the host rules and TLS requirements, see Data sources.

Cloud credentials​

Cloud authenticators use the credential model of each provider, not a generic username and password.

AWS​

FieldRequiredNotes
Access keyYesReferences a stored secret
Secret keyYesReferences a stored secret
Session tokenNoReferences a stored secret when used

Assume-role​

An AWS authenticator can also assume a role. You provide:

  • Role ARN
  • External ID
  • Session name
  • Duration
  • STS region

Azure​

An Azure authenticator uses an account plus one credential: an access key, a SAS token, or a bearer token. The credential references a stored secret.

GCP​

A GCP authenticator uses GCP credentials, which reference a stored secret.

Per-request cloud options​

You set these options on the request, not on the authenticator. One authenticator can then serve requests for different regions or services.

OptionApplies toPurpose
RegionAWS requestsThe AWS region that the request targets
ServiceAWS requestsThe AWS service that the request targets

On the request you also set the bucket, region, path, and optional custom endpoint for Amazon S3, and the container and blob for Azure Blob Storage. See Cloud object storage.

How credentials reference secrets​

In a credential field you select an existing input or environment secret, or you enter a new value to stage a secret. For the steps, see Setting a secret field.

RuleDetail
Staged secretsA staged secret is created in the catalog only when you save the authenticator. Its key is also the name of a new SecretRef input. Cancel discards every staged secret and its input.
Values are write-onlyOnly the secret key is part of the configuration. Hypermeter fetches the value at run time and never shows it after you create or rotate it.
RotationYou can rotate the value behind a key without renaming the key. Requests that reference the key use the new value on their next run.
DeletionYou cannot delete a secret that a runnable workflow, job, template, or schedule still references.
Command lineLogin and credential entry never accept a secret on a command line. A person enters the value.
Plaintext valuesAn authenticator that still holds a plaintext value must be converted to a secret reference before you can save it again.

Because the configuration holds only references, the same template works in another environment when you point each field at another secret.