Open
Conversation
- New SaladCollector using app-api.salad.io/api/v1/profile/balance - Auth via sAccessToken cookie (browser DevTools) - Returns currentBalance in USD - Registered in COLLECTOR_MAP with access_token config key - Updated service YAML and guide docs with actual API details
- app-api.salad.io is dead, new base is app-api.salad.com - Auth changed from sAccessToken cookie to Bearer token header - Updated collector, service YAML, and guide docs
Tested against live API — the auth mechanism is: - Cookie: auth=<token> - Header: X-XSRF-TOKEN=<same token> Verified: returns currentBalance and lifetimeBalance in USD. Config key changed from salad_access_token to salad_auth_cookie.
When saving collector credentials via POST /api/config, auto-insert an "external" deployment record for services that have no Docker image (manual-only). Without this, _run_collection() never instantiates collectors for Salad, Grass, Bytelixir, or any future manual-only service because make_collectors() requires a matching deployment row. Also adds auth_cookie to the secret_args mask list.
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.
Summary
SaladCollector— fetches current balance fromapp-api.salad.io/api/v1/profile/balanceusing thesAccessTokenbrowser cookieCOLLECTOR_MAPwith config keysalad_access_tokenservices/compute/salad.ymlcollector notes with actual API detailsdocs/guides/salad.mdwith real setup instructions (get token from browser DevTools)Config
Test plan
uv run pytest— 0 failures)sAccessToken