Skip to main content

UAC Utility: UDMG Vault Sync

Disclaimer​

Your use of this download is governed by Stonebranch's Terms of Use.

Version Information​

Template Name

Extension Name

Version

Status

UDMG Vault Sync

ue-udmg-vault-sync

1.0.0

Initial Version.

Refer to Changelog for version history information.

Overview​

Universal Data Mover Gateway (UDMG) is Stonebranch's managed file-transfer solution. It keeps the keys, certificates and passwords used to exchange files with partners as credentials, stored per domain. In many organizations the authoritative copy of that material lives in a secret store such as AWS Secrets Manager, Azure Key Vault or HashiCorp Vault.

This Universal Task allows customers to keep UDMG credentials in sync with their secret store straight from the Universal Controller. A secret is read from AWS Secrets Manager, Azure Key Vault, HashiCorp Vault or any REST endpoint, and the UDMG credential is created, or updated when it already exists. For AWS KMS, the public half of an asymmetric RSA key is published to UDMG as an OpenPGP public key, while the private key never leaves KMS.

Key Features​

Feature

Description

Five Secret Sources

Reads secrets from AWS Secrets Manager, AWS KMS, Azure Key Vault, HashiCorp Vault (KV version 2) or a generic REST API.

Create or Update UDMG Credentials

Creates the UDMG credential when it is missing and replaces its value when it exists, for PGP and SSH keys, X.509 certificates, passwords, and usernames with an SSH private key.

Flexible Authentication

Authenticates with UAC Credentials or with the standard AWS, Azure and Vault environment variables of the Agent, including IAM roles, Azure service principals with a client secret or a certificate, managed and workload identities, and Vault AppRole. Authenticates with UDMG using Basic authentication or a personal access token.

Value Selection from JSON Secrets

Selects one value out of a JSON secret or a multi-key Vault entry by key name or JSONPath expression.

AWS KMS Keys as OpenPGP Public Keys

Publishes the public half of an asymmetric KMS key as a self-signed OpenPGP public key with a stable fingerprint.

Requirements​

This integration requires a Universal Agent and a Python runtime to execute the Universal Task.

Area

Details

Python Version

Requires Python 3.11 or 3.14, tested with Agent bundled python distribution.

Universal Agent Compatibility

  • Compatible with Universal Agent for Windows x64 and version >= 7.8.0.0.
  • Compatible with Universal Agent for Linux and version >= 7.8.0.0.

Universal Controller Compatibility

Universal Controller Version >= 7.8.0.0.

Universal Data Mover Gateway

Tested with UDMG 3.4. The UDMG user of UDMG Credentials requires permission to read, create and update the credentials of the UDMG Domain. With UDMG Authentication "Token", a personal access token must be issued to that user.

AWS Permissions

  • AWS Secrets Manager: secretsmanager:GetSecretValue on the secret, and kms:Decrypt when the secret is encrypted with a customer managed key.
  • AWS KMS: kms:GetPublicKey, kms:Sign and kms:DescribeKey on an asymmetric RSA key with key usage SIGN_VERIFY that supports RSASSA_PKCS1_V1_5_SHA_256. kms:Sign lets the identity sign anything with that key, so grant these three permissions on that key only. Use an alias as Secret Name: the key ID, ARN or alias given becomes the User ID of the published key, and an ARN would publish the account ID and region.
  • With Assume Role checked: sts:AssumeRole on the role, whose trust policy allows the authenticating identity.

Azure Key Vault Permissions

The identity requires permission to get secrets of the vault, for example the Key Vault Secrets User role.

For "Service Principal (Certificate)", the public certificate (.cer, .pem or .crt) must be uploaded to the app registration under Certificates & secrets, and the certificate with its private key (a PEM file or a PFX) must be stored on the Agent. The key must be RSA.

HashiCorp Vault Permissions

A KV version 2 secrets engine. The token, or the token issued to the AppRole, requires the read capability on <KV Mount>/data/<Secret Name>. AppRole logins are made at the auth/approle mount.

Network and Connectivity

Network connectivity to UDMG and to the selected source is required: the AWS STS, Secrets Manager and KMS endpoints of the region, login.microsoftonline.com and the vault for Azure Key Vault, the HashiCorp Vault server, or the REST endpoint.

Supported Actions​

There is one Top-Level action controlled by the Action Field:

  • Sync Credential: Reads the secret from the selected source and creates or updates the UDMG credential with it.

