Skip to content

Add setToken() for secret managers#1012

Draft
hansott wants to merge 2 commits into
mainfrom
add-prepare-and-set-token
Draft

Add setToken() for secret managers#1012
hansott wants to merge 2 commits into
mainfrom
add-prepare-and-set-token

Conversation

@hansott
Copy link
Copy Markdown
Member

@hansott hansott commented Apr 28, 2026

Users who store their token in a secrets manager (e.g. AWS Secrets Manager) can't set AIKIDO_TOKEN before the module loads. prepare() starts instrumentation without a token, and setToken() connects to the platform once the token is fetched async. Teams shouldn't have to modify their whole app structure just to adopt Zen.

Users who store their token in a secrets manager (e.g. AWS
Secrets Manager) can't set AIKIDO_TOKEN before the module
loads. prepare() starts instrumentation without a token,
and setToken() connects to the platform once the token is
fetched async. Teams shouldn't have to modify their whole
app structure just to adopt Zen.
@hansott hansott force-pushed the add-prepare-and-set-token branch from 653c63b to 72adc28 Compare April 28, 2026 12:28
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 76.19048% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
library/agent/protect.ts 68.18% 14 Missing ⚠️
library/agent/Agent.ts 94.73% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hansott hansott changed the title Add prepare() and setToken() for runtime token setup Add setToken() for runtime token setup Apr 30, 2026
@hansott hansott changed the title Add setToken() for runtime token setup Add setToken() for secret managers Apr 30, 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.

1 participant