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,
+3 -3
View File
@@ -2,7 +2,7 @@ import type { UserWsKeyPair } from "../keys/types";
import type { WsTag } from "../tags/types";
export type EncryptedSecret = {
_id: string;
id: string;
version: number;
workspace: string;
type: "shared" | "personal";
@@ -26,7 +26,7 @@ export type EncryptedSecret = {
};
export type DecryptedSecret = {
_id: string;
id: string;
version: number;
key: string;
value: string;
@@ -45,7 +45,7 @@ export type DecryptedSecret = {
};
export type EncryptedSecretVersion = {
_id: string;
id: string;
secret: string;
version: number;
workspace: string;