Before the secret is read, the credential is looked up in UDMG. If it exists with a type other than Credential Type, the Task Instance fails without reading the secret, because UDMG cannot change the type of a credential. After the write, the credential is read back from UDMG to confirm it was stored. An empty secret fails the Task Instance and nothing is written to UDMG.

Action Output​

The extension output provides the following information:

  • exit_code, status_description: General info regarding the task execution. For more information refer to exit codes table.
  • invocation.fields: The task configuration used for this execution.
  • result.source_provider, result.auth_method: The source the secret was read from, and the authentication method used for it.
  • result.source_secret, result.secret_key: The secret name, key ID or URL that was read, and the Secret Key applied to it (null when not set).
  • result.udmg_domain, result.udmg_credential, result.udmg_credential_type: The UDMG domain, the name of the credential, and its UDMG type, for example pgp:public:key.
  • result.operation: Created or Updated.
  • result.udmg_version: The version of the credential in UDMG after the write.
  • result.synced_at: When the credential was written, in UTC (ISO 8601).
  • result.errors: List of errors that might have occurred during execution.

Examples:

Successful execution
{
"exit_code": 0,
"status_description": "Credential 'partner-acme-pgp' updated in UDMG",
"invocation": {
"extension": "ue-udmg-vault-sync",
"version": "1.0.0",
"fields": {
"action": "Sync Credential",
"source_provider": "HashiCorp Vault",
"source_url": "https://vault.acme-corp.com:8200",
"secret_name": "udmg/partners/acme",
"secret_key": "pgp_public",
"aws_auth_method": null,
"aws_region": null,
"aws_credentials": null,
"aws_assume_role": false,
"aws_role_arn": null,
"aws_external_id": null,
"aws_session_name": null,
"azure_auth_method": null,
"azure_tenant_id": null,
"azure_credentials": null,
"vault_auth_method": "AppRole",
"vault_mount": "secret",
"vault_namespace": null,
"vault_credentials": {
"user": "d9b2c6f1-0f4e-4c1d-9a51-6f0b3c2e7a10",
"password": "****",
"token": "****",
"key_location": null,
"passphrase": "****"
},
"rest_auth_method": null,
"rest_credentials": null,
"udmg_url": "https://udmg.acme-corp.com:8443",
"udmg_domain": "partners",
"udmg_auth_method": "Basic",
"udmg_credentials": {
"user": "vault-sync",
"password": "****",
"token": "****",
"key_location": null,
"passphrase": "****"
},
"verify_ssl": true,
"udmg_credential_name": "partner-acme-pgp",
"udmg_credential_type": "PGP Public Key",
"udmg_username": null,
"udmg_description": "ACME public key, synced from Vault",
"stdout_options": [
"Include Step Log",
"Include Summary Table"
],
"sync_status": null,
"last_synced": null,
"timeout": 60,
"reconnect_retries": 3,
"reconnect_interval": 30,
"ssl_cert": null
}
},
"result": {
"source_provider": "HashiCorp Vault",
"auth_method": "AppRole",
"source_secret": "udmg/partners/acme",
"secret_key": "pgp_public",
"udmg_domain": "partners",
"udmg_credential": "partner-acme-pgp",
"udmg_credential_type": "pgp:public:key",
"operation": "Updated",
"udmg_version": 4,
"synced_at": "2026-10-19T14:02:11+00:00"
}
}
Failed execution
{
"exit_code": 6,
"status_description": "Credential Type Mismatch: [UDMG] Credential 'partner-acme-pgp' exists with type 'ssh:public:key', but the task syncs 'pgp:public:key'. UDMG cannot change the type of a credential.",
"invocation": {
"extension": "ue-udmg-vault-sync",
"version": "1.0.0",
"fields": { .... }
},
"result": {
"errors": [
"Credential Type Mismatch: [UDMG] Credential 'partner-acme-pgp' exists with type 'ssh:public:key', but the task syncs 'pgp:public:key'. UDMG cannot change the type of a credential."
]
}
}

Configuration Examples​

Example: HashiCorp Vault, AppRole, value selected from a multi-key entry​

Source Provider is "HashiCorp Vault" with Source URL https://vault.acme-corp.com:8200, KV Mount secret and Secret Name udmg/partners/acme, an entry that holds the keys pgp_public and pgp_private. Secret Key is pgp_public. Vault Authentication is "AppRole", with the Role ID as user and the Secret ID as password of Vault Credentials. The public key is written to the UDMG credential partner-acme-pgp of type "PGP Public Key" in domain partners, which is created on the first run and updated on every later run. Both STDOUT Options are selected.

