Skip to content

Add integration management and Connected Apps discovery - #130

Open
ayushdubey003 wants to merge 1 commit into
conductor-oss:mainfrom
ayushdubey003:feat/connected-apps-discovery
Open

ayushdubey003 wants to merge 1 commit into
conductor-oss:mainfrom
ayushdubey003:feat/connected-apps-discovery

Conversation

@ayushdubey003

@ayushdubey003 ayushdubey003 commented Nov 19, 2026 •

Copy link
Copy Markdown

Summary:

Add integration management commands and operation discovery by provider type or saved connection.

Commands

ayush@Ayushs-MacBook-Pro ~ % conductor --version
conductor version dev (commit: 22fb10e, built: 2026-11-27T07:54:20Z)

ayush@Ayushs-MacBook-Pro ~ % conductor integration create --help
Create a saved connection from a JSON argument, --file, or stdin. Supply the connection name and provider type. If category is omitted or empty, the CLI uses the registered provider category. Run conductor integration type-config <type> for provider-specific configuration fields.

Use $.env.VAR as the entire string value of a configuration field to read it from the CLI environment. Other fields, including description, remain literal.

Usage:
  conductor integration create [json_payload] [flags]

Examples:
  conductor integration create '{"name":"payments-test","type":"stripe","category":"MCP","enabled":true,"description":"Test payments","configuration":{"api_key":"$.env.STRIPE_TEST_KEY"}}'
  conductor integration create --file connection.json

Flags:
      --file string   Read a JSON object from a file
  -h, --help          help for create

ayush@Ayushs-MacBook-Pro ~ % conductor integration update --help
Update a saved connection from a JSON patch supplied as an argument, via --file, or on stdin. Only description, enabled, and configuration can be updated. Each supplied configuration field replaces its saved value. Omitted fields keep their values.

Use $.env.VAR as the entire string value of a configuration field to read it from the CLI environment. The description remains literal.

Usage:
  conductor integration update <name> [json_payload] [flags]

Examples:
  conductor integration update payments-test '{"configuration":{"api_key":"$.env.STRIPE_TEST_KEY"}}'
  conductor integration update payments-test --file patch.json

Flags:
      --file string   Read a JSON patch object from a file
  -h, --help          help for update

ayush@Ayushs-MacBook-Pro ~ % conductor integration operations --help
List operations for a provider type (--type) or for a saved connection (positional argument). Supply exactly one. Add --name with an exact operation name to show its input and output schemas.

Usage:
  conductor integration operations [connection] [flags]

Examples:
  conductor integration operations --type stripe
  conductor integration operations payments-test
  conductor integration operations payments-test --name "List Charges"

Flags:
  -h, --help          help for operations
      --name string   Inspect an exact operation name
      --type string   Discover by provider type

