mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
fix(ql3): project cnpg runtime trust into private files
This commit is contained in:
1 parent
eb34662d01
commit
f8934b401d
3 files changed
+60
-10
No files matched your search
@@ -126,6 +126,27 @@ test('rejects runtime DSN authority or a non-primary endpoint', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('rejects a runtime projection without both operator CA and keyring', () => {
|
||||
const report = auditCloudNativePgDeployment({
|
||||
root: ROOT,
|
||||
readFile: intercept(
|
||||
'deploy/kubernetes/ql3-cluster/overlays/cloudnative-pg/postgres-runtime-patch.yaml',
|
||||
(source) =>
|
||||
source.replace(
|
||||
' name: ql3-postgres-ca',
|
||||
' name: ql3-cluster-control-runtime',
|
||||
),
|
||||
),
|
||||
});
|
||||
assert.equal(report.compatible, false);
|
||||
assert.equal(
|
||||
report.findings.some(
|
||||
(candidate) => candidate.code === 'QL3_CNPG_RUNTIME_BINDING',
|
||||
),
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('rejects migration credentials or CA from the runtime domain', () => {
|
||||
const report = auditCloudNativePgDeployment({
|
||||
root: ROOT,
|
||||
|
||||
Reference in new issue
Block a user