Sync DNS2 production changes - removed obsolete test suite and refactored structure

This commit is contained in:
Krystie
2026-03-23 10:47:15 +01:00
parent 1ac50918ab
commit d76644d948
288 changed files with 8965 additions and 15731 deletions

View File

@@ -39,7 +39,7 @@ class DockerSecurity {
trustedDigests: {},
verificationMode: VERIFICATION_MODE,
allowUnverified: true,
updateTrustedOnPull: true,
updateTrustedOnPull: true
};
}
@@ -124,7 +124,7 @@ class DockerSecurity {
method: 'GET',
headers: {
'Accept': 'application/vnd.docker.distribution.manifest.v2+json',
},
}
};
if (token) {
@@ -198,7 +198,7 @@ class DockerSecurity {
imageName,
actualDigest,
trustedDigest: trustedDigest || null,
action: 'unknown',
action: 'unknown'
};
if (!trustedDigest) {
@@ -280,7 +280,7 @@ class DockerSecurity {
imageName,
action: this.mode === 'permissive' ? 'accept' : 'warn',
error: error.message,
reason: `Verification error (${this.mode} mode)`,
reason: `Verification error (${this.mode} mode)`
};
}
}
@@ -335,7 +335,7 @@ class DockerSecurity {
mode: this.mode,
trustedImagesCount: Object.keys(this.config.trustedDigests).length,
configFile: SECURITY_CONFIG_FILE,
updateTrustedOnPull: this.config.updateTrustedOnPull,
updateTrustedOnPull: this.config.updateTrustedOnPull
};
}
}