ayush@Ayushs-MacBook-Pro ~ % conductor integration list
NAME                                                   TYPE                     CATEGORY   ENABLED   DESCRIPTION
gcp-e2e                                                google-cloud-functions   MCP        true      End-to-end Google Functions tests in ayush-test-c41bc
codex-release05-http-cloud_location                    firebase                 MCP        true      Restored local Firebase demo integration
AWSLambda-ConductorRole-e2e                            aws-lambda               MCP        true      End-to-end Lambda tests using the worker identity in the test account
AWSLambda-AssumeRole-e2e                               aws-lambda               MCP        true      End-to-end Lambda tests using the existing test assume-role identity
AWSLambda-AssumeRole-Temporary-e2e                     aws-lambda               MCP        true      Temporary scoped AWS AssumeRole E2E test
firebase-callable-NONE-e2e                             firebase                 MCP        true      Firebase callable NONE with blank optional App Check; E2E test
firebase-http-GoogleID-e2e                             firebase                 MCP        true      Private Firebase HTTP Google ID-token E2E
firebase-callable-BadID-e2e                            firebase                 MCP        true      Deliberately invalid credential for E2E rejection test
AWSLambda-ConductorRole                                aws-lambda               MCP        true      AWSLambda-ConductorRole
AWSLambda-AssumeRoleTest                               aws-lambda               MCP        true      AWSLambda-AssumeRoleTest
firebase-callable-ExpiredID-e2e                        firebase                 MCP        true      Deliberately invalid credential for E2E rejection test
Redis-e2e-20261117                                     redis                    MCP        true      Disposable local Redis service account E2E; only owned QA keys.
Firebase-HTTP-GoogleID-e2e-20261117                    firebase                 MCP        true      Isolated non-mutating provider verification 20261117; existing cloud echo fixtures only.
Firebase-Callable-NONE-e2e-20261117                    firebase                 MCP        true      Isolated non-mutating provider verification 20261117; existing cloud echo fixtures only.
Firebase-Callable-AppCheck-LIMITED_USE-e2e-20261117    firebase                 MCP        true      Isolated non-mutating provider verification 20261117; existing cloud echo fixtures only.
Azure-e2e-20261117                                     azure-functions          MCP        true      Azure service-principal E2E; test subscription only
AWSLambda-ConductorRole-e2e-20261117                   aws-lambda               MCP        true      AWS Lambda ConductorRole end-to-end test, account 255364981640
AWSLambda-AssumeRole-e2e-20261117                      aws-lambda               MCP        true      AWS Lambda AssumeRole end-to-end test, account 255364981640
AWSS3                                                  aws-s3                   MCP        true      S3test
test-auth                                              aws-lambda               MCP        true      test-auth
test-s3                                                aws-s3                   MCP        true      test-s3
AWSLambda-AccessKey-e2e                                aws-lambda               MCP        true      Temporary AWS basic-access-key E2E test
stripe-test                                            stripe                   MCP        true      Stripe key test
BigQuery-ui-e2e-20261124                               bigquery                 MCP        true      Local UI test with disposable fixture credentials.
Databricks-ui-e2e-20261124                             databricks               MCP        true      Local UI test with disposable fixture credentials.
bigquery-test                                          bigquery                 MCP        true      test
firebase-callable-ExpiredAppCheck-e2e                  firebase                 MCP        true      Deliberately invalid credential for E2E rejection test
GCP-ServiceAccount-e2e-20261117                        google-cloud-functions   MCP        true      Isolated non-mutating provider verification 20261117; existing cloud echo fixtures only.
codex-release05-callable-auth-appcheck                 firebase                 MCP        true      Restored local callable demo integration with fresh tokens
AWSLambda-SessionToken-e2e                             aws-lambda               MCP        true      Temporary session credentials for end-to-end Lambda tests
azure-e2e                                              azure-functions          MCP        true      End-to-end Azure Functions tests in Orkes Developer Subscription
firebase-http-NONE-e2e                                 firebase                 MCP        true      Firebase HTTP without invocation authentication; E2E test
firebase-callable-FirebaseID-e2e                       firebase                 MCP        true      Firebase callable FIREBASE_ID_TOKEN without App Check E2E
AWSLambda-AccessKey                                    aws-lambda               MCP        true      AWSLambda-AccessKey
firebase-callable-AppCheck-e2e                         firebase                 MCP        true      Firebase callable NONE with App Check E2E
firebase-callable-FirebaseID-AppCheck-e2e              firebase                 MCP        true      Firebase callable FIREBASE_ID_TOKEN with App Check E2E
firebase-callable-BadAppCheck-e2e                      firebase                 MCP        true      Deliberately invalid credential for E2E rejection test
AzureIntegration                                       azure-functions          MCP        true      AzureIntegration
Firebase-Callable-AppCheck-SESSION-e2e-20261117        firebase                 MCP        true      Isolated non-mutating provider verification 20261117; existing cloud echo fixtures only.
AWSLambda-AccessKey-e2e-20261117                       aws-lambda               MCP        true      AWS Lambda AccessKey end-to-end test, account 255364981640
AWSLambda-SessionToken-e2e-20261117                    aws-lambda               MCP        true      AWS Lambda SessionToken end-to-end test, account 255364981640
AWSLambda-AssumeRole-Scoped-e2e-20261117               aws-lambda               MCP        true      AWS Lambda AssumeRole end-to-end test, account 255364981640
test-aws                                               aws-lambda               MCP        true      test-aws
accesskey-test                                         aws-lambda               MCP        true      accesskey-test
aws-lambda-prod-test                                   aws-lambda               MCP        true      AWS Lambda via Conductor Role (worker identity)
GCP-integration                                        google-cloud-functions   MCP        true      GCP-integration
Snowflake-ui-e2e-20261124                              snowflake                MCP        true      Local UI test with disposable fixture credentials.
AWSLambda-JSON-Input-Local-KL61wD                      aws-lambda               MCP        true      Provider end-to-end verification
test-google-docs                                       google-docs              MCP        true      Google Docs test service account for the blank-document workflow
test-google-calendar                                   google-calendar          MCP        true      test-google-calendar
stripe-env-test-053ee7da-6f19-46c5-bfad-1d6d0192caba   stripe                   MCP        true      Temporary CLI env reference test

