Skip to main content

Rygen Help Center

Secrets

A secret is sensitive information, such as a password or API key, used to authenticate to an application and access its protected information.

You create secrets to include in Groovy scripts that are used by translators in integration message flows.

The Secrets page is where you can view and add your secrets.

  1. On the Secrets page, view the list of secrets.

Search for a secret
  1. On the Secrets page, you can search for a specific secret by its key name using the default search field.

    secret_search.png
  1. In the top right corner of the page, select New Secret.

    create_secret.png
  2. In the Create New Secret dialog box, enter the secret information, and select Create.

    create_new_secret_dialog_box.png

See the "New Secret Field Descriptions" below for more information about the secret fields.

New Secret Field Descriptions

Field

Description

Key

A unique and descriptive name that represents the secret value. This key is used to reference the secret in scripts and other configurations.

For example, you might have a key named rygen-sender-password.

Secret Value

The actual text string of the secret.

For security purposes, the secret value is encrypted.

Note

When X1 sends messages, it replaces the key with the secret value.

Secret scenario example

Note

In a script, use the following special syntax to reference a secret: ${vault: secretName} where secretName is the key of the secret.

Ligune Logistics (LL) and Waterside Widgets (WW) are integrated trading partners in X1.

LL must access WW's API in order to access get details related to one of WW's shipments.

In the integration message flow that LL creates with WW, the translator will reference a Groovy script that contains the secret.

In this scenario, the key is WWAPIpassword and the secret value is WatersideWidgets2024!

LL references the secret in their Groovy script as follows:

return {

password: ${vault: WWAPIpassword}

}

When you edit a secret, you can do one or more of the following:

  • Copy the key

  • View or edit the secret value

You can copy a secret key so you can paste it in another location in X1 or another software program without having to retype it.

  1. Next to the Key text field, select clone_icon2.png. The secret key is copied to the clipboard so you can paste it elsewhere.

  1. Next to the Secret Value field, select view_icon2.png. The Secret Value displays for you to view.

  1. In the top right corner of the page, select Edit.

  2. In the Secret Value field, edit the secret value.

    Note

    You can also upload a secret value using a CSV file.

    1. Select Upload, and either drag and drop the CSV file, or browse to it by selecting Choose.

    2. Select Upload.

  3. In the top right corner of the page, select Save.

  1. Next to a secret, select delete_icon.png. The Delete Secret dialog box displays.

  2. Select Delete.