Skip to content

Support moving API key out of configuration variable - #35

Draft
lemald wants to merge 5 commits into
mainfrom
lem-move-api-key-out-of-config
Draft

Support moving API key out of configuration variable#35
lemald wants to merge 5 commits into
mainfrom
lem-move-api-key-out-of-config

Conversation

@lemald

@lemald lemald commented Sep 3, 2026

Copy link
Copy Markdown
Member

Asana ticket: part of 🔮 Build out a way to measure RTR uptime

Note that I used Copilot for most of these changes, but made some manual edits and tweaks myself.

This change introduces a new way for the configuration to specify which URL the application should query for each of its checks. Rather than having each check in the JSON specify the full URL, we can now specify a relative path. Then, the path is combined with the base URL from the BASE_URL environment variable. The idea here is that each API checker environment will only be querying on v3 API environment, so this reduces redundancy in the configuration itself. Finally, for the API key itself, we reference the new API_KEY environment variable and append it as a separate query parameter to the full URL, specifically in cases where the path is specified. All of the existing functionality to specify the full url value in the check is maintained (for now), so this will be backwards-compatible with the old configuration.

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