[blast] Add credentials-based K8s authentication for service users#7945
Draft
[blast] Add credentials-based K8s authentication for service users#7945
Conversation
Add K8sClient.from_credentials() as an alternative to kubeconfig-based auth. This allows external services to connect using AWS access keys and optionally assume an IAM role, without needing a kubeconfig file. - New CredentialsConfig dataclass for AWS credentials settings - from_credentials() classmethod generates EKS tokens via presigned STS URLs (same mechanism as `aws eks get-token`) - BLAST_FROM_CREDENTIALS=1 env var to enable in CLI, reads AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and optional BLAST_ROLE_ARN - Rate limiting (30 calls/60s) for credentials-based clients on write operations only (internal polling is not rate-limited) - _reload_client() auto-detects auth mode for token refresh
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add K8sClient.from_credentials() as an alternative to kubeconfig-based auth. This allows external services to connect using AWS access keys and optionally assume an IAM role, without needing a kubeconfig file.
aws eks get-token)