Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
documentation and fix types
Matheus Nogueiraf887172626c5
diff --git a/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts b/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.tsindex 84ec5d1e3c..84e143b8f6 100644--- a/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts+++ b/backend/src/ee/services/dynamic-secret/providers/ibm-api-connect.ts@@ -1,11 +1,10 @@import { request } from "@app/lib/config/request";-import { logger } from "@app/lib/logger";import { blockLocalAndPrivateIpAddresses } from "@app/lib/validator/validate-url";import { DynamicSecretIbmApiConnectSchema, TDynamicProviderFns } from "./models";-export type TIbmApiConnectBaseCredentials {+export type TIbmApiConnectBaseCredentials = {clientId: string;clientSecret: string;instanceUrl: string;@@ -19,7 +18,7 @@ type TIbmApiConnectProviderInputs = TIbmApiConnectBaseCredentials & {appId: string;}-export type TApiConnectResource {+export type TApiConnectResource = {name: string;title: string;id: string;@@ -29,7 +28,7 @@ export type TApiConnectApp = TApiConnectResource & {consumerOrgId: string;}-type TIbmApiConnectApplicationCredential {+type TIbmApiConnectApplicationCredential = {id: string;clientId: string;clientSecret: string;diff --git a/docs/docs.json b/docs/docs.jsonindex 46d332a5e3..f2c3b60f6d 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -514,6 +514,7 @@"documentation/platform/dynamic-secrets/elastic-search","documentation/platform/dynamic-secrets/gcp-iam","documentation/platform/dynamic-secrets/github",+ "documentation/platform/dynamic-secrets/ibm-api-connect","documentation/platform/dynamic-secrets/ldap","documentation/platform/dynamic-secrets/milvus","documentation/platform/dynamic-secrets/mongo-atlas",diff --git a/docs/documentation/platform/dynamic-secrets/ibm-api-connect.mdx b/docs/documentation/platform/dynamic-secrets/ibm-api-connect.mdxnew file mode 100644index 0000000000..498171954f--- /dev/null+++ b/docs/documentation/platform/dynamic-secrets/ibm-api-connect.mdx@@ -0,0 +1,146 @@+---+title: "IBM API Connect"+description: "Learn how to dynamically generate IBM API Connect application credentials."+---++The Infisical IBM API Connect dynamic secret allows you to generate IBM API Connect application credentials (Client ID and Client Secret) on demand based on a configured application.++## Prerequisites++1. You need an active IBM API Connect subscription with a running instance.+2. You need at least one organization, catalog, and application already configured in your IBM API Connect instance.++## Create an API Key in IBM API Connect++<Steps>+ <Step title="Navigate to the Subscriptions page in the IBM SaaS Console and click 'View instances' under your API Connect subscription.">+ + </Step>+ <Step title="Click 'Open' to open your API Connect instance.">+ + </Step>+ <Step title="Once inside the API Connect dashboard, click on your profile icon in the top-right corner and select 'My API Keys'.">+ + </Step>+ <Step title="Click the 'Add' button to create a new API key.">+ + </Step>+ <Step title="Fill in the API key details and click 'Create'.">+ ++ 1. **Title** — Give the API key a descriptive name (e.g. `infisical-api-key`).+ 2. **Description** — Add a description for the key (e.g. `Key used by Infisical for creating Dynamic Secrets`).+ 3. **API key timeout** — Set the timeout to `0` to disable expiration, or configure it based on your needs.+ 4. **Enable multiple use** — Check this box to allow the API key to be used multiple times.++ Click **Create** to generate the API key. Copy the generated key and save it securely — you will need it when configuring the dynamic secret in Infisical.+ </Step>+ <Step title="Collect the Instance URL, Client ID, and Client Secret from the 'My API Keys' page.">+ ++ 1. **Instance URL** — Copy the server URL shown in the CLI command (e.g. `https://platform-api.trial.apiconnect.automation.ibm.com`).+ 2. **Client ID** — Found in the `client_id` field of the "Authenticating for the platform REST API" curl snippet.+ 3. **Client Secret** — Found in the `client_secret` field of the same curl snippet.++ Save these values along with the API key — you will need all four when configuring the dynamic secret in Infisical.+ </Step>+</Steps>++## Set up Dynamic Secrets with IBM API Connect++<Steps>+ <Step title="Open Secret Overview Dashboard">+ Open the Secret Overview dashboard and select the environment in which you would like to add a dynamic secret.+ </Step>+ <Step title="Click on the 'Add Dynamic Secret' button">+ + </Step>+ <Step title="Select IBM API Connect">+ + </Step>+ <Step title="Provide the inputs for dynamic secret parameters">+ <ParamField path="Secret Name" type="string" required>+ Name by which you want the secret to be referenced+ </ParamField>++ <ParamField path="Default TTL" type="string" required>+ Default time-to-live for a generated secret (it is possible to modify this value after a secret is generated)+ </ParamField>++ <ParamField path="Max TTL" type="string" required>+ Maximum time-to-live for a generated secret+ </ParamField>++ <ParamField path="Instance URL" type="string" required>+ The URL of your IBM API Connect platform API (e.g. `https://platform-api.trial.apiconnect.automation.ibm.com`).+ </ParamField>++ <ParamField path="API Key" type="string" required>+ The IBM API Connect API key you created in the previous steps. This will be used to authenticate and provision dynamic secret leases.+ </ParamField>++ <ParamField path="Client ID" type="string" required>+ The client ID used for authenticating with the IBM API Connect platform REST API.+ </ParamField>++ <ParamField path="Client Secret" type="string" required>+ The client secret used for authenticating with the IBM API Connect platform REST API.+ </ParamField>++ Once the credentials are filled in, Infisical will automatically fetch your available organizations, catalogs, and applications.++ <ParamField path="Organization" type="string" required>+ The IBM API Connect organization under which the application credentials will be created.+ </ParamField>++ <ParamField path="Catalog" type="string" required>+ The catalog that owns the application for which credentials will be created.+ </ParamField>++ <ParamField path="Application" type="string" required>+ The application for which dynamic credentials will be generated. Each lease creates a new credential pair on this application.+ </ParamField>+ </Step>+ <Step title="Click `Submit`">+ After submitting the form, you will see a dynamic secret created in the dashboard.++ + </Step>+ <Step title="Generate dynamic secrets">+ Once you've successfully configured the dynamic secret, you're ready to generate on-demand credentials.+ To do this, simply click on the 'Generate' button which appears when hovering over the dynamic secret item.+ Alternatively, you can initiate the creation of a new lease by selecting 'New Lease' from the dynamic secret lease list section.++ + ++ When generating these secrets, it's important to specify a Time-to-Live (TTL) duration. This will dictate how long the credentials are valid for.++ ++ <Tip>+ Ensure that the TTL for the lease falls within the maximum TTL defined when configuring the dynamic secret.+ </Tip>++ Once you click the `Submit` button, a new secret lease will be generated and you will be presented with the generated **Client ID** and **Client Secret**.++ <Warning>+ Copy the credentials immediately — you will not be able to see them again after closing the modal.+ </Warning>+ </Step>+</Steps>++## Audit or Revoke Leases+Once you have created one or more leases, you will be able to access them by clicking on the respective dynamic secret item on the dashboard.+This will allow you to see the expiration time of the lease or revoke a lease before its time to live expires.+When a lease is revoked (either manually or by TTL expiration), Infisical will delete the corresponding application credential from IBM API Connect.++++## Renew Leases+To extend the life of the generated dynamic secret leases past its initial time to live, simply click on the **Renew** button as illustrated below.+++<Warning>+ Lease renewals cannot exceed the maximum TTL set when configuring the dynamic secret.+</Warning>diff --git a/docs/images/platform/dynamic-secrets/add-dynamic-secret-button.png b/docs/images/platform/dynamic-secrets/add-dynamic-secret-button.pngindex d60f7cd39e..e5548d1172 100644Binary files a/docs/images/platform/dynamic-secrets/add-dynamic-secret-button.png and b/docs/images/platform/dynamic-secrets/add-dynamic-secret-button.png differdiff --git a/docs/images/platform/dynamic-secrets/dynamic-secret-generate.png b/docs/images/platform/dynamic-secrets/dynamic-secret-generate.pngindex 769da8608e..932d024e6e 100644Binary files a/docs/images/platform/dynamic-secrets/dynamic-secret-generate.png and b/docs/images/platform/dynamic-secrets/dynamic-secret-generate.png differdiff --git a/docs/images/platform/dynamic-secrets/dynamic-secret-lease-empty.png b/docs/images/platform/dynamic-secrets/dynamic-secret-lease-empty.pngindex 63d19aa868..5e614e01d4 100644Binary files a/docs/images/platform/dynamic-secrets/dynamic-secret-lease-empty.png and b/docs/images/platform/dynamic-secrets/dynamic-secret-lease-empty.png differdiff --git a/docs/images/platform/dynamic-secrets/dynamic-secret-lease-renew.png b/docs/images/platform/dynamic-secrets/dynamic-secret-lease-renew.pngindex aaacc9c35a..b062adbc71 100644Binary files a/docs/images/platform/dynamic-secrets/dynamic-secret-lease-renew.png and b/docs/images/platform/dynamic-secrets/dynamic-secret-lease-renew.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/01-view-instance.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/01-view-instance.pngnew file mode 100644index 0000000000..4a5f899753Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/01-view-instance.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/02-open-instance.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/02-open-instance.pngnew file mode 100644index 0000000000..278b196249Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/02-open-instance.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/03-my-api-keys.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/03-my-api-keys.pngnew file mode 100644index 0000000000..a51616e4aaBinary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/03-my-api-keys.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/04-add-api-key.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/04-add-api-key.pngnew file mode 100644index 0000000000..bad0249526Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/04-add-api-key.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/05-fill-and-create-api-key.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/05-fill-and-create-api-key.pngnew file mode 100644index 0000000000..0ddbdbf4d2Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/05-fill-and-create-api-key.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/06-get-server-and-client-info.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/06-get-server-and-client-info.pngnew file mode 100644index 0000000000..9355dfe822Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/06-get-server-and-client-info.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/07-dynamic-secret-modal-ibm-api-connect.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/07-dynamic-secret-modal-ibm-api-connect.pngnew file mode 100644index 0000000000..2c78ac3869Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/07-dynamic-secret-modal-ibm-api-connect.png differdiff --git a/docs/images/platform/dynamic-secrets/ibm-api-connect/08-form.png b/docs/images/platform/dynamic-secrets/ibm-api-connect/08-form.pngnew file mode 100644index 0000000000..05913c9b34Binary files /dev/null and b/docs/images/platform/dynamic-secrets/ibm-api-connect/08-form.png differdiff --git a/docs/images/platform/dynamic-secrets/lease-data.png b/docs/images/platform/dynamic-secrets/lease-data.pngindex 646404e85a..7188156aff 100644Binary files a/docs/images/platform/dynamic-secrets/lease-data.png and b/docs/images/platform/dynamic-secrets/lease-data.png differdiff --git a/docs/images/platform/dynamic-secrets/lease-values.png b/docs/images/platform/dynamic-secrets/lease-values.pngindex 962bd76ec4..5a1c33de76 100644Binary files a/docs/images/platform/dynamic-secrets/lease-values.png and b/docs/images/platform/dynamic-secrets/lease-values.png differdiff --git a/docs/images/platform/dynamic-secrets/provision-lease.png b/docs/images/platform/dynamic-secrets/provision-lease.pngindex f8652dc05f..7e835cfb27 100644Binary files a/docs/images/platform/dynamic-secrets/provision-lease.png and b/docs/images/platform/dynamic-secrets/provision-lease.png differdiff --git a/docs/snippets/DynamicSecretsBrowser.jsx b/docs/snippets/DynamicSecretsBrowser.jsxindex 63de6ce8c4..e5b583bee8 100644--- a/docs/snippets/DynamicSecretsBrowser.jsx+++ b/docs/snippets/DynamicSecretsBrowser.jsx@@ -31,6 +31,7 @@ export const DynamicSecretsBrowser = () => {{"name": "RabbitMQ", "slug": "rabbitmq", "path": "/documentation/platform/dynamic-secrets/rabbit-mq", "description": "Learn how to generate dynamic RabbitMQ credentials on-demand.", "category": "Message Queues"},{"name": "LDAP", "slug": "ldap", "path": "/documentation/platform/dynamic-secrets/ldap", "description": "Learn how to generate dynamic LDAP credentials on-demand.", "category": "Directory Services"},{"name": "GitHub", "slug": "github", "path": "/documentation/platform/dynamic-secrets/github", "description": "Learn how to generate dynamic GitHub credentials on-demand.", "category": "CI/CD"},+ {"name": "IBM API Connect", "slug": "ibm-api-connect", "path": "/documentation/platform/dynamic-secrets/ibm-api-connect", "description": "Learn how to generate dynamic IBM API Connect application credentials on-demand.", "category": "Cloud Providers"},{"name": "Kubernetes", "slug": "kubernetes", "path": "/documentation/platform/dynamic-secrets/kubernetes", "description": "Learn how to generate dynamic Kubernetes credentials on-demand.", "category": "Container Orchestration"},{"name": "TOTP", "slug": "totp", "path": "/documentation/platform/dynamic-secrets/totp", "description": "Learn how to generate dynamic TOTP codes on-demand.", "category": "Authentication"},{"name": "Milvus", "slug": "milvus", "path": "/documentation/platform/dynamic-secrets/milvus", "description": "Learn how to generate dynamic Milvus database credentials on-demand.", "category": "Databases"},