feat(infisical-pg): auth injection completed and validation in password router

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:22 +05:30
parent fcfd6b3fb2
commit f3b37de3f3
196 changed files with 1871 additions and 624 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ export const decryptSecrets = (
});
const decryptedSecret: DecryptedSecret = {
_id: encSecret._id,
id: encSecret.id,
env: encSecret.environment,
key: secretKey,
value: secretValue,
@@ -79,7 +79,7 @@ export const decryptSecrets = (
if (encSecret.type === "personal") {
personalSecrets[decryptedSecret.key] = {
id: encSecret._id,
id: encSecret.id,
value: secretValue
};
} else {
@@ -225,7 +225,7 @@ export const useGetSecretVersion = (dto: GetSecretVersionsDTO) =>
return data
.map((el) => ({
createdAt: el.createdAt,
id: el._id,
id: el.id,
value: decryptSymmetric({
ciphertext: el.secretValueCiphertext,
iv: el.secretValueIV,