Skip to content

bug-2037388: Implement the /upload/auth_info/ endpoint.#3311

Open
smarnach wants to merge 1 commit into
token_upload_api_version_migrationfrom
upload_auth_info
Open

bug-2037388: Implement the /upload/auth_info/ endpoint.#3311
smarnach wants to merge 1 commit into
token_upload_api_version_migrationfrom
upload_auth_info

Conversation

@smarnach
Copy link
Copy Markdown
Contributor

@smarnach smarnach commented May 7, 2026

This adds an /upload/auth_info/ endpoint intended to be used by the upload-symbols CLI tool.

The code is mostly straight-forward. The client-otel.py module exists for two reasons. First, as a container to hold the global OTel configuration provider, so we don't have to reinitialize the IAMCredentialsClient on every request. Second, probably more importantly, as a way to inject a mock version of the IAMCredentialsClient for tests.

We will need to create new service accounts with permission to submit telemetry and give Tecken permissions to create access tokens for these service accounts, which will happen later. In the meantime, the /upload/auth_info/ endpoint won't include any OTel configuration.

As a minor deviation from the proposed JSON response in the bug, the token expiry time is returned as a Unix timestamp rather than a ISO-formatted time string. This API is meant for machine consumption, and a Unix timestamp is easier to consume for machines than a formatted string.

This PR depends on #3310. The migration needs to be deployed and manually run in both stage and prod before we can deploy this PR.

@smarnach smarnach force-pushed the token_upload_api_version_migration branch from 5f3b7f4 to 8c62795 Compare May 8, 2026 11:22
@smarnach smarnach force-pushed the upload_auth_info branch from 2f3d628 to 1695b1e Compare May 8, 2026 11:23
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