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
7 changes: 4 additions & 3 deletions tasks/acs-ci-nightly/openshell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ credentials.
The built-in Google Cloud profile supplies the gateway-managed metadata path
that gsutil uses. The workflow's Boto configuration enables gsutil's
`[GoogleCompute]` metadata credential lookup without placing a credential in
the sandbox, and `GCE_METADATA_ROOT` points legacy gsutil's metadata client at
OpenShell's loopback emulator. The task policy binds that provider instance
only to the read-only `test-platform-results-public` endpoints.
the sandbox, and the workflow sets both legacy metadata variables explicitly
for gsutil's metadata client. They point at OpenShell's loopback emulator. The
task policy binds that provider instance only to the read-only
`test-platform-results-public` endpoints.
The task also points Google Cloud CLI tools at OpenShell's combined CA bundle
so `gsutil` verifies the sandbox proxy certificate without disabling TLS.

Expand Down
1 change: 1 addition & 0 deletions tasks/acs-ci-nightly/workflow/harness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ sandbox:
CURL_CA_BUNDLE: /etc/openshell-tls/ca-bundle.pem
BOTO_CONFIG: /tmp/openshell-boto.cfg
GCE_METADATA_ROOT: 127.0.0.1:8174
GCE_METADATA_IP: 127.0.0.1:8174

source:
repo: https://github.com/stackrox/acs-triage-agent.git
Expand Down
6 changes: 5 additions & 1 deletion tasks/acs-ci-nightly/workflow/preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sandbox:
CURL_CA_BUNDLE: /etc/openshell-tls/ca-bundle.pem
BOTO_CONFIG: /tmp/openshell-boto.cfg
GCE_METADATA_ROOT: 127.0.0.1:8174
GCE_METADATA_IP: 127.0.0.1:8174

payloads:
- content: |
Expand Down Expand Up @@ -62,7 +63,10 @@ agent:
echo

echo "GCS: gsutil ls -b gs://$GCS_BUCKET"
if timeout 30s /opt/gsutil/bin/gsutil ls -b "gs://$GCS_BUCKET" >/dev/null 2>"$gcs_error"; then
if env GCE_METADATA_ROOT=127.0.0.1:8174 \
GCE_METADATA_IP=127.0.0.1:8174 \
timeout 30s /opt/gsutil/bin/gsutil ls -b "gs://$GCS_BUCKET" \
>/dev/null 2>"$gcs_error"; then
echo "GCS: PASS"
else
gcs_status=$?
Expand Down
Loading