feat(config): add standalone and O11y deployment authentication#80
Open
pradystar wants to merge 1 commit into
Open
feat(config): add standalone and O11y deployment authentication#80pradystar wants to merge 1 commit into
pradystar wants to merge 1 commit into
Conversation
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
Add configuration detection for standalone and O11y deployments. This establishes the configuration and authentication foundation needed for the SDK's OTLP transition while preserving the existing standalone authentication flow.
Why
The SDK must select the correct endpoints and authentication mechanism without requiring users to set an explicit deployment-mode option. Standalone customers continue using their existing configuration, while O11y customers configure a realm and Splunk access token and do not perform the standalone JWT exchange.
What changed
X-SF-Tokenand consistently applies the/v2/aoprefix to synchronous, asynchronous, and streaming requests.SPLUNK_AO_SF_API_TOKENfor CRUD when provided and otherwise useSPLUNK_AO_SF_TOKEN.httpxas a direct dependency because it is imported by the SDK.Configuration
SPLUNK_AO_REALM,SPLUNK_AO_SF_TOKENSPLUNK_AO_SF_API_TOKENSPLUNK_AO_API_KEY,SPLUNK_AO_CONSOLE_URLSPLUNK_AO_API_URLTesting
HOME=/private/tmp/splunk-ao-pr1-test-home poetry run pytest -q— 125 passed; Ruff lint and format checks, mypy, andgit diff --checkalso passed.