Skip to content

Add archive snapshots option and separate replay command#2173

Open
anambl wants to merge 3 commits intopercy:masterfrom
anambl:upload-snapshots-cli
Open

Add archive snapshots option and separate replay command#2173
anambl wants to merge 3 commits intopercy:masterfrom
anambl:upload-snapshots-cli

Conversation

@anambl
Copy link
Copy Markdown

@anambl anambl commented Apr 7, 2026

No description provided.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions Bot added the 🍞 stale Closed due to inactivity label Apr 28, 2026
@prklm10 prklm10 marked this pull request as ready for review May 5, 2026 05:25
@prklm10 prklm10 requested a review from a team as a code owner May 5, 2026 05:25
@prklm10 prklm10 removed the 🍞 stale Closed due to inactivity label May 5, 2026
// Validates the archive dir to prevent path traversal attacks.
// Returns the resolved absolute path.
export function validateArchiveDir(archiveDir) {
let resolved = path.resolve(archiveDir);
fs.mkdirSync(archiveDir, { recursive: true });

let filename = sanitizeFilename(snapshot.name);
let filepath = path.join(archiveDir, `${filename}.json`);
for (let entry of entries) {
if (!entry.endsWith('.json')) continue;

let filepath = path.join(resolved, entry);
for (let entry of entries) {
if (!entry.endsWith('.json')) continue;

let filepath = path.join(resolved, entry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants