fix(auth): address Task 13 deployment review findings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user