ayush@Ayushs-MacBook-Pro ~ % conductor integration type-config aws-lambda
[
  {
    "fieldType": "DROPDOWN",
    "valueOptions": [
      {
        "label": "Access Key",
        "value": "ACCESS_KEY"
      },
      {
        "label": "Conductor Role (worker identity)",
        "value": "CONDUCTOR_ROLE"
      },
      {
        "label": "Assume Role (from worker identity)",
        "value": "ASSUME_ROLE"
      }
    ],
    "label": "Authentication",
    "fieldName": "authMode",
    "value": "",
    "description": "",
    "optional": false
  },
  {
    "fieldType": "TEXT",
    "label": "Access Key ID",
    "fieldName": "user",
    "value": "",
    "dependsOn": [
      {
        "fieldName": "authMode",
        "value": "ACCESS_KEY",
        "optional": false
      }
    ],
    "description": "",
    "optional": false
  },
  {
    "fieldType": "PASSWORD",
    "label": "Secret Access Key",
    "fieldName": "api_key",
    "value": "",
    "dependsOn": [
      {
        "fieldName": "authMode",
        "value": "ACCESS_KEY",
        "optional": false
      }
    ],
    "description": "",
    "optional": false
  },
  {
    "fieldType": "PASSWORD",
    "label": "Session Token",
    "fieldName": "sessionToken",
    "value": "",
    "dependsOn": [
      {
        "fieldName": "authMode",
        "value": "ACCESS_KEY",
        "optional": false
      }
    ],
    "description": "",
    "optional": true
  },
  {
    "fieldType": "TEXT",
    "label": "Role ARN",
    "fieldName": "roleArn",
    "value": "",
    "dependsOn": [
      {
        "fieldName": "authMode",
        "value": "ASSUME_ROLE",
        "optional": false
      }
    ],
    "description": "",
    "optional": false
  },
  {
    "fieldType": "PASSWORD",
    "label": "External ID",
    "fieldName": "externalId",
    "value": "",
    "dependsOn": [
      {
        "fieldName": "authMode",
        "value": "ASSUME_ROLE",
        "optional": false
      }
    ],
    "description": "",
    "optional": false
  }
]

ayush@Ayushs-MacBook-Pro ~ % conductor integration get AWSLambda-ConductorRole-e2e
{
  "name": "AWSLambda-ConductorRole-e2e",
  "type": "aws-lambda",
  "category": "MCP",
  "enabled": true,
  "description": "End-to-end Lambda tests using the worker identity in the test account",
  "configuredFields": [
    "authMode"
  ]
}

ayush@Ayushs-MacBook-Pro ~ % conductor integration create <<'JSON'
{
  "name": "lambda-cli-demo",
  "type": "aws-lambda",
  "category": "MCP",
  "enabled": true,
  "description": "CLI walkthrough",
  "configuration": { "authMode": "CONDUCTOR_ROLE" }
}
JSON
{
  "name": "lambda-cli-demo",
  "type": "aws-lambda"
}

ayush@Ayushs-MacBook-Pro ~ % conductor integration delete lambda-cli-demo
Are you sure you want to delete integration 'lambda-cli-demo'? (y/N): y
Deleted connection lambda-cli-demo

ayush@Ayushs-MacBook-Pro ~ % conductor integration get lambda-cli-demo   
Error: No such integration provider lambda-cli-demo (status 404)

Testing:

https://drive.google.com/file/d/1545uUDcU8sbC_XytMkD4EMh4sbChxsXK/view?usp=sharing

@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch 3 times, most recently from c784c06 to 053a576 Compare November 23, 2026 10:51
@ayushdubey003
ayushdubey003 marked this pull request as ready for review November 23, 2026 11:02
@ayushdubey003 ayushdubey003 reopened this Nov 23, 2026
@v1r3n

v1r3n commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@ayushdubey003 can we do this?

  1. in the configuration json when creating integration, can we support reading env variables? so that I can set the api keys as env variables and don't have to pass as is to claude which would expose it to the history retention etc for claude.

