Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Copyright 2024-2025 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: deployment-markers-minimal.yaml deployment-markers-checkov.yaml element-web-minimal.yaml element-web-checkov.yaml synapse-minimal.yaml synapse-checkov.yaml matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml well-known-minimal.yaml haproxy-checkov.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

# wellKnownDelegation don't have any required properties to be set and defaults to enabled
deploymentMarkers:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
checkov.io/skip4: CKV_K8S_38=The job needs a service account
elementWeb:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
ingress:
host: element.ess.localhost
haproxy:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
initSecrets:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
checkov.io/skip4: CKV_K8S_38=The job needs a service account
matrixAuthenticationService:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
ingress:
host: mas.ess.localhost
matrixRTC:
enabled: false
postgres:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
serverName: ess.localhost
synapse:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
checkConfigHook:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
ingress:
host: synapse.ess.localhost
redis:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml deployment-markers-minimal.yaml deployment-markers-checkov.yaml
# source_fragments: matrix-authentication-service-minimal.yaml matrix-authentication-service-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

deploymentMarkers:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
checkov.io/skip4: CKV_K8S_38=The job needs a service account
enabled: false
elementWeb:
enabled: false
initSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: matrix-authentication-service-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml deployment-markers-minimal.yaml
# source_fragments: matrix-authentication-service-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

# deploymentMarkers, initSecrets, postgres don't have any required properties to be set and defaults to enabled
# initSecrets, postgres don't have any required properties to be set and defaults to enabled
deploymentMarkers:
enabled: false
elementWeb:
enabled: false
matrixAuthenticationService:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-base-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml deployment-markers-minimal.yaml deployment-markers-pytest-extras.yaml
# source_fragments: matrix-rtc-minimal.yaml matrix-rtc-pytest-extras.yaml synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-base-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml well-known-minimal.yaml well-known-pytest-extras.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

deploymentMarkers:
annotations:
has-no-service-monitor: "true"
podSecurityContext:
runAsGroup: 0
enabled: false
elementWeb:
enabled: false
global:
Expand Down
7 changes: 2 additions & 5 deletions charts/matrix-stack/ci/pytest-synapse-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml deployment-markers-minimal.yaml deployment-markers-pytest-extras.yaml
# source_fragments: synapse-minimal.yaml synapse-pytest-base-extras.yaml synapse-pytest-self-extras.yaml init-secrets-minimal.yaml init-secrets-pytest-extras.yaml postgres-minimal.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

deploymentMarkers:
annotations:
has-no-service-monitor: "true"
podSecurityContext:
runAsGroup: 0
enabled: false
elementWeb:
enabled: false
haproxy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: synapse-minimal.yaml synapse-some-workers-running.yaml synapse-checkov.yaml haproxy-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml deployment-markers-minimal.yaml deployment-markers-checkov.yaml
# source_fragments: synapse-minimal.yaml synapse-some-workers-running.yaml synapse-checkov.yaml haproxy-checkov.yaml init-secrets-minimal.yaml init-secrets-checkov.yaml postgres-minimal.yaml postgres-checkov.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

deploymentMarkers:
annotations:
checkov.io/skip1: CKV_K8S_11=We deliberately don't set CPU limits. Pod is BestEffort not Guaranteed
checkov.io/skip2: CKV_K8S_43=No digests
checkov.io/skip3: CKV2_K8S_6=No network policy yet
checkov.io/skip4: CKV_K8S_38=The job needs a service account
enabled: false
elementWeb:
enabled: false
haproxy:
Expand Down
6 changes: 4 additions & 2 deletions charts/matrix-stack/ci/synapse-minimal-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
#
# SPDX-License-Identifier: AGPL-3.0-only
#
# source_fragments: synapse-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml deployment-markers-minimal.yaml
# source_fragments: synapse-minimal.yaml init-secrets-minimal.yaml postgres-minimal.yaml
# DO NOT EDIT DIRECTLY. Edit the fragment files to add / modify / remove values

# deploymentMarkers, initSecrets, postgres don't have any required properties to be set and defaults to enabled
# initSecrets, postgres don't have any required properties to be set and defaults to enabled
deploymentMarkers:
enabled: false
elementWeb:
enabled: false
matrixAuthenticationService:
Expand Down
1 change: 1 addition & 0 deletions newsfragments/621.internal.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI: remove `deploymentMarkers` from `{synapse,matrix-authentication-service}(-checkov)-values.yaml` as no extra values are required if deployment markers aren't enabled.
1 change: 1 addition & 0 deletions newsfragments/621.internal.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI: handle `deploymentMarkers` not being enabled in various some PyTests.
1 change: 1 addition & 0 deletions newsfragments/621.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI: add `checkov` values file that covers all default enabled components.
1 change: 1 addition & 0 deletions tests/integration/test_matrix_authentication_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async def test_matrix_authentication_service_graphql_endpoint(ingress_ready, gen
assert json_content["data"] == {"userByUsername": None}


@pytest.mark.skipif(value_file_has("deploymentMarkers.enabled", False), reason="Deployment Markers not enabled")
@pytest.mark.skipif(value_file_has("matrixAuthenticationService.enabled", False), reason="MAS not deployed")
@pytest.mark.skipif(value_file_has("matrixAuthenticationService.syn2mas.enabled", True), reason="Syn2Mas is being run")
@pytest.mark.asyncio_cooperative
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ async def test_rendezvous_cors_headers_are_only_set_with_mas(ingress_ready, gene
assert ("ETag" in response.headers["Access-Control-Expose-Headers"]) == supports_qr_code_login


@pytest.mark.skipif(value_file_has("deploymentMarkers.enabled", False), reason="Deployment Markers not enabled")
@pytest.mark.skipif(value_file_has("synapse.enabled", False), reason="Synapse not deployed")
@pytest.mark.skipif(value_file_has("matrixAuthenticationService.enabled", True), reason="MAS is deployed")
@pytest.mark.skipif(value_file_has("matrixAuthenticationService.syn2mas.enabled", True), reason="Syn2Mas is being run")
Expand Down
Loading