fix(auth): address Task 13 deployment review findings

This commit is contained in:
2026-08-17 21:31:25 +02:00
parent 9558eaa508
commit 7e52df2702
22 changed files with 1279 additions and 82 deletions
+11 -7
View File
@@ -61,13 +61,15 @@ type PreflightDependencies struct {
// ArchiveEntryMetadata is safe restore metadata. It intentionally contains no archive payload.
type ArchiveEntryMetadata struct {
Path string
Kind string
Owner string
Size int64
SHA256 string
Mode uint32
Sensitive bool
Path string
Kind string
Owner string
LogicalName string
SourcePath string
Size int64
SHA256 string
Mode uint32
Sensitive bool
}
// PreflightResult is the validated, non-mutating input for a future restore transaction.
@@ -534,6 +536,8 @@ func reconcileArchiveEntries(ctx context.Context, manifest Manifest, entries map
requiredBytes += uint64(actual.metadata.Size)
actual.metadata.Kind = entry.Kind
actual.metadata.Owner = entry.Owner
actual.metadata.LogicalName = entry.LogicalName
actual.metadata.SourcePath = entry.SourcePath
actual.metadata.Sensitive = entry.Sensitive
metadata = append(metadata, actual.metadata)
delete(entries, entry.Path)