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
Update some username stuff
x032205265b25a4c602
diff --git a/backend/src/ee/services/secret-rotation-v2/oracledb-credentials/oracledb-credentials-rotation-constants.ts b/backend/src/ee/services/secret-rotation-v2/oracledb-credentials/oracledb-credentials-rotation-constants.tsindex 9b74369896..74957c693b 100644--- a/backend/src/ee/services/secret-rotation-v2/oracledb-credentials/oracledb-credentials-rotation-constants.ts+++ b/backend/src/ee/services/secret-rotation-v2/oracledb-credentials/oracledb-credentials-rotation-constants.ts@@ -8,10 +8,10 @@ export const ORACLEDB_CREDENTIALS_ROTATION_LIST_OPTION: TSecretRotationV2ListIteconnection: AppConnection.OracleDB,template: {createUserStatement: `-- create user-CREATE USER "infisical_user" IDENTIFIED BY "temporary_password";+CREATE USER infisical_user IDENTIFIED BY "temporary_password";-- grant all privileges-GRANT ALL PRIVILEGES TO "infisical_user";`,+GRANT ALL PRIVILEGES TO infisical_user;`,secretsMapping: {username: "ORACLEDB_USERNAME",password: "ORACLEDB_PASSWORD"diff --git a/docs/documentation/platform/secret-rotation/oracledb-credentials.mdx b/docs/documentation/platform/secret-rotation/oracledb-credentials.mdxindex d5004f0254..b9ba428410 100644--- a/docs/documentation/platform/secret-rotation/oracledb-credentials.mdx+++ b/docs/documentation/platform/secret-rotation/oracledb-credentials.mdx@@ -15,14 +15,18 @@ description: "Learn how to automatically rotate Oracle Database credentials."An example creation statement might look like:```SQL-- create user roles- CREATE USER "infisical_user_1" IDENTIFIED BY "temporary_password";- CREATE USER "infisical_user_2" IDENTIFIED BY "temporary_password";+ CREATE USER infisical_user_1 IDENTIFIED BY "temporary_password";+ CREATE USER infisical_user_2 IDENTIFIED BY "temporary_password";-- grant necessary privileges- GRANT ALL PRIVILEGES TO "infisical_user_1";- GRANT ALL PRIVILEGES TO "infisical_user_2";+ GRANT ALL PRIVILEGES TO infisical_user_1;+ GRANT ALL PRIVILEGES TO infisical_user_2;```+ <Note>+ Username must either be ALL UPPERCASE or not be surrounded by "quotes". Values not surrounded by quotes get automatically transformed to uppercase by Oracle Database.+ </Note>+<Tip>To learn more about the Oracle Database permission system, please visit their [documentation](https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/configuring-privilege-and-role-authorization.html).</Tip>@@ -52,6 +56,10 @@ description: "Learn how to automatically rotate Oracle Database credentials."- **Database Username 1** - the username of the first user that will be used for rotation.- **Database Username 2** - the username of the second user that will be used for rotation.+ <Note>+ Ensure that the usernames are UPPERCASE if they were created without "quotes".+ </Note>+5. Specify the secret names that the active credentials should be mapped to. Then click **Next**.@@ -93,8 +101,8 @@ description: "Learn how to automatically rotate Oracle Database credentials.""minutes": 0},"parameters": {- "username1": "infisical_user_1",- "username2": "infisical_user_2"+ "username1": "INFISICAL_USER_1",+ "username2": "INFISICAL_USER_2"},"secretsMapping": {"username": "ORACLEDB_USERNAME",@@ -149,8 +157,8 @@ description: "Learn how to automatically rotate Oracle Database credentials.""lastRotationMessage": null,"type": "oracledb-credentials","parameters": {- "username1": "infisical_user_1",- "username2": "infisical_user_2"+ "username1": "INFISICAL_USER_1",+ "username2": "INFISICAL_USER_2"}}}diff --git a/docs/images/secret-rotations-v2/oracledb-credentials/oracledb-credentials-parameters.png b/docs/images/secret-rotations-v2/oracledb-credentials/oracledb-credentials-parameters.pngindex 9f6c3539c0..5dcc68c322 100644Binary files a/docs/images/secret-rotations-v2/oracledb-credentials/oracledb-credentials-parameters.png and b/docs/images/secret-rotations-v2/oracledb-credentials/oracledb-credentials-parameters.png differdiff --git a/docs/integrations/app-connections/oracledb.mdx b/docs/integrations/app-connections/oracledb.mdxindex dd1db0ab4c..8cab6371b7 100644--- a/docs/integrations/app-connections/oracledb.mdx+++ b/docs/integrations/app-connections/oracledb.mdx@@ -19,8 +19,14 @@ Infisical supports connecting to OracleDB using a database user.Infisical recommends creating a designated user in your Oracle Database for your connection.```SQL-- create user- CREATE USER "infisical" IDENTIFIED BY "my-password";+ CREATE USER infisical IDENTIFIED BY "my-password";++ -- grant create session privileges+ GRANT CREATE SESSION TO infisical;```+ <Note>+ Username must either be ALL UPPERCASE or not be surrounded by "quotes". Values not surrounded by quotes get automatically transformed to uppercase by Oracle Database.+ </Note></Step><Step title="Grant Relevant Permissions">Depending on how you intend to use your OracleDB connection, you'll need to grant one or more of the following permissions.@@ -32,7 +38,7 @@ Infisical supports connecting to OracleDB using a database user.For Secret Rotations, your Infisical user will require the ability to alter other users' passwords:```SQL-- enable permissions to alter login credentials- GRANT ALTER USER TO "infisical";+ GRANT ALTER USER TO infisical;```</Tab></Tabs>diff --git a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/shared/SqlCredentialsRotationParametersFields.tsx b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/shared/SqlCredentialsRotationParametersFields.tsxindex aa317d6955..a36162157d 100644--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/shared/SqlCredentialsRotationParametersFields.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/shared/SqlCredentialsRotationParametersFields.tsx@@ -4,6 +4,7 @@ import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/formsimport { FormControl, Input } from "@app/components/v2";import { NoticeBannerV2 } from "@app/components/v2/NoticeBannerV2/NoticeBannerV2";import { SecretRotation, useSecretRotationV2Option } from "@app/hooks/api/secretRotationsV2";+import { AppConnection } from "@app/hooks/api/appConnections/enums";export const SqlCredentialsRotationParametersFields = () => {const { control, watch } = useFormContext<@@ -25,7 +26,15 @@ export const SqlCredentialsRotationParametersFields = () => {errorText={error?.message}label="Database Username 1">- <Input value={value} onChange={onChange} placeholder="infiscal_user_1" />+ <Input+ value={value}+ onChange={onChange}+ placeholder={+ rotationOption.connection === AppConnection.OracleDB+ ? "INFISICAL_USER_1"+ : "infisical_user_1"+ }+ /></FormControl>)}control={control}@@ -38,7 +47,15 @@ export const SqlCredentialsRotationParametersFields = () => {errorText={error?.message}label="Database Username 2">- <Input value={value} onChange={onChange} placeholder="infiscal_user_2" />+ <Input+ value={value}+ onChange={onChange}+ placeholder={+ rotationOption.connection === AppConnection.OracleDB+ ? "INFISICAL_USER_1"+ : "infisical_user_1"+ }+ /></FormControl>)}control={control}