Skip to content

Commit f3f054b

Browse files
committed
fix: update trusted-ca volume mount to custom directory
Change trusted-ca ConfigMap mount to use a custom directory to prevent conflicts with system certificate paths. The ConfigMap is now mounted to both: /mnt/trusted-ca (directory mount) And the caCertPath parameter default is updated to: /mnt/trusted-ca/ca-bundle.crt This ensures: No conflicts with system certificate directories Consistent certificate path across all tasks Signed-off-by: Jing Qi Assisted-By: Claude
1 parent c88aa7c commit f3f054b

24 files changed

Lines changed: 197 additions & 195 deletions

File tree

tasks/managed/apply-mapping/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ You can also expand image labels, e.g. "{{ labels.mylabel }}" -> The value of im
2828

2929
## Parameters
3030

31-
| Name | Description | Optional | Default value |
32-
|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|----------------------------------|
33-
| snapshotPath | Path to the JSON string of the Snapshot spec in the config workspace to apply the mapping to | No | - |
34-
| dataPath | Path to the JSON string of the merged data to use in the data workspace | No | - |
35-
| failOnEmptyResult | Fail the task if the resulting snapshot contains 0 components | Yes | false |
36-
| ociStorage | The OCI repository where the Trusted Artifacts are stored | Yes | empty |
37-
| ociArtifactExpiresAfter | Expiration date for the trusted artifacts created in the OCI repository. An empty string means the artifacts do not expire | Yes | 1d |
38-
| trustedArtifactsDebug | Flag to enable debug logging in trusted artifacts. Set to a non-empty string to enable | Yes | "" |
39-
| orasOptions | oras options to pass to Trusted Artifacts calls | Yes | "" |
40-
| sourceDataArtifact | Location of trusted artifacts to be used to populate data directory | Yes | "" |
41-
| dataDir | The location where data will be stored | Yes | /var/workdir/release |
42-
| taskGitUrl | The url to the git repo where the release-service-catalog tasks and stepactions to be used are stored | No | - |
43-
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |
44-
| caTrustConfigMapName | The name of the ConfigMap to read CA bundle data from | Yes | trusted-ca |
45-
| caTrustConfigMapKey | The name of the key in the ConfigMap that contains the CA bundle data | Yes | ca-bundle.crt |
46-
| addImplicitTimestampTag | When "true", for each repository the resolved {{ timestamp }} value is added to the list of tags after translation (deduplicated). Fails if timestamp is empty. Only pipelines referencing the check-labels task should set this to "true" | Yes | false |
47-
| caCertPath | Path to CA certificate bundle for TLS verification with self-signed certificates | Yes | /etc/pki/tls/certs/ca-bundle.crt |
31+
| Name | Description | Optional | Default value |
32+
|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-------------------------------|
33+
| snapshotPath | Path to the JSON string of the Snapshot spec in the config workspace to apply the mapping to | No | - |
34+
| dataPath | Path to the JSON string of the merged data to use in the data workspace | No | - |
35+
| failOnEmptyResult | Fail the task if the resulting snapshot contains 0 components | Yes | false |
36+
| ociStorage | The OCI repository where the Trusted Artifacts are stored | Yes | empty |
37+
| ociArtifactExpiresAfter | Expiration date for the trusted artifacts created in the OCI repository. An empty string means the artifacts do not expire | Yes | 1d |
38+
| trustedArtifactsDebug | Flag to enable debug logging in trusted artifacts. Set to a non-empty string to enable | Yes | "" |
39+
| orasOptions | oras options to pass to Trusted Artifacts calls | Yes | "" |
40+
| sourceDataArtifact | Location of trusted artifacts to be used to populate data directory | Yes | "" |
41+
| dataDir | The location where data will be stored | Yes | /var/workdir/release |
42+
| taskGitUrl | The url to the git repo where the release-service-catalog tasks and stepactions to be used are stored | No | - |
43+
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |
44+
| caTrustConfigMapName | The name of the ConfigMap to read CA bundle data from | Yes | trusted-ca |
45+
| caTrustConfigMapKey | The name of the key in the ConfigMap that contains the CA bundle data | Yes | ca-bundle.crt |
46+
| addImplicitTimestampTag | When "true", for each repository the resolved {{ timestamp }} value is added to the list of tags after translation (deduplicated). Fails if timestamp is empty. Only pipelines referencing the check-labels task should set this to "true" | Yes | false |
47+
| caCertPath | Path to CA certificate bundle for TLS verification with self-signed certificates | Yes | /mnt/trusted-ca/ca-bundle.crt |

tasks/managed/apply-mapping/apply-mapping.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ spec:
9393
- name: caCertPath
9494
type: string
9595
description: Path to CA certificate bundle for TLS verification with self-signed certificates
96-
default: /etc/pki/tls/certs/ca-bundle.crt
96+
default: /mnt/trusted-ca/ca-bundle.crt
9797
results:
9898
- name: mapped
9999
type: string
@@ -116,8 +116,7 @@ spec:
116116
- mountPath: /var/workdir
117117
name: workdir
118118
- name: trusted-ca
119-
mountPath: /etc/pki/tls/certs/ca-bundle.crt
120-
subPath: ca-bundle.crt
119+
mountPath: /mnt/trusted-ca
121120
readOnly: true
122121
- name: trusted-ca
123122
mountPath: /etc/ssl/certs/ca-custom-bundle.crt

tasks/managed/check-data-keys/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ The validation schema is defined in `schema/dataKeys.json` in this repository.
2727
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |
2828
| caTrustConfigMapName | The name of the ConfigMap to read CA bundle data from | Yes | trusted-ca |
2929
| caTrustConfigMapKey | The name of the key in the ConfigMap that contains the CA bundle data | Yes | ca-bundle.crt |
30-
| caCertPath | Path to CA certificate bundle for TLS verification with self-signed certificates | Yes | /etc/pki/tls/certs/ca-bundle.crt |
30+
| caCertPath | Path to CA certificate bundle for TLS verification with self-signed certificates | Yes | /mnt/trusted-ca/ca-bundle.crt |

tasks/managed/check-data-keys/check-data-keys.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
- name: caCertPath
7272
type: string
7373
description: Path to CA certificate bundle for TLS verification with self-signed certificates
74-
default: /etc/pki/tls/certs/ca-bundle.crt
74+
default: /mnt/trusted-ca/ca-bundle.crt
7575
results:
7676
- description: Produced trusted data artifact
7777
name: sourceDataArtifact
@@ -91,8 +91,7 @@ spec:
9191
- mountPath: /var/workdir
9292
name: workdir
9393
- name: trusted-ca
94-
mountPath: /etc/pki/tls/certs/ca-bundle.crt
95-
subPath: ca-bundle.crt
94+
mountPath: /mnt/trusted-ca
9695
readOnly: true
9796
- name: trusted-ca
9897
mountPath: /etc/ssl/certs/ca-custom-bundle.crt

0 commit comments

Comments
 (0)