Skip to content

Add Workbench API key and Package Manager token env var support#30

Draft
ian-flores wants to merge 1 commit intomainfrom
add-credential-env-vars
Draft

Add Workbench API key and Package Manager token env var support#30
ian-flores wants to merge 1 commit intomainfrom
add-credential-env-vars

Conversation

@ian-flores
Copy link
Collaborator

Summary

Part of #29 — enables VIP to accept pre-generated credentials for all three products via environment variables, supporting the upcoming ptd verify K8s Job flow.

Changes

  • Added WorkbenchConfig with api_key field reading from VIP_WORKBENCH_API_KEY
  • Added PackageManagerConfig with token field reading from VIP_PM_TOKEN
  • Updated WorkbenchClient and PackageManagerClient to accept and use auth headers
  • Wired credentials through tests/conftest.py fixtures
  • Updated vip.toml.example and README.md with new env vars

Environment variables

Variable Purpose
VIP_WORKBENCH_API_KEY Workbench admin API key
VIP_PM_TOKEN Package Manager token

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://posit-dev.github.io/vip/pr-preview/pr-30/

Built to branch gh-pages at 2026-03-06 17:38 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

1 participant