Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: removed tag name used in queries
=c109fbab3ec7
diff --git a/backend/src/ee/services/secret-approval-request/secret-approval-request-secret-dal.ts b/backend/src/ee/services/secret-approval-request/secret-approval-request-secret-dal.tsindex 0f24c75b36..7bd6a3fa04 100644--- a/backend/src/ee/services/secret-approval-request/secret-approval-request-secret-dal.ts+++ b/backend/src/ee/services/secret-approval-request/secret-approval-request-secret-dal.ts@@ -88,8 +88,7 @@ export const secretApprovalRequestSecretDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretApprovalRequestSecretTag).as("tagJnId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug")).select(db.ref("secretBlindIndex").withSchema(TableName.Secret).as("orgSecBlindIndex"),@@ -269,8 +268,7 @@ export const secretApprovalRequestSecretDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretApprovalRequestSecretTagV2).as("tagJnId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug")).select(db.ref("version").withSchema(TableName.SecretV2).as("orgSecVersion"),diff --git a/backend/src/ee/services/secret-snapshot/snapshot-dal.ts b/backend/src/ee/services/secret-snapshot/snapshot-dal.tsindex cee2292ad5..e4d341c1a8 100644--- a/backend/src/ee/services/secret-snapshot/snapshot-dal.ts+++ b/backend/src/ee/services/secret-snapshot/snapshot-dal.ts@@ -100,8 +100,7 @@ export const snapshotDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretVersionTag).as("tagVersionId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"));return sqlNestRelationships({data,@@ -132,9 +131,9 @@ export const snapshotDALFactory = (db: TDbClient) => {{key: "tagVersionId",label: "tags" as const,- mapper: ({ tagId: id, tagName: name, tagSlug: slug, tagColor: color, tagVersionId: vId }) => ({+ mapper: ({ tagId: id, tagSlug: slug, tagColor: color, tagVersionId: vId }) => ({id,- name,+ name: slug,slug,color,vId@@ -195,8 +194,7 @@ export const snapshotDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretVersionV2Tag).as("tagVersionId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"));return sqlNestRelationships({data,@@ -227,9 +225,9 @@ export const snapshotDALFactory = (db: TDbClient) => {{key: "tagVersionId",label: "tags" as const,- mapper: ({ tagId: id, tagName: name, tagSlug: slug, tagColor: color, tagVersionId: vId }) => ({+ mapper: ({ tagId: id, tagSlug: slug, tagColor: color, tagVersionId: vId }) => ({id,- name,+ name: slug,slug,color,vId@@ -353,8 +351,7 @@ export const snapshotDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretVersionTag).as("tagVersionId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"));const formated = sqlNestRelationships({@@ -508,8 +505,7 @@ export const snapshotDALFactory = (db: TDbClient) => {db.ref("id").withSchema(TableName.SecretTag).as("tagId"),db.ref("id").withSchema(TableName.SecretVersionV2Tag).as("tagVersionId"),db.ref("color").withSchema(TableName.SecretTag).as("tagColor"),- db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"),- db.ref("name").withSchema(TableName.SecretTag).as("tagName")+ db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"));const formated = sqlNestRelationships({diff --git a/backend/src/services/secret/secret-dal.ts b/backend/src/services/secret/secret-dal.tsindex c3d9eef73e..290a9597a1 100644--- a/backend/src/services/secret/secret-dal.ts+++ b/backend/src/services/secret/secret-dal.ts@@ -315,8 +315,7 @@ export const secretDALFactory = (db: TDbClient) => {.select(selectAllTableCols(TableName.Secret)).select(db.ref("id").withSchema(TableName.SecretTag).as("tagId")).select(db.ref("color").withSchema(TableName.SecretTag).as("tagColor"))- .select(db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"))- .select(db.ref("name").withSchema(TableName.SecretTag).as("tagName"));+ .select(db.ref("slug").withSchema(TableName.SecretTag).as("tagSlug"));const docs = sqlNestRelationships({data: rawDocs,key: "id",