mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 08:29:28 +00:00
greptile reviews
This commit is contained in:
@@ -177,11 +177,13 @@ export const pamResourceServiceFactory = ({
|
||||
updateDoc.encryptedRotationAccountCredentials = null;
|
||||
|
||||
if (rotationAccountCredentials) {
|
||||
const decryptedConnectionDetails = await decryptResourceConnectionDetails({
|
||||
encryptedConnectionDetails: resource.encryptedConnectionDetails,
|
||||
projectId: resource.projectId,
|
||||
kmsService
|
||||
});
|
||||
const decryptedConnectionDetails =
|
||||
connectionDetails ??
|
||||
(await decryptResourceConnectionDetails({
|
||||
encryptedConnectionDetails: resource.encryptedConnectionDetails,
|
||||
projectId: resource.projectId,
|
||||
kmsService
|
||||
}));
|
||||
|
||||
const factory = PAM_RESOURCE_FACTORY_MAP[resource.resourceType as PamResource](
|
||||
resource.resourceType as PamResource,
|
||||
|
||||
@@ -16,6 +16,6 @@ export const BaseSqlResourceConnectionDetailsSchema = z.object({
|
||||
|
||||
// Accounts
|
||||
export const BaseSqlAccountCredentialsSchema = z.object({
|
||||
username: z.string().trim().min(1),
|
||||
password: z.string().trim().min(1)
|
||||
username: z.string().trim().min(1).max(63),
|
||||
password: z.string().trim().min(1).max(256)
|
||||
});
|
||||
|
||||
@@ -43,7 +43,7 @@ export const pamAccountRotationServiceFactory = ({
|
||||
{
|
||||
batchSize: 1,
|
||||
workerCount: 1,
|
||||
pollingIntervalSeconds: 1 // 5 * 60
|
||||
pollingIntervalSeconds: 5 * 60
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user