mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 14:27:59 +00:00
Update some username stuff
This commit is contained in:
+2
-2
@@ -8,10 +8,10 @@ export const ORACLEDB_CREDENTIALS_ROTATION_LIST_OPTION: TSecretRotationV2ListIte
|
|||||||
connection: AppConnection.OracleDB,
|
connection: AppConnection.OracleDB,
|
||||||
template: {
|
template: {
|
||||||
createUserStatement: `-- create user
|
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
|
||||||
GRANT ALL PRIVILEGES TO "infisical_user";`,
|
GRANT ALL PRIVILEGES TO infisical_user;`,
|
||||||
secretsMapping: {
|
secretsMapping: {
|
||||||
username: "ORACLEDB_USERNAME",
|
username: "ORACLEDB_USERNAME",
|
||||||
password: "ORACLEDB_PASSWORD"
|
password: "ORACLEDB_PASSWORD"
|
||||||
|
|||||||
@@ -15,14 +15,18 @@ description: "Learn how to automatically rotate Oracle Database credentials."
|
|||||||
An example creation statement might look like:
|
An example creation statement might look like:
|
||||||
```SQL
|
```SQL
|
||||||
-- create user roles
|
-- create user roles
|
||||||
CREATE USER "infisical_user_1" IDENTIFIED BY "temporary_password";
|
CREATE USER infisical_user_1 IDENTIFIED BY "temporary_password";
|
||||||
CREATE USER "infisical_user_2" IDENTIFIED BY "temporary_password";
|
CREATE USER infisical_user_2 IDENTIFIED BY "temporary_password";
|
||||||
|
|
||||||
-- grant necessary privileges
|
-- grant necessary privileges
|
||||||
GRANT ALL PRIVILEGES TO "infisical_user_1";
|
GRANT ALL PRIVILEGES TO infisical_user_1;
|
||||||
GRANT ALL PRIVILEGES TO "infisical_user_2";
|
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>
|
<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).
|
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>
|
</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 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.
|
- **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**.
|
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
|
"minutes": 0
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"username1": "infisical_user_1",
|
"username1": "INFISICAL_USER_1",
|
||||||
"username2": "infisical_user_2"
|
"username2": "INFISICAL_USER_2"
|
||||||
},
|
},
|
||||||
"secretsMapping": {
|
"secretsMapping": {
|
||||||
"username": "ORACLEDB_USERNAME",
|
"username": "ORACLEDB_USERNAME",
|
||||||
@@ -149,8 +157,8 @@ description: "Learn how to automatically rotate Oracle Database credentials."
|
|||||||
"lastRotationMessage": null,
|
"lastRotationMessage": null,
|
||||||
"type": "oracledb-credentials",
|
"type": "oracledb-credentials",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"username1": "infisical_user_1",
|
"username1": "INFISICAL_USER_1",
|
||||||
"username2": "infisical_user_2"
|
"username2": "INFISICAL_USER_2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 764 KiB After Width: | Height: | Size: 712 KiB |
@@ -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.
|
Infisical recommends creating a designated user in your Oracle Database for your connection.
|
||||||
```SQL
|
```SQL
|
||||||
-- create user
|
-- 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>
|
||||||
<Step title="Grant Relevant Permissions">
|
<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.
|
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:
|
For Secret Rotations, your Infisical user will require the ability to alter other users' passwords:
|
||||||
```SQL
|
```SQL
|
||||||
-- enable permissions to alter login credentials
|
-- enable permissions to alter login credentials
|
||||||
GRANT ALTER USER TO "infisical";
|
GRANT ALTER USER TO infisical;
|
||||||
```
|
```
|
||||||
</Tab>
|
</Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|||||||
+19
-2
@@ -4,6 +4,7 @@ import { TSecretRotationV2Form } from "@app/components/secret-rotations-v2/forms
|
|||||||
import { FormControl, Input } from "@app/components/v2";
|
import { FormControl, Input } from "@app/components/v2";
|
||||||
import { NoticeBannerV2 } from "@app/components/v2/NoticeBannerV2/NoticeBannerV2";
|
import { NoticeBannerV2 } from "@app/components/v2/NoticeBannerV2/NoticeBannerV2";
|
||||||
import { SecretRotation, useSecretRotationV2Option } from "@app/hooks/api/secretRotationsV2";
|
import { SecretRotation, useSecretRotationV2Option } from "@app/hooks/api/secretRotationsV2";
|
||||||
|
import { AppConnection } from "@app/hooks/api/appConnections/enums";
|
||||||
|
|
||||||
export const SqlCredentialsRotationParametersFields = () => {
|
export const SqlCredentialsRotationParametersFields = () => {
|
||||||
const { control, watch } = useFormContext<
|
const { control, watch } = useFormContext<
|
||||||
@@ -25,7 +26,15 @@ export const SqlCredentialsRotationParametersFields = () => {
|
|||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
label="Database Username 1"
|
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>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -38,7 +47,15 @@ export const SqlCredentialsRotationParametersFields = () => {
|
|||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
label="Database Username 2"
|
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>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
control={control}
|
control={control}
|
||||||
|
|||||||
Reference in New Issue
Block a user