Skip to content

Commit 6763cbc

Browse files
committed
fix: truncating certificates
1 parent 8cee0c5 commit 6763cbc

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

generate-yaml-rp-env.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ process_file() {
5656
elif [[ "$env_value" =~ ^\s*[\{\[] ]] || [[ "$env_value" =~ [\}\]]\s*$ ]]; then
5757
# This looks like JSON, validate and compact it
5858
if echo "$env_value" | jq empty 2>/dev/null; then
59-
clean_value=$(echo "$env_value" | jq -c .)
60-
clean_value="${clean_value//\\/\\\\}"
61-
clean_value="${clean_value//\"/\\\"}"
59+
clean_value=$(echo "$env_value" | tr -d '\000-\037' | jq -c .)
6260
line="${line//INJECT_ENV.${var_name}/\"${clean_value}\"}"
6361
else
6462
echo "Warning: $var_name appears to be JSON but is invalid. Using as-is."

providers/provider-btp/v1.0.3/chainsaw-test.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
cleanup: 120s
1010
steps:
1111
- timeouts:
12-
assert: 600s
12+
assert: 300s
1313
try:
1414
- apply:
1515
file: crs/subaccount.yaml
@@ -61,13 +61,6 @@ spec:
6161
try:
6262
- apply:
6363
file: crs/service-manager.yaml
64-
# Add debugging step before assertion
65-
- script:
66-
content: |
67-
#!/bin/bash
68-
echo "=== Pre-assertion ServiceManager debug ==="
69-
kubectl describe servicemanager upgrade-test-subaccount-service-manager
70-
echo "=== End pre-assertion debug ==="
7164
- assert:
7265
resource:
7366
apiVersion: account.btp.sap.crossplane.io/v1beta1
@@ -79,13 +72,6 @@ spec:
7972
- status: 'True'
8073
(conditions[?type == 'Synced']):
8174
- status: 'True'
82-
# Add post-assertion validation
83-
- script:
84-
content: |
85-
#!/bin/bash
86-
echo "=== Post-assertion ServiceManager validation ==="
87-
kubectl describe servicemanager upgrade-test-subaccount-service-manager
88-
echo "=== End post-assertion validation ==="
8975
- timeouts:
9076
assert: 480s
9177
try:

providers/provider-btp/v1.0.3/setup/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ metadata:
1919
name: cis-provider-secret
2020
type: Opaque
2121
stringData:
22-
data: INJECT_ENV.CIS_CENTRAL_BINDING
22+
data: |
23+
INJECT_ENV.CIS_CENTRAL_BINDING
2324
---
2425
apiVersion: btp.sap.crossplane.io/v1alpha1
2526
kind: ProviderConfig

0 commit comments

Comments
 (0)