-
Notifications
You must be signed in to change notification settings - Fork 2
fix(acs-ci): align preflight clients with provider auth #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ sandbox: | |
| CLOUDSDK_CORE_CUSTOM_CA_CERTS_FILE: /etc/openshell-tls/ca-bundle.pem | ||
| CURL_CA_BUNDLE: /etc/openshell-tls/ca-bundle.pem | ||
| BOTO_CONFIG: /tmp/openshell-boto.cfg | ||
| GCE_METADATA_ROOT: 127.0.0.1:8174 | ||
|
|
||
| payloads: | ||
| - content: | | ||
|
|
@@ -45,6 +46,7 @@ agent: | |
| echo "Jira: GET $JIRA_URL/rest/api/2/myself" | ||
| jira_status=$(curl --silent --show-error --output /dev/null \ | ||
| --write-out '%{http_code}' --connect-timeout 10 --max-time 30 \ | ||
| --user "$JIRA_EMAIL:$JIRA_API_TOKEN" \ | ||
| "$JIRA_URL/rest/api/2/myself" 2>"$jira_error") | ||
| jira_exit=$? | ||
| if [ "$jira_exit" -ne 0 ]; then | ||
|
Comment on lines
46
to
52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '1,90p' tasks/acs-ci-nightly/workflow/preflight.yaml
sed -n '1,120p' tasks/acs-ci-nightly/workflow/harness.yaml
find tasks/acs-ci-nightly -maxdepth 3 -type f -print | sort
rg -n --glob '*.yaml' --glob '*.md' --glob '*.json' 'JIRA_EMAIL|JIRA_API_TOKEN|provider|secret|process|isolation|GCE_METADATA_ROOT' tasks/acs-ci-nightlyRepository: stackrox/harness-openshell Length of output: 6603 🏁 Script executed: printf '%s\n' '--- policy process and network rules ---'
sed -n '1,145p' tasks/acs-ci-nightly/openshell/policy.yaml
printf '%s\n' '--- provider profile ---'
cat -n tasks/acs-ci-nightly/openshell/providers/atlassian-triage-read.yaml
printf '%s\n' '--- task README ---'
cat -n tasks/acs-ci-nightly/README.md
printf '%s\n' '--- OpenShell README ---'
cat -n tasks/acs-ci-nightly/openshell/README.md
printf '%s\n' '--- workflow instructions ---'
cat -n tasks/acs-ci-nightly/workflow/CI-NIGHTLY.md | sed -n '1,100p'Repository: stackrox/harness-openshell Length of output: 11796 🤖 get_repo_knowledge executed:
Length of output: 4337 🏁 Script executed: printf '%s\n' '--- process and /proc isolation references ---'
rg -n -S --glob '!vendor/**' --glob '!node_modules/**' 'hidepid|pid namespace|PID namespace|unshare|/proc|process isolation|process visibility|run_as_user|run_as_group|sandbox' .
printf '%s\n' '--- workflow/provider schema and implementation references ---'
rg -n -S --glob '*.go' --glob '*.md' --glob '*.yaml' 'credential_binding|env_vars|process:|filesystem_policy|network_policies|providers|provider credentials' internal cmd profiles tasks testRepository: stackrox/harness-openshell Length of output: 50382 🤖 get_repo_knowledge executed:
Length of output: 4031 🏁 Script executed: printf '%s\n' '--- repository sandbox contract ---'
sed -n '70,90p' README.md
sed -n '190,215p' README.md
printf '%s\n' '--- workflow provider and execution contract ---'
sed -n '45,62p' docs/workflow-format.md
sed -n '90,100p' docs/workflow-format.md
printf '%s\n' '--- ACS workflow execution path ---'
cat -n tasks/acs-ci-nightly/workflow/harness.yaml | sed -n '1,55p'
cat -n tasks/acs-ci-nightly/workflow/CI-NIGHTLY.md | sed -n '1,28p'
printf '%s\n' '--- exact policy process/filesystem entries ---'
cat -n tasks/acs-ci-nightly/openshell/policy.yaml | sed -n '1,30p'Repository: stackrox/harness-openshell Length of output: 8660 🏁 Script executed: printf '%s\n' '--- current change ---'
git diff --unified=20 -- tasks/acs-ci-nightly/workflow/preflight.yaml
printf '%s\n' '--- provider authentication patterns ---'
rg -n -S --glob '*.yaml' --glob '*.md' 'auth_style: basic|credential_binding:|header_name: authorization|JIRA_EMAIL|JIRA_API_TOKEN|--user' profiles tasks docs imagesRepository: stackrox/harness-openshell Length of output: 1331 Do not pass Jira credentials in 🤖 Prompt for AI Agents |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using --user to pass credentials on the command line can be a security risk. The command line arguments of a process, including the credentials, may be visible to other users on the system via the process list. Consider passing the credentials via an environment variable or a file.