@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch from 053a576 to 96adf02 Compare November 24, 2026 18:56

@propp-orkes propp-orkes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work. Several things here are done carefully:

  • update does GET → merge → POST, which is right: I checked the server, and POST /integrations/provider/{name} replaces configuration, description, enabled and category wholesale.
  • The resolved config stays in memory and the transport never logs bodies.
  • $.env.X resolves only in the caller's patch, never in stored values.
  • UseNumber keeps numeric precision.
  • Tests assert that no secret reaches output or errors.

Some things to sort out before merge:

1. create doesn't require or default category. The server stores whatever arrives (provider.setCategory(config.getCategory())), so a payload without category saves a connection with a null category. A later conductor integration update on it then fails with "incomplete saved integration". Suggest: when category is omitted, fetch /integrations/def/{type} and use its category. That also rejects an unknown type before the write.

2. Create/update hide the server's error message. You get integration creation failed (HTTP 400) and nothing else. Configuration keys are an enum on the server (Map<ConfigKey, Object>), so a misspelled field name should fail with a 400 like this and no hint about which field. I understand this is there to avoid echoing secrets. Could we instead show the server message with any resolved $.env values replaced by ***? The existing "no secret in output" test would still cover it.

3. The Enterprise-gate message.

  • The existing Orkes-only commands (secret, webhook, api-gateway) say Not supported in OSS Conductor. CONTEXT.md says to use "Orkes Conductor" and to keep "Enterprise" for the literal server-type value only.
  • The check is the local --server-type / CONDUCTOR_SERVER_TYPE (default OSS), not the server, so the usual cause is a profile that was never set to Enterprise.
  • Suggest reusing the shared wording and adding the fix: … set --server-type Enterprise or CONDUCTOR_SERVER_TYPE=Enterprise.
  • conductor-skills#28 matches this exact string, so change both together.

4. $.env can read any variable, including the CLI's own credentials. The feature exists to keep secrets out of an agent's view. But a JSON payload an agent writes (or a prompt-injected one) could set "api_key": "$.env.CONDUCTOR_AUTH_SECRET" on a connection whose endpoint it controls, and the worker would then send the value there. At minimum, refuse CONDUCTOR_*. An opt-in allowlist (--allow-env NAME) would be stronger. This is a judgement call, but cheap to add now.

5. Output conventions and test coverage.

  • The other list commands print a table by default and offer --json / --csv (AddOutputFlags / GetOutputFormat). Here, output is always JSON and --json only pretty-prints. Either adopt the shared helpers or rename the flag to --pretty.
  • A declined delete exits silently, while secret delete prints "Deletion cancelled".
  • Tests cover only create / update and the gate. The httptest setup you already have makes the rest quick to add:
    • types (enabled + --category filter)
    • list --type
    • get (lists only non-empty field names, never values)
    • operations (--type vs connection, the "one of" argument check, unknown --name)
    • delete with --yes

@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch from 96adf02 to 9fe5923 Compare November 25, 2026 16:02
@ayushdubey003

Copy link
Copy Markdown
Author
  1. $.env can read any variable, including the CLI's own credentials. The feature exists to keep secrets out of an agent's view. But a JSON payload an agent writes (or a prompt-injected one) could set "api_key": "$.env.CONDUCTOR_AUTH_SECRET" on a connection whose endpoint it controls, and the worker would then send the value there. At minimum, refuse CONDUCTOR_*. An opt-in allowlist (--allow-env NAME) would be stronger. This is a judgement call, but cheap to add now.

Addressed all comments except this one. We can have reserved keywords like CONDUCTOR_KEY, CONDUCTOR_AUTH_SECRET but imo it does not make sense to refuse CONDUCTOR_* because I can define keys with prefixes like CONDUCTOR_ for my local to segregate.

@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch from 9fe5923 to f91a0d0 Compare November 25, 2026 16:13

@v1r3n v1r3n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

Comment thread cmd/integration.go Resolved
Comment thread cmd/integration.go Resolved
Comment thread cmd/integration.go Resolved
@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch from f91a0d0 to 22fb10e Compare November 27, 2026 07:50
@ayushdubey003
ayushdubey003 force-pushed the feat/connected-apps-discovery branch from 22fb10e to a2ed68d Compare November 27, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants