Skip to content

Commit

Permalink
[Connectors] Log set permissions body (#9183)
Browse files Browse the repository at this point in the history
Description
---
We often need to investigate what was synced or not; for that,
auditing the permissions setting request is important

We log them. Permissions change are not that common, so no spam
expected

Risk
---
na

Deploy
---
front
  • Loading branch information
philipperolet authored Dec 6, 2024
1 parent 618ba52 commit 56114fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/src/front/lib/connectors_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ export class ConnectorsAPI {
permission: ConnectorPermission;
}[];
}): Promise<ConnectorsAPIResponse<void>> {
// Connector permission changes are logged so user actions can be traced
this._logger.info(
{
connectorId,
resources,
},
"Setting connector permissions"
);

const res = await this._fetchWithError(
`${this._url}/connectors/${encodeURIComponent(connectorId)}/permissions`,
{
Expand Down

0 comments on commit 56114fc

Please sign in to comment.