Skip to content

feat: add OAuth2 bearer token auth and fix CI secret exposure#331

Merged
dsoper2 merged 4 commits into
CiscoDevNet:mainfrom
stevefulme1:fix/ci-secret-exposure
May 29, 2026
Merged

feat: add OAuth2 bearer token auth and fix CI secret exposure#331
dsoper2 merged 4 commits into
CiscoDevNet:mainfrom
stevefulme1:fix/ci-secret-exposure

Conversation

@stevefulme1
Copy link
Copy Markdown
Contributor

Summary

The workflow info.yml passes ANSIBLE_API_KEY directly as a CLI argument via --extra-vars, which exposes the secret in process listings and CI logs.

This change moves the secret into an environment variable and references it from the shell, preventing the secret value from appearing in the command line.

Before

ansible-playbook ... --extra-vars "ansible_api_key=${{ secrets.ANSIBLE_API_KEY }}" ...

After

env:
  ANSIBLE_API_KEY: ${{ secrets.ANSIBLE_API_KEY }}
run: |
  ansible-playbook ... -e "ansible_api_key=${ANSIBLE_API_KEY}" ...

Risk

Low -- only changes how the secret is passed, not what the playbook receives.

stevefulme1 and others added 3 commits May 29, 2026 11:08
Adds AMD EPYC CBS tokens, Front NVMe slots 25-32, GPU Direct,
Intel TDX, Memory/IO/PCIe, Security/ACPI, Serial/PCR, and
speculative_lock_enable parameters.

Closes CiscoDevNet#324

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add test_bios_policy_new_tokens with 30+ of the 61 new BIOS tokens
  covering Intel VT-d, GPU Direct, PCIe, memory/power, AMD CBS, POST,
  NVMe slot, and misc categories
- Tests creation, idempotency, info verification, and update
- Verify key API response fields (IntelVtForDirectedIo, ResizeBarSupport)
- Add to cleanup lists and update policy count assertions
@stevefulme1 stevefulme1 force-pushed the fix/ci-secret-exposure branch from 267b765 to 5413b2e Compare May 29, 2026 15:08
…tern

Upstream removed 'default: platform-default' from both DOCUMENTATION and
argument_spec for BIOS parameters. Aligns new params with this convention
to fix ansible-test sanity doc-default-does-not-match-spec errors.
@dsoper2 dsoper2 merged commit 6a2e688 into CiscoDevNet:main May 29, 2026
21 checks passed
@stevefulme1 stevefulme1 changed the title fix(ci): pass secret via environment variable instead of CLI argument feat: add OAuth2 bearer token auth and fix CI secret exposure May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants