Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

address reviews

x032205ceffc78b0e37
diff --git a/backend/src/ee/routes/v1/pam-domain-routers/pam-domain-router.ts b/backend/src/ee/routes/v1/pam-domain-routers/pam-domain-router.ts
index 6b88bd8d93..f88eb9fc09 100644
--- a/backend/src/ee/routes/v1/pam-domain-routers/pam-domain-router.ts
+++ b/backend/src/ee/routes/v1/pam-domain-routers/pam-domain-router.ts
@@ -72,7 +72,8 @@ export const registerPamDomainRouter = async (server: FastifyZodProvider) => {
},
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
- const { projectId, search, limit, offset, orderBy, orderDirection, filterDomainTypes } = req.query;
+ const { projectId, search, limit, offset, orderBy, orderDirection, filterDomainTypes, discoveryFingerprint } =
+ req.query;
const { domains, totalCount } = await server.services.pamDomain.list({
projectId,
@@ -85,7 +86,8 @@ export const registerPamDomainRouter = async (server: FastifyZodProvider) => {
actor: req.permission.type,
actorId: req.permission.id,
actorAuthMethod: req.permission.authMethod,
- actorOrgId: req.permission.orgId
+ actorOrgId: req.permission.orgId,
+ discoveryFingerprint
});
await server.services.auditLog.createAuditLog({
diff --git a/backend/src/ee/services/pam-account/pam-account-dal.ts b/backend/src/ee/services/pam-account/pam-account-dal.ts
index 491cec74fe..03b5fe3ec0 100644
--- a/backend/src/ee/services/pam-account/pam-account-dal.ts
+++ b/backend/src/ee/services/pam-account/pam-account-dal.ts
@@ -105,11 +105,7 @@ export const pamAccountDALFactory = (db: TDbClient) => {
.as("resourceEncryptedRotationAccountCredentials"),
// domain (may be null for resource accounts)
db.ref("name").withSchema(TableName.PamDomain).as("domainName"),
- db.ref("domainType").withSchema(TableName.PamDomain),
- db
- .ref("encryptedRotationAccountCredentials")
- .withSchema(TableName.PamDomain)
- .as("domainEncryptedRotationAccountCredentials")
+ db.ref("domainType").withSchema(TableName.PamDomain)
);
const direction = orderDirection === OrderByDirection.ASC ? "ASC" : "DESC";
@@ -144,8 +140,7 @@ export const pamAccountDALFactory = (db: TDbClient) => {
? {
id: dId,
name: r.domainName as string,
- domainType: r.domainType as string,
- encryptedRotationAccountCredentials: r.domainEncryptedRotationAccountCredentials as Buffer | null
+ domainType: r.domainType as string
}
: null
};
@@ -175,11 +170,7 @@ export const pamAccountDALFactory = (db: TDbClient) => {
.as("resourceEncryptedRotationAccountCredentials"),
// domain (may be null for resource accounts)
db.ref("name").withSchema(TableName.PamDomain).as("domainName"),
- db.ref("domainType").withSchema(TableName.PamDomain),
- db
- .ref("encryptedRotationAccountCredentials")
- .withSchema(TableName.PamDomain)
- .as("domainEncryptedRotationAccountCredentials")
+ db.ref("domainType").withSchema(TableName.PamDomain)
)
.first();
@@ -193,7 +184,6 @@ export const pamAccountDALFactory = (db: TDbClient) => {
resourceEncryptedRotationAccountCredentials,
domainName,
domainType,
- domainEncryptedRotationAccountCredentials,
...account
} = result;
@@ -213,8 +203,7 @@ export const pamAccountDALFactory = (db: TDbClient) => {
? {
id: domainId,
name: domainName,
- domainType,
- encryptedRotationAccountCredentials: domainEncryptedRotationAccountCredentials
+ domainType
}
: null
};
diff --git a/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts b/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts
index e97d89e892..20110e89e9 100644
--- a/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts
+++ b/backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts
@@ -572,7 +572,8 @@ const upsertWindowsServerResource = async (
gatewayId,
encryptedConnectionDetails,
encryptedResourceMetadata,
- domainId
+ domainId,
+ discoveryFingerprint: fingerprint
},
tx
);