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
| Type | Used for | Required fields | Optional fields |
|---|---|---|---|
| Basic | HTTP/REST APIs that use a username and password | Username, password | None |
| OAuth2 | APIs that issue tokens from a token endpoint | Token URL, client ID, client secret | Grant type, scope, client credentials in |
| JWT | APIs that accept a signed JSON Web Token | Issuer, audience, scope, duration, private key | None |
| DBConnection | Relational database extractions | Host, database, username, password | Port |
| AWS | Amazon S3 and other AWS requests | Access key, secret key | Session token, assume-role |
| Azure | Azure Blob Storage and other Azure requests | Account, plus one of: access key, SAS token, bearer token | None |
| GCP | Google Cloud Storage and other GCP requests | GCP credentials | None |
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 in | What 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
| Field | Required | Notes |
|---|---|---|
| Access key | Yes | References a stored secret |
| Secret key | Yes | References a stored secret |
| Session token | No | References 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.
| Option | Applies to | Purpose |
|---|---|---|
| Region | AWS requests | The AWS region that the request targets |
| Service | AWS requests | The 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.
| Rule | Detail |
|---|---|
| Staged secrets | A 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-only | Only 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. |
| Rotation | You can rotate the value behind a key without renaming the key. Requests that reference the key use the new value on their next run. |
| Deletion | You cannot delete a secret that a runnable workflow, job, template, or schedule still references. |
| Command line | Login and credential entry never accept a secret on a command line. A person enters the value. |
| Plaintext values | An 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.
Related pages
- Credentials and secrets: how secrets are stored and used.