Configuration screenshot

Example: AWS Secrets Manager, Agent IAM Role, cross-account Assume Role​

Source Provider is "AWS Secrets Manager" with Secret Name prod/udmg/sftp-key and Region eu-central-1. AWS Authentication is "Agent IAM Role", so the instance profile of the Agent's EC2 host is used, and Assume Role is checked with the Role ARN and External ID of a role in the account that owns the secret. The plain-text secret is written whole to the UDMG credential partner-globex-ssh of type "SSH Private Key".

Configuration screenshot

Example: Azure Key Vault, Managed Identity, X.509 certificate​

Source Provider is "Azure Key Vault" with Source URL https://acme-certs.vault.azure.net and Secret Name partner-initech-cert. Azure Authentication is "Managed Identity" with Azure Credentials left empty, so the system-assigned identity of the Agent's Azure VM is used. The PEM certificate is written to the UDMG credential partner-initech-cert of type "X.509 Certificate".

Configuration screenshot

Example: AWS KMS key published as an OpenPGP public key​

Source Provider is "AWS KMS" with Secret Name alias/udmg-signing and Region us-east-1. AWS Authentication is "Access Key" with AWS Credentials left empty, so AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY of the Agent are used. The public key of the KMS key is converted into a self-signed OpenPGP public key and written to the UDMG credential acme-signing-key of type "PGP Public Key", the only type AWS KMS supports. The key is flagged for certification and signing only: it verifies signatures made with the KMS key, and cannot be used to encrypt data to.

Configuration screenshot

Input Fields​

Name

Type

Description

Version Information

Action

Choice

The action to perform. Available options:

  • Sync Credential (default)

Introduced in 1.0.0

Source Provider

Choice

The system the secret is read from. Available options:

  • AWS Secrets Manager
  • AWS KMS - the public key of an asymmetric RSA key, published as an OpenPGP public key.
  • Azure Key Vault
  • HashiCorp Vault - a KV version 2 secrets engine.
  • Generic REST API - the body of a GET request.

Introduced in 1.0.0

Source URL

Text

