Repository navigation
Conversation
flozano
force-pushed
the
feat/oci-vault-provider
branch
from
November 5, 2026 19:55
10d7c38 to
a040288
Compare
Author
|
Live testing against an OCI tenancy is done. Creating the provider, Test Connection, autocomplete and a deploy with references all work in a local instance, using a user that only has the two documented policy statements. Details are in the testing section. Ready for review whenever you have a moment. |
Adds Oracle Cloud Infrastructure Vault as a vault provider alongside AWS Secrets Manager, AWS Parameter Store and the others. - New `oci` provider type with a zod-validated config (region, tenancy, user, API key fingerprint, PEM private key with optional passphrase, vault and compartment OCIDs) and a migration adding the enum value - Plain `fetch` client (no new dependency) that signs requests with OCI's HTTP Signature scheme via node:crypto: getByName for reads, the secrets listing for the connection test and the env editor autocomplete - Refs are `name[:field]`, the field selector extracting a key from JSON secrets like the AWS provider - Private key and passphrase masked in API responses like every other provider credential - Settings -> Secrets form with reference format and IAM policy help Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
flozano
force-pushed
the
feat/oci-vault-provider
branch
from
November 21, 2026 14:52
121e13b to
c67d0d8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5713.
What
Adds OCI Vault (Oracle Cloud Infrastructure) as a secrets provider next to AWS Secrets Manager and AWS Parameter Store. References use the same syntax as the AWS Secrets Manager provider:
How the AWS providers map to OCI
OCI has a single secrets service (Vault secrets) and no Parameter Store equivalent, so this adds one provider type,
oci, rather than one per AWS provider./prod/app/x)A-Z a-z 0-9 . _ -); compartments are the groupingname:fieldfor JSON secrets:, so parsing is unambiguousAWSCURRENTCURRENTstage (the default)regionregion(e.g.eu-madrid-1)endpointsecretsmanager:GetSecretValue/ListSecrets,kms:Decryptread secret-bundles/inspect secrets; decryption is part of readingThe vault type (Default vs Virtual Private) and the master key's protection mode (software vs HSM) don't change the API used to read secrets. The config doesn't take a key OCID at all: the key only matters when a secret is created, which Dokploy never does. A Default vault with a software-protected key is the free setup.
Design
oci-common) pulls innode-fetch@2,isomorphic-fetch,opossum,jsonwebtoken,sshpk,http-signatureandes6-promise, and its default retry policy would stretch a failing deploy far pastVAULT_REQUEST_TIMEOUT_MS. The signer is a shortnode:cryptofunction implementing OCI's HTTP Signature scheme (RSA-SHA256 overx-date (request-target) host, pluscontent-type content-length x-content-sha256for POST). I checked it againstoci-common@2.143.0'sDefaultRequestSigner: for the same key and date, both requests produce a byte-identical signature.fetchsetshostandcontent-lengthitself and ignores explicit values, so those two are signed with the valuesfetchsends but never set.POST https://secrets.vaults.{region}.oci.oraclecloud.com/20190301/secretbundles/actions/getByName?secretName=…&vaultId=…, one call per distinct secret, in parallel.GET https://vaults.{region}.oci.oraclecloud.com/20180608/secrets?compartmentId=…&vaultId=…&lifecycleState=ACTIVE, paged withopc-next-page, capped at 500 names like the other providers.Authorizationheader'skeyId. All of them are checked by the zod schema, so a config value can't change where or how a request is sent. The compartment field accepts a tenancy OCID, because that is the root compartment's OCID.404 NotAuthorizedOrNotFoundboth for a missing secret and for a missing permission, so the message names both and the policy verb needed.401points at the tenancy, user, fingerprint, key and server clock.opc-request-idare included for support cases.401.TextDecoder's default). It marks the encoding rather than being part of the value, andJSON.parsewould reject it, breakingname:fieldreferences.privateKeyandpassphraseare masked in API responses and kept on update, like other providers' credentials.simple-iconsno longer ships Oracle's logo, so the icon is a plain capsule outline in Oracle red. Happy to swap it for an official mark.IAM setup
The second statement is needed only for Test Connection and the env editor's autocomplete. References still resolve with only the first, the same split as the Parameter Store provider's
ssm:DescribeParameters.Migration
0206_oci_vault_provider.sqladds the enum value.Not in this PR
oc1(oraclecloud.com)Testing
__test__/env/vault.test.ts:404and401messages404hint, and pagingresolveVaultReferencesoci-common@2.143.0(byte-identical for the POST and the GET); fingerprints cross-checked againstopenssl md5 -ctsc --noEmitpasses forpackages/serverandapps/dokploy. Biome is clean on the changed lines; the twonoLabelWithoutControlfindings inhandle-vault-provider.tsxare on existing lines.canary: 1910 passed. The 7 failures (deploy/application.real.test.ts,logs-and-metrics/provider-fetch.test.ts) fail the same way oncanaryin this environment: real git and Docker builds, and undici on Node 26.secret-nameandsecret-name:fieldreferences. The deployed service gets the resolved values, including fields of a JSON secret saved with a leading BOM.🤖 Generated with Claude Code
The PR appears safe to merge, with a non-blocking fix recommended to preserve leading characters in secret values.
Summary
Adds OCI Vault as a secrets provider without adding a dependency.
Acknowledged scope:
flozanoexplicitly deferred the existingwhitelabelingConfigdefault mismatch to a separate fix and kept it out of this migration.Reviews (1) · Last reviewed commit: "feat(vault): add OCI Vault secrets provi..." · Reviewed by Greptile