Skip to content

Commit 07e8b04

Browse files
authored
fix: add maintenance warning for activity logs (#317)
Changes: - Add a maintenance warning for the activity logs on the CLI
2 parents b1c6858 + 3c24832 commit 07e8b04

File tree

4 files changed

+39
-28
lines changed

4 files changed

+39
-28
lines changed

documentation/pages/integrations/siem.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Send your audit logs to a SIEM
22

3+
<Callout type="warning">
4+
We are undergoing scheduled security maintenance for the Dashlane CLI’s audit logs commands. During this time, you
5+
will not be able to access the audit logs via the CLI. We will restore service in September 2025.
6+
</Callout>
7+
38
**Read full documentation on how to use the Dashlane CLI to send your audit logs to a SIEM, here: https://github.com/Dashlane/dashlane-audit-logs**
49

510
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dashlane/cli",
3-
"version": "6.2447.2",
3+
"version": "6.2526.0",
44
"description": "Manage your Dashlane vault through a CLI tool",
55
"type": "module",
66
"main": "dist/index.cjs",

src/cliVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CliVersion } from './types.js';
22

3-
export const CLI_VERSION: CliVersion = { major: 6, minor: 2447, patch: 2 };
3+
export const CLI_VERSION: CliVersion = { major: 6, minor: 2526, patch: 0 };
44
export const breakingChangesVersions: CliVersion[] = [];
55

66
export const cliVersionToString = (version: CliVersion): string => {

src/command-handlers/teamLogs.ts

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
1-
import { getAuditLogs } from '../endpoints/index.js';
2-
import { getTeamDeviceCredentials, jsonToCsv, epochTimestampToIso } from '../utils/index.js';
1+
// import { getAuditLogs } from '../endpoints/index.js';
2+
// import { getTeamDeviceCredentials, jsonToCsv, epochTimestampToIso } from '../utils/index.js';
33
import { logger } from '../logger.js';
44

5-
export const runTeamLogs = async (options: { start: string; end: string; csv: boolean; humanReadable: boolean }) => {
6-
const teamDeviceCredentials = getTeamDeviceCredentials();
7-
const { start, end } = options;
5+
export const runTeamLogs = () =>
6+
// options: { start: string; end: string; csv: boolean; humanReadable: boolean }
7+
{
8+
logger.error(
9+
'We are undergoing scheduled security maintenance for the Dashlane CLI’s audit logs commands. During this time, you will not be able to access the audit logs via the CLI. We will restore service in September 2025.'
10+
);
811

9-
let logs = await getAuditLogs({
10-
teamDeviceCredentials,
11-
queryParams: {
12-
startDateRangeUnixMs: parseInt(start),
13-
endDateRangeUnixMs: parseInt(end),
14-
},
15-
});
12+
// const teamDeviceCredentials = getTeamDeviceCredentials();
13+
// const { start, end } = options;
1614

17-
if (options.humanReadable) {
18-
logs = logs.map((log) => {
19-
return {
20-
...log,
21-
date_time_iso: epochTimestampToIso(log.date_time, true),
22-
};
23-
});
24-
}
15+
// let logs = await getAuditLogs({
16+
// teamDeviceCredentials,
17+
// queryParams: {
18+
// startDateRangeUnixMs: parseInt(start),
19+
// endDateRangeUnixMs: parseInt(end),
20+
// },
21+
// });
2522

26-
if (options.csv) {
27-
logger.content(jsonToCsv(logs));
28-
return;
29-
}
23+
// if (options.humanReadable) {
24+
// logs = logs.map((log) => {
25+
// return {
26+
// ...log,
27+
// date_time_iso: epochTimestampToIso(log.date_time, true),
28+
// };
29+
// });
30+
// }
3031

31-
logs.forEach((log) => logger.content(JSON.stringify(log)));
32-
};
32+
// if (options.csv) {
33+
// logger.content(jsonToCsv(logs));
34+
// return;
35+
// }
36+
37+
// logs.forEach((log) => logger.content(JSON.stringify(log)));
38+
};

0 commit comments

Comments
 (0)