noz-cli/NozCli/Commands
kryptomrx b971d45e78 security: slug validation, path traversal protection, temp file cleanup
- SlugGuard.IsValid() rejects slugs with path traversal (../, //, uppercase)
- SlugGuard.ToSafePath() ensures sync writes stay within target directory
- PushCommand: skip files with invalid slugs before upload
- SyncCommand: validate server-returned slugs before writing to disk
- EditCommand/NewCommand: try/finally guarantees temp file deletion on crash
- NotesCache: set 600 permissions on cache file (metadata only, no token)
- NewCommand: remove dead Sha256 method (HashHelper already covers this)
2026-05-16 23:36:40 +02:00
..
CatCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
CdCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
ClearCommand.cs feat(commands): clear, config, version 2026-05-16 23:21:06 +02:00
ConfigCommand.cs feat(commands): clear, config, version 2026-05-16 23:21:06 +02:00
EditCommand.cs security: slug validation, path traversal protection, temp file cleanup 2026-05-16 23:36:40 +02:00
HelpCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
ICommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
LsCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
NewCommand.cs security: slug validation, path traversal protection, temp file cleanup 2026-05-16 23:36:40 +02:00
PushCommand.cs security: slug validation, path traversal protection, temp file cleanup 2026-05-16 23:36:40 +02:00
RmCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
StatusCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
SyncCommand.cs security: slug validation, path traversal protection, temp file cleanup 2026-05-16 23:36:40 +02:00
TreeCommand.cs feat(commands): ls with detailed view, tree hierarchy, CancellationToken support 2026-05-16 23:20:49 +02:00
VersionCommand.cs feat(commands): clear, config, version 2026-05-16 23:21:06 +02:00