The vault URL for Azure Key Vault (for example https://my-vault.vault.azure.net), the Vault address for HashiCorp Vault (for example https://vault.example.com:8200), or the full URL the secret is read from with a GET request for Generic REST API.

Redirects are followed for Generic REST API only; the Authorization header is not sent on to another host. An http:// URL is accepted but logged as a warning. A user or password in the URL is rejected; use the credential field of the source.

This field is required when Source Provider is "Azure Key Vault", "HashiCorp Vault" or "Generic REST API".

Introduced in 1.0.0

Secret Name

Text

The secret name or ARN for AWS Secrets Manager, the key ID, key ARN or alias for AWS KMS, the secret name for Azure Key Vault, or the path of the entry below KV Mount for HashiCorp Vault.

This field is required when Source Provider is "AWS Secrets Manager", "AWS KMS", "Azure Key Vault" or "HashiCorp Vault".

Introduced in 1.0.0

Secret Key

Text

The value to synchronize out of a JSON secret or a HashiCorp Vault entry: a top-level key by its exact name, or else a JSONPath expression such as pgp.public or $.items[0].key, of which the first match is used. When empty, the whole secret is synchronized; a HashiCorp Vault entry then has to hold a single key.

Available if Source Provider is not "AWS KMS".

Introduced in 1.0.0

AWS Authentication

Choice

The way to authenticate with AWS. Available options:

  • Access Key - the key pair of AWS Credentials, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY of the Agent.
  • Agent IAM Role - the default AWS credential chain of the Agent, for example the instance profile of its EC2 host.

This field is required when Source Provider is "AWS Secrets Manager" or "AWS KMS".

Introduced in 1.0.0

Region

Text

The AWS region, for example eu-central-1. When empty, AWS_REGION or AWS_DEFAULT_REGION of the Agent is used, else the AWS config file of the Agent's user.

Available if Source Provider is "AWS Secrets Manager" or "AWS KMS".

Introduced in 1.0.0

AWS Credentials

Credential

The Access Key ID (user) and Secret Access Key (password). When empty, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and, if set, AWS_SESSION_TOKEN of the Agent are used.

Available if AWS Authentication is "Access Key".

Introduced in 1.0.0

Assume Role

Checkbox

Check to assume an IAM role with AWS STS after authenticating, for example for cross-account access.

Available if Source Provider is "AWS Secrets Manager" or "AWS KMS".

Introduced in 1.0.0

Role ARN

Text

The ARN of the role to assume, for example arn:aws:iam::123456789012:role/MyRole.

This field is required when Assume Role is checked.

Introduced in 1.0.0

External ID

Text

The external ID required by the trust policy of the role.

Available if Assume Role is checked.

Introduced in 1.0.0

Role Session Name

Text

The session name recorded in AWS CloudTrail. Defaults to ue-udmg-vault-sync.

Available if Assume Role is checked.

Introduced in 1.0.0

Azure Authentication

Choice

The way to authenticate with Microsoft Entra ID. Available options:

  • Service Principal - a client ID and client secret.
  • Managed Identity - the identity of the Agent's Azure host.
  • Workload Identity - a federated token, for Agents running on AKS.
  • Service Principal (Certificate) - a client ID and a certificate file on the Agent.

This field is required when Source Provider is "Azure Key Vault".

Introduced in 1.0.0

Tenant ID

Text

The Microsoft Entra tenant ID. When empty, AZURE_TENANT_ID of the Agent is used.

Available if Azure Authentication is "Service Principal", "Service Principal (Certificate)" or "Workload Identity".

Introduced in 1.0.0

Azure Credentials

Credential

The client ID (user) and, for Service Principal, the client secret (token). For Service Principal (Certificate), the path of the certificate file on the Agent (Key Location), a PEM file with its private key or a PFX, and the certificate's password, if any (passphrase). When empty, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_CLIENT_CERTIFICATE_PATH and AZURE_CLIENT_CERTIFICATE_PASSWORD of the Agent are used. For Managed Identity, a client ID selects a user-assigned identity, and an empty credential selects the system-assigned identity.

Available if Azure Authentication is "Service Principal", "Service Principal (Certificate)", "Managed Identity" or "Workload Identity".

Introduced in 1.0.0

KV Mount

Text

The mount path of the KV version 2 secrets engine. Defaults to secret.

This field is required when Source Provider is "HashiCorp Vault".

Introduced in 1.0.0

Namespace

Text

The Vault Enterprise namespace.

Available if Source Provider is "HashiCorp Vault".

Introduced in 1.0.0

Vault Authentication

Choice

The way to authenticate with HashiCorp Vault. Available options:

  • Token - a Vault token.
  • AppRole - a Role ID and Secret ID, exchanged for a token at the auth/approle mount.

This field is required when Source Provider is "HashiCorp Vault".

Introduced in 1.0.0

Vault Credentials

Credential

For Token, the Vault token (token); when empty, VAULT_TOKEN of the Agent is used. For AppRole, the Role ID (user) and Secret ID (password). Like every credential user, the Role ID is shown in the task's extension output; passwords and tokens are masked.

Available if Vault Authentication is "Token" or "AppRole".

Introduced in 1.0.0

REST Authentication

Choice

The authentication of the GET request. Available options:

  • None
  • Bearer Token - sends Authorization: Bearer <token>.
  • Basic - HTTP Basic authentication.
  • Authorization Header - sends the whole Authorization header value as given, for example ApiKey abc123.

This field is required when Source Provider is "Generic REST API".

Introduced in 1.0.0

REST Credentials

Credential

For Bearer Token, the token (token). For Basic, the user and password. For Authorization Header, the whole header value (token).

This field is required when REST Authentication is "Bearer Token", "Basic" or "Authorization Header".

Introduced in 1.0.0

UDMG URL

Text

The base URL of the UDMG server, for example https://udmg.example.com:8443. /api/v1 is appended when missing. Redirects are not followed, so use the URL UDMG answers on. An http:// URL is accepted but logged as a warning, since credentials and the secret then travel unencrypted. A user or password in the URL is rejected; use UDMG Credentials.

Introduced in 1.0.0

UDMG Domain

Text

The UDMG domain that holds the credential.

Introduced in 1.0.0

UDMG Authentication

Choice

The way to authenticate with UDMG. Available options:

  • Basic (default) - HTTP Basic authentication with the user and password of UDMG Credentials.
  • Token - the UDMG personal access token in the token of UDMG Credentials, sent as X-Authorization: Token <token>.

Introduced in 1.0.0

Verify SSL

Checkbox

Check to verify the SSL certificates of UDMG and of the source. A CA bundle can be given with UE_SSL_CERT; it then replaces the system CA bundle for UDMG and the source alike. Checked by default; a task that does not send the field, for example one created through the API, verifies too. When unchecked, the task logs a warning.

Introduced in 1.0.0

UDMG Credentials

Credential

A UDMG user of the domain: the user and password for UDMG Authentication "Basic", or the user's personal access token (token) for "Token".

Introduced in 1.0.0

Credential Type

Choice

The type of the UDMG credential. An existing credential must already have this type, as UDMG cannot change it. AWS KMS supports "PGP Public Key" only. Available options:

  • PGP Public Key
  • PGP Private Key
  • SSH Public Key
  • SSH Private Key
  • X.509 Certificate
  • Password - the secret is stored as the password of Username.
  • Username and Key - the secret is stored as the SSH private key of Username.

Introduced in 1.0.0

Credential Name

Dynamic Choice

The name of the UDMG credential to create or update. The list shows the domain's credentials of the selected Credential Type. To create a credential, type a new name.

Introduced in 1.0.0

Username

Text

The username stored with the password or the SSH private key.

This field is required when Credential Type is "Password" or "Username and Key".

Introduced in 1.0.0

Description

Text

The description of a credential created by the task. Updating an existing credential keeps its description.

Introduced in 1.0.0

STDOUT Options

Multiple Choice

The content printed to STDOUT. Available options:

  • Include Step Log - one line per step as the sync runs.
  • Include Summary Table (default) - a table of what was synchronized at the end, also when the run fails.

Introduced in 1.0.0

Output Fields​

The following output-only fields provide better visibility during the execution of Universal Task Instances.

Name

Type

Description

Version Information

Sync Status

Text

The outcome of the sync: Created, Updated, or Failed: <category>, for example Failed: Secret Not Found.

Introduced in 1.0.0

Last Synced

Text

When the credential was last written, in UTC (ISO 8601).

Introduced in 1.0.0

Environment Variables​

Environment Variables can be set from the Environment Variables task definition table. The AWS, Azure and Vault variables are also read from the environment of the Universal Agent.

Environment Variable Name

Description

Version Information

UE_HTTP_TIMEOUT

The timeout, in seconds, of each request to UDMG and to the source. Defaults to 60.

Introduced in 1.0.0

UE_RECONNECT_RETRIES

The number of retries after a timeout, a connection error, a 429 or a 5xx response. When the retries are exhausted, the Task Instance fails. A credential creation is not sent again after a timeout or a 5xx response, as UDMG may already have processed it. Defaults to 3.

Introduced in 1.0.0

UE_RECONNECT_INTERVAL

The number of seconds between retries of requests to UDMG, HashiCorp Vault and the REST endpoint; a 429 response with a Retry-After header waits as long as requested instead. AWS and Azure requests use the backoff of their SDKs. Defaults to 30.

Introduced in 1.0.0

UE_SSL_CERT

The path of a CA bundle used for SSL verification when Verify SSL is checked. When not set, or when the file does not exist, the system CA bundle is used. The bundle replaces the system CA bundle for UDMG and the source alike: when UDMG uses an internal CA and the source is AWS or Azure, the file must hold that CA together with the public root CAs (for example the content of certifi's cacert.pem). CAs without the Key Usage extension, as internal CAs often are, are accepted on Python 3.13 and later as well.

Introduced in 1.0.0

AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN

The AWS key pair, and optional session token, used by "Access Key" authentication when AWS Credentials is empty.

Introduced in 1.0.0

AWS_REGION, AWS_DEFAULT_REGION

The AWS region used when Region is empty, in this order of precedence.

Introduced in 1.0.0

AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET

The tenant, client ID and client secret used by "Service Principal" authentication, and the tenant and client ID used by "Service Principal (Certificate)" and "Workload Identity", when the corresponding fields are empty.

Introduced in 1.0.0

AZURE_CLIENT_CERTIFICATE_PATH, AZURE_CLIENT_CERTIFICATE_PASSWORD

The path of the certificate file on the Agent (a PEM file with its private key, or a PFX) and its password, used by "Service Principal (Certificate)" authentication when the Key Location and passphrase of Azure Credentials are empty. The password is optional.

Introduced in 1.0.0

AZURE_CLIENT_SEND_CERTIFICATE_CHAIN

When true or 1, "Service Principal (Certificate)" authentication sends the certificate chain with each token request, as subject name and issuer authentication requires. Defaults to false.

Introduced in 1.0.0

AZURE_FEDERATED_TOKEN_FILE

The path of the federated token file used by "Workload Identity" authentication. Set by AKS workload identity.

Introduced in 1.0.0

VAULT_TOKEN

The Vault token used by "Token" authentication when Vault Credentials holds no token.

Introduced in 1.0.0

Importable Configuration Examples​

This integration provides importable configuration examples along with their dependencies, grouped as Use Cases to better describe end to end capabilities.

warning

These examples aid in allowing task authors to get more familiar with the configuration of tasks and related Use Cases. Such tasks should be imported in a Test system and should not be used directly in production.

Initial Preparation Steps​

  • STEP 1: Go to Stonebranch Integration Hub and download the "UAC Utility: UDMG Vault Sync" integration. Use Case 5 also needs the "Email" integration, so download that one too. Extract the downloaded archives in a local directory.
  • STEP 2: Locate and import both integrations to the target Universal Controller. For more information refer to the How To section in this document.
  • STEP 3: Inside the directory named "configuration_examples" you will find a list of definition zip files. Upload them one by one in the order given below, by using the "Upload" functionality of Universal Controller:
    • 1_variables.zip
    • 2_credentials.zip
    • 3_tasks.zip
    • 4_workflows.zip
  • STEP 4: Update the uploaded UAC Credentials:
    • "UC1: UDMG Vault Sync - UDMG Credentials", and the UC2, UC3 and UC4 credentials of the same name: a UDMG user of the domain in ue_udmg_vault_sync_udmg_domain. Put its user name in "Runtime User" and its password in "Runtime Password".
    • "UC1: UDMG Vault Sync - Vault AppRole Credentials": the AppRole Role ID in "Runtime User" and the Secret ID in "Runtime Password".
    • "UC5: UDMG Vault Sync - Microsoft Graph Application Credentials (Client ID/Secret)": the Client ID of the Microsoft Graph application that sends the email in "Runtime User", and its Client Secret in "Runtime Password".
  • STEP 5: Update the UAC global variables introduced with the 1_variables.zip file. Their names are prefixed with "ue_udmg_vault_sync". Review the descriptions of the variables as they include information on how they should be populated.
    • ue_udmg_vault_sync_agent: the Agent that runs the tasks.
    • ue_udmg_vault_sync_udmg_url: the base URL of UDMG.
    • ue_udmg_vault_sync_udmg_domain: the UDMG domain the credentials are written to. It is set to partners.
    • ue_udmg_vault_sync_aws_role_arn and ue_udmg_vault_sync_aws_external_id: Use Case 2 only. The role to assume and the External ID its trust policy requires.
    • ue_udmg_vault_sync_email_to, ue_udmg_vault_sync_email_subject, ue_udmg_vault_sync_ms_tenant_id and ue_udmg_vault_sync_sender_acc_identifier: Use Case 5 only. The recipients, the subject, the Microsoft Entra ID tenant, and the mailbox that sends the email. The sending mailbox is also used as From, Cc and Reply To.
  • STEP 6: The source fields of each task (Source URL, Secret Name, Secret Key, Region) hold the values of the Configuration Examples section. Point them at a secret in your own store before you launch a task.
tip
  • The order indicated above ensures that the dependencies of the imported entities need to be uploaded first.
  • All imported tasks and credentials are prefixed with "UC<N>: UDMG Vault Sync".

How to "Upload" Definition Files to a Universal Controller​

The "Upload" functionality of Universal Controller allows Users to import definitions exported with the "Download" functionality.

Login to Universal Controller and:

  • STEP 1: Click "Tasks" → "All Tasks"
  • STEP 2: Right click on the top of the column named "Name"
  • STEP 3: Click "Upload..."

In the pop-up "Upload..." dialogue:

  • STEP 1: Click "Choose File".
  • STEP 2: Select the appropriate zip definition file and click "Upload".
  • STEP 3: Observe the Console for possible errors.

Use Case 1: HashiCorp Vault, AppRole, Value Selected from a Multi-Key Entry​

Description​

The task "UC1: UDMG Vault Sync - Vault AppRole" logs in to HashiCorp Vault with AppRole and reads the entry udmg/partners/acme from the secret KV mount. That entry holds two keys, pgp_public and pgp_private. The task takes pgp_public and writes it to the UDMG credential partner-acme-pgp of type "PGP Public Key". The first run creates the credential, and every later run updates it. Both STDOUT Options are selected, so STDOUT shows the step log as well as the summary table.

Entities: the task, the credentials "UC1: UDMG Vault Sync - Vault AppRole Credentials" and "UC1: UDMG Vault Sync - UDMG Credentials", and the variables ue_udmg_vault_sync_agent, ue_udmg_vault_sync_udmg_url and ue_udmg_vault_sync_udmg_domain.

How to Run​

Execution Steps:

  • STEP 1: Ensure all Initial Preparation Steps have been completed successfully.
  • STEP 2: Launch the task "UC1: UDMG Vault Sync - Vault AppRole".
  • STEP 3: Review the STDOUT and the Output Only fields of the task instance.

Expected Results:

  • Sync Status reads Created on the first run and Updated after that. Last Synced holds the time of the write in UTC.
  • STDOUT shows the step log and the summary table.
  • The task instance completes in the Success state.

Use Case 2: AWS Secrets Manager, Agent IAM Role, Cross-Account Assume Role​

Description​

The task "UC2: UDMG Vault Sync - AWS Assume Role" reads the secret prod/udmg/sftp-key from AWS Secrets Manager in eu-central-1. It starts from the instance profile of the Agent's EC2 host, then assumes the role in ue_udmg_vault_sync_aws_role_arn with the External ID in ue_udmg_vault_sync_aws_external_id, in the account that owns the secret. The plain-text secret is written whole to the UDMG credential partner-globex-ssh of type "SSH Private Key".

Entities: the task, the credentials "UC2: UDMG Vault Sync - UDMG Credentials", and the variables ue_udmg_vault_sync_agent, ue_udmg_vault_sync_udmg_url, ue_udmg_vault_sync_udmg_domain, ue_udmg_vault_sync_aws_role_arn and ue_udmg_vault_sync_aws_external_id.

How to Run​

Execution Steps:

  • STEP 1: Ensure all Initial Preparation Steps have been completed successfully, and that the Agent runs on an EC2 host whose instance profile may assume the role.
  • STEP 2: Launch the task "UC2: UDMG Vault Sync - AWS Assume Role".
  • STEP 3: Review the STDOUT and the Output Only fields of the task instance.

Expected Results:

  • Sync Status reads Created or Updated, and Last Synced holds the time of the write.
  • STDOUT shows the summary table.
  • The task instance completes in the Success state.

Use Case 3: Azure Key Vault, Managed Identity, X.509 Certificate​

Description​

The task "UC3: UDMG Vault Sync - Azure Managed Identity" reads the secret partner-initech-cert from the vault https://acme-certs.vault.azure.net. Azure Credentials is empty, so the task signs in with the system-assigned identity of the Agent's Azure VM. The PEM certificate is written to the UDMG credential partner-initech-cert of type "X.509 Certificate".

Entities: the task, the credentials "UC3: UDMG Vault Sync - UDMG Credentials", and the variables ue_udmg_vault_sync_agent, ue_udmg_vault_sync_udmg_url and ue_udmg_vault_sync_udmg_domain.

How to Run​

Execution Steps:

  • STEP 1: Ensure all Initial Preparation Steps have been completed successfully, and that the Agent runs on an Azure VM whose identity may read secrets from the vault.
  • STEP 2: Launch the task "UC3: UDMG Vault Sync - Azure Managed Identity".
  • STEP 3: Review the STDOUT and the Output Only fields of the task instance.

Expected Results:

  • Sync Status reads Created or Updated, and Last Synced holds the time of the write.
  • STDOUT shows the summary table.
  • The task instance completes in the Success state.

Use Case 4: AWS KMS Key Published as an OpenPGP Public Key​

Description​

The task "UC4: UDMG Vault Sync - AWS KMS" reads the public key of the KMS key alias/udmg-signing in us-east-1. AWS Credentials is empty, so the task uses AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from the Agent's environment. The task turns the public key into a self-signed OpenPGP public key and writes it to the UDMG credential acme-signing-key of type "PGP Public Key". The private key never leaves KMS. UDMG can use this key to verify signatures made with the KMS key, but not to encrypt data to it.

Entities: the task, the credentials "UC4: UDMG Vault Sync - UDMG Credentials", and the variables ue_udmg_vault_sync_agent, ue_udmg_vault_sync_udmg_url and ue_udmg_vault_sync_udmg_domain.

How to Run​

Execution Steps:

  • STEP 1: Ensure all Initial Preparation Steps have been completed successfully, and that AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set in the Agent's environment.
  • STEP 2: Launch the task "UC4: UDMG Vault Sync - AWS KMS".
  • STEP 3: Review the STDOUT and the Output Only fields of the task instance.

Expected Results:

  • Sync Status reads Created or Updated, and Last Synced holds the time of the write.
  • STDOUT shows the summary table.
  • The task instance completes in the Success state.

Use Case 5: Sync with Email Notification​

Description​

The workflow "UC5: UDMG Vault Sync - Sync with Email Notification" runs the Use Case 1 sync and then emails the result. Which email it sends depends on how the sync task ends. Both emails go out through the Email integration with Microsoft App Only Authentication.

The components of the workflow are described below:

  1. "UC1: UDMG Vault Sync - Vault AppRole": the task of Use Case 1. It syncs the pgp_public value of the HashiCorp Vault entry udmg/partners/acme to the UDMG credential partner-acme-pgp.
  2. "UC5: UDMG Vault Sync - Send Email for Success": runs only if (1) succeeds. It tells the recipients in ue_udmg_vault_sync_email_to that partner-acme-pgp was synced.
  3. "UC5: UDMG Vault Sync - Send Email for Failure": runs only if (1) fails. It tells the same recipients that the sync of partner-acme-pgp failed, and points them to the Sync Status field and the STDERR of the task instance for the reason.

Entities: the workflow, the two email tasks, the credentials "UC5: UDMG Vault Sync - Microsoft Graph Application Credentials (Client ID/Secret)" and the Use Case 1 credentials, and the variables of Use Case 1 plus ue_udmg_vault_sync_email_to, ue_udmg_vault_sync_email_subject, ue_udmg_vault_sync_ms_tenant_id and ue_udmg_vault_sync_sender_acc_identifier.

How to Run​

Execution Steps:

  • STEP 1: Ensure all Initial Preparation Steps have been completed successfully, including the Email integration and the Use Case 5 credentials and variables.
  • STEP 2: Launch the workflow "UC5: UDMG Vault Sync - Sync with Email Notification".
  • STEP 3: Review the task instances of the workflow and the mailbox of the recipients.

Expected Results:

  • When (1) succeeds, (2) runs and the recipients get the success email. (3) does not run.
  • When (1) fails, (3) runs and the recipients get the failure email. (2) does not run.
  • Sync Status and Last Synced of task (1) show the outcome of the sync, as in Use Case 1.

Exit Codes​

Exit Code

Status

Description

0

Success

Successful Execution.

1

Failure

Generic Error. Raised when not falling into the other Error Codes.

2

Failure

Authentication error. The provided credentials are invalid or insufficient, on the source or on UDMG, including an unknown UDMG domain, or an Azure certificate that cannot be loaded.

3

Failure

Authorization error. The identity is authenticated but not allowed to perform the request, including a refused AWS STS AssumeRole or a missing AWS KMS permission.

4

Failure

Not found. The secret or the KMS key does not exist, or Secret Key matches nothing in the secret.

5

Failure

Invalid secret. The secret is empty, is an Azure secret that is disabled, expired or not yet valid, is not JSON although Secret Key is set, selects an object or a list, is a HashiCorp Vault entry with several keys and no Secret Key, or is a KMS key that cannot be converted to OpenPGP.

6

Failure

Credential type mismatch. The UDMG credential exists with a type other than Credential Type.

7

Failure

UDMG error. UDMG refused the request, for example because it rejects the key material for the Credential Type. The status description carries what UDMG reported.

10

Failure

Timeout. A request to UDMG or to the source timed out on every attempt.

11

Failure

Connection error. UDMG or the source could not be reached, or its SSL certificate could not be verified.

20

Failure

Input fields validation error.

Document References​

Document Link

Description

AWS Secrets Manager GetSecretValue API Reference

The call used to read a secret, and the permissions it requires.

AWS KMS Asymmetric Keys

How to create the asymmetric RSA signing key that AWS KMS publishes as an OpenPGP public key.

Azure Key Vault RBAC Guide

How to grant an identity access to the secrets of a vault.

HashiCorp Vault KV Secrets Engine Version 2 API

The API used to read an entry, and the path a policy has to grant.

HashiCorp Vault AppRole Auth Method

How to set up an AppRole and obtain its Role ID and Secret ID.

Changelog​

ue-udmg-vault-sync-1.0.0 (2026-11-24)​

Initial Version