mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
added default case to switch
This commit is contained in:
@@ -484,24 +484,28 @@ export const pamAccountServiceFactory = ({
|
|||||||
|
|
||||||
switch (resourceType) {
|
switch (resourceType) {
|
||||||
case PamResource.Postgres:
|
case PamResource.Postgres:
|
||||||
case PamResource.MySQL: {
|
case PamResource.MySQL:
|
||||||
const connectionCredentials = await decryptResourceConnectionDetails({
|
{
|
||||||
encryptedConnectionDetails: resource.encryptedConnectionDetails,
|
const connectionCredentials = await decryptResourceConnectionDetails({
|
||||||
kmsService,
|
encryptedConnectionDetails: resource.encryptedConnectionDetails,
|
||||||
projectId: account.projectId
|
kmsService,
|
||||||
});
|
projectId: account.projectId
|
||||||
|
});
|
||||||
|
|
||||||
const credentials = await decryptAccountCredentials({
|
const credentials = await decryptAccountCredentials({
|
||||||
encryptedCredentials: account.encryptedCredentials,
|
encryptedCredentials: account.encryptedCredentials,
|
||||||
kmsService,
|
kmsService,
|
||||||
projectId: account.projectId
|
projectId: account.projectId
|
||||||
});
|
});
|
||||||
|
|
||||||
metadata = {
|
metadata = {
|
||||||
username: credentials.username,
|
username: credentials.username,
|
||||||
database: connectionCredentials.database
|
database: connectionCredentials.database
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user