Skip to content

Commit 5b9996e

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(oci): satisfy credential and CLI documentation checks
1 parent f454c8d commit 5b9996e

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

apps/docs/content/docs/cli/credentials.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ Update Credential (personal API key required)
113113
| `--auth-method <value>` | No | Provider authentication method. |
114114
| `--private-key <value>` | No | Write-only PEM private key. |
115115
| `--username <value>` | No | Provider run-as username. |
116+
| `--access-key-id <value>` | No | Write-only OCI Customer Secret Key access identifier. |
117+
| `--secret-access-key <value>` | No | Write-only OCI Customer Secret Key secret. |
118+
| `--namespace <value>` | No | OCI Object Storage tenancy namespace. |
119+
| `--region <value>` | No | Public commercial OCI region identifier. |
116120
| `--name <displayName>` | No | Alias for --display-name. |
117121

118122
</CommandTable>

apps/docs/content/docs/cli/reference.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ sim credentials update <credentialId> [options]
473473
| `--auth-method <value>` | No | Provider authentication method. |
474474
| `--private-key <value>` | No | Write-only PEM private key. |
475475
| `--username <value>` | No | Provider run-as username. |
476+
| `--access-key-id <value>` | No | Write-only OCI Customer Secret Key access identifier. |
477+
| `--secret-access-key <value>` | No | Write-only OCI Customer Secret Key secret. |
478+
| `--namespace <value>` | No | OCI Object Storage tenancy namespace. |
479+
| `--region <value>` | No | Public commercial OCI region identifier. |
476480
| `--name <displayName>` | No | Alias for --display-name. |
477481

478482
</CommandTable>

apps/sim/lib/credentials/oci-object-storage-service-account.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { db } from '@sim/db'
22
import { credential } from '@sim/db/schema'
3+
import { getErrorMessage } from '@sim/utils/errors'
34
import { eq } from 'drizzle-orm'
45
import { z } from 'zod'
56
import { decryptSecret } from '@/lib/core/security/encryption'
@@ -84,7 +85,7 @@ export function normalizeOciObjectStorageCredentialFields(
8485
}
8586
} catch (error) {
8687
throw new OciObjectStorageCredentialError(
87-
error instanceof Error ? error.message : 'Invalid OCI namespace or region'
88+
getErrorMessage(error, 'Invalid OCI namespace or region')
8889
)
8990
}
9091
}

0 commit comments

Comments
 (0)