1. Introduction
Welcome to the Creating and Managing Secrets Guide!
This guide will assist in:
- Understanding the functionality and benefits of the Secrets Manager.
- Learning how to create, manage, and use secrets effectively.
Who is this guide designed for?
This guide is intended for users who need to manage sensitive data within the system.
Note: Ensure access to the Secrets Manager section in Account Settings is available before starting.
2. Overview
The Secrets Manager allows users to:
- Store credentials and other sensitive information in a centralized location.
- Use stored secrets in various parts of the system, such as Custom Code Nodes.
- Manage secrets by adding, updating, or deleting key-value pairs.
3. Getting Started
3.1 Prerequisites
Before beginning, ensure that:
- Access to the Secrets Manager section in Account Settings is available.
- The necessary permissions to create and manage secrets are granted.
- Familiarity with Custom Code Nodes is present, although it's not mandatory.
4. Step-by-Step Instructions
4.1 Navigation
To navigate to the Secrets Manager section:
- Click on the Profile Icon.
- Select Account Settings.
- Choose Secrets Manager.
4.2 Creating a Secret
To create a new secret:
- Click on +New Key.
- Provide a unique Secret name.
- Click on Add Item to add a Key-Value Pair.
- Under Keyname, input the access name.
- Under Keyvalue, input the access secret.
- Repeat steps 3 to 5 to add more Key-Value Pairs to the Secret, if necessary.
- Click on Create to finish creating the Secret.
4.3 Managing a Secret
To manage a secret:
- From the Secrets listing table, locate the Secret to be managed.
- Click on the Edit (pencil) icon.
- Update the Key-Value Pair as required.
- Click on Save to apply changes.
4.4 Using a Secret
To use a secret in a Custom Code Node:
- Create a Custom Code Node.
- While building a Custom Code Node, use the following snippet of code:
from meta.global_constants import get_secrets_data
secret_json = get_secrets_data(f'{client_id}-{your-secret-name}')
Replace <your -secret-name> with the actual name of the Secret to be accessed.
Note: Now, any user in the organization (with relevant permissions) can use Secrets securely and efficiently.
5. Troubleshooting
Common Issues and Solutions
Problem 1: Unable to Access Secrets Manager
Cause: Lack of necessary permissions.
Solution:
- Verify that the necessary permissions are granted.
- Contact the administrator if access is restricted.
Problem 2: Secret Not Found
Cause: Incorrect Secret name while retrieving it in the Custom Code Node.
Solution:
- Double-check the Secret name.
Problem 3: Incorrect Key-Value Pair
Cause: Incorrect credentials stored and retrieved.
Solution:
- Verify that the correct credentials have been stored and retrieved.
Problem 4: Changes Not Saved
Cause: Page not refreshed.
Solution:
- Refresh the page and confirm if the updated Key-Value Pair is reflected.
6. Additional information
- Secrets are encrypted and stored securely.
- Only users with the necessary permissions can create, modify, or access secrets.
- Secrets can be used in different workflows, including automation and API authentication.
7. FAQ
Can multiple Key-Value Pairs be stored in a single Secret?
Yes, multiple Key-Value Pairs can be stored in one Secret.
Who can access stored Secrets?
Only users with the appropriate permissions can access stored Secrets.
Can a Secret be deleted?
Currently, this guide does not cover deleting Secrets. Refer to the Secrets Manager documentation for details.
8. Summary
- The Secrets Manager enables secure storage, management, and retrieval of sensitive data.
- This guide covered:
- Navigation to Secrets Manager
- Steps to create and manage a Secret
- Usage of Secrets in a Custom Code Node
- Troubleshooting common issues
By following these steps, sensitive information within the system can be securely managed.