aux4.cloud secret provider for aux4/secret. It resolves secret://aux4-cloud/<item>/<field> references by talking to the aux4.cloud control-plane API over HTTPS. Secrets are fetched at execution time so credentials never appear in configuration files, and the provider never touches AWS directly.
aux4 aux4 pkger install aux4/secret-aux4-cloud
The provider reads all connection settings from environment variables — nothing is stored in config files or passed as command flags:
| Variable | Description | |----------|-------------| | AUX4_CLOUD_API_URL | Base URL of the aux4.cloud API (e.g. https://dev.api.aux4.cloud) | | AUX4_CLOUD_SCOPE | The scope whose secrets are being accessed | | CLOUD_SYNC_TOKEN | Machine API key, injected automatically when running on an aux4.cloud VM |
Authentication is resolved automatically:
CLOUD_SYNC_TOKEN is set (the case on an aux4.cloud VM), that machine API key is used.aux4 aux4 token (the laptop case).Every request is sent with an Authorization: Bearer <token> header. Requests target ${AUX4_CLOUD_API_URL}/v1/${AUX4_CLOUD_SCOPE}/secrets.
On an aux4.cloud VM everything is pre-configured. To manage a scope's secrets from your laptop:
cloud:deploy scope the API requires: aux4 aux4 login
export AUX4_CLOUD_API_URL=https://api.aux4.cloud
export AUX4_CLOUD_SCOPE=<your-scope>
Only the owner of the scope can read or write its secrets. If you are not signed in, the provider fails with a clear hint to run aux4 aux4 login.
The --ref parameter is the item name:
customer_db
When used inline by consuming packages, the full secret:// URI includes the provider prefix:
secret://aux4-cloud/<item>/<field>
For example, a variable default of secret://aux4-cloud/customer_db/password resolves to the password field of the customer_db item.
Get specific fields from a secret as a flat JSON object. This is the command the aux4 core invokes when resolving secret://aux4-cloud/... URIs.
aux4 secret aux4-cloud get --ref customer_db --fields "username,password"
{
"username": "sa",
"password": "abc123"
}
Only the requested fields are returned. aux4.cloud has no separate one-time-password concept — an otp field, if stored on the item, resolves like any other field.
Update a single field of an existing secret. The change merges into the item's existing fields.
aux4 secret aux4-cloud set --ref customer_db --field password --value newpass123
secret://aux4-cloud/customer_db updated
Create a new secret. Fields are provided as dot-notation flags — one --fields.<name> <value> per field. The --vault and --category options are accepted for compatibility with other providers but are ignored by aux4.cloud.
aux4 secret aux4-cloud create --item customer_db --fields.username sa --fields.password abc123
secret://aux4-cloud/customer_db
List all secrets in the scope as secret:// references, one per field.
aux4 secret aux4-cloud list
secret://aux4-cloud/customer_db/username
secret://aux4-cloud/customer_db/password
Delete a secret from the scope.
aux4 secret aux4-cloud remove --ref customer_db
secret://aux4-cloud/customer_db removed
AUX4_CLOUD_API_URL — base URL of the aux4.cloud API.AUX4_CLOUD_SCOPE — the scope whose secrets are accessed.CLOUD_SYNC_TOKEN — machine API key used automatically when present (aux4.cloud VMs).