feat: clean up staging objects after processing and during reconciliation

This commit is contained in:
kk10
2026-11-16 11:48:30 +03:00
parent 19152e7d18
commit b35faa5af8
7 changed files with 270 additions and 66 deletions
+2
View File
@@ -76,6 +76,7 @@ type S3Config struct {
BootstrapSecretKeyFile string
MaxUploadBytes int
MaxImagePixels int
StagingRetention time.Duration
}
func (c S3Config) APIAccessKey() (string, error) {
@@ -138,6 +139,7 @@ func LoadS3() S3Config {
BootstrapSecretKeyFile: getEnv("S3_BOOTSTRAP_SECRET_ACCESS_KEY_FILE", "/run/secrets/s3_bootstrap_secret_access_key"),
MaxUploadBytes: getEnvPositiveInt("MAX_UPLOAD_BYTES", 10485760),
MaxImagePixels: getEnvPositiveInt("MAX_IMAGE_PIXELS", 40000000),
StagingRetention: time.Duration(getEnvPositiveInt("STAGING_RETENTION_SECONDS", 86400)) * time.Second,
}
}