rename(api-key): Rename galileo_api_key to splunk_ao_api_key#64
Conversation
fercor-cisco
left a comment
There was a problem hiding this comment.
🤖 This review was generated by the Astra agent (claude-opus-4-8). It may contain mistakes.
Verdict: approve — Complete, consistent attribute rename with no remaining references and tests updated in lockstep.
Follow-ups
Suggested follow-up work that could be tracked as Shortcut stories:
src/splunk_ao/configuration.py:291-291: The docstring for the renamed attribute still reads 'API key for Galileo authentication (sensitive)'. Since the attribute is now splunk_ao_api_key, consider updating this and the surrounding 'Galileo console'/'Galileo authentication' wording to Splunk AO branding for consistency (out of scope for this narrow rename).
fercor-cisco
left a comment
There was a problem hiding this comment.
🤖 This review was generated by the Astra agent (claude-opus-4-8). It may contain mistakes.
Verdict: request_changes — A blind find/replace corrupted test URL literals into invalid strings containing a space ("Splunk AO.ai"), outside the PR's rename scope.
General Comments
- 🟠 major (bug): The source rename (
galileo_api_key->splunk_ao_api_key) is correct and complete (no stray references remain). However, the test file changes go beyond the stated scope: a global find/replace of "galileo" -> "Splunk AO" also rewrote URL string literals, producing invalid URLs that contain a space, e.g.https://app.Splunk AO.ai. These are nonsensical fixture values. That the untouchedDEFAULT_CONSOLE_URLand the assertion at test_configuration.py:306 still usehttps://app.galileo.ai/confirms the intended host wasgalileo.ai. Please restore the URL literals (revert thegalileo.ai->Splunk AO.aiportion) so the rename is limited to the API-key attribute.
Follow-ups
Suggested follow-up work that could be tracked as Shortcut stories:
src/splunk_ao/constants/__init__.py:8-8:DEFAULT_CONSOLE_URLstill points athttps://app.galileo.ai/. If the product is being rebranded from Galileo to Splunk AO, the default console URL likely needs updating too — but that is a separate change from this API-key rename and should be tracked/decided independently.
| ("galileo_api_key", "env-key", "internal-key"), | ||
| ("console_url", "https://env.galileo.ai", "https://internal.galileo.ai"), | ||
| ("splunk_ao_api_key", "env-key", "internal-key"), | ||
| ("console_url", "https://env.Splunk AO.ai", "https://internal.Splunk AO.ai"), |
There was a problem hiding this comment.
🟠 major (bug): These URLs were mangled by the find/replace — galileo.ai became Splunk AO.ai (note the space), which is not a valid URL. Restore the original host.
| ("console_url", "https://env.Splunk AO.ai", "https://internal.Splunk AO.ai"), | |
| ("console_url", "https://env.galileo.ai", "https://internal.galileo.ai"), |
🤖 Generated by the Astra agent
| mock_env_file.write_text( | ||
| 'SPLUNK_AO_API_KEY="env-file-key"\n' | ||
| 'SPLUNK_AO_CONSOLE_URL="https://envfile.galileo.ai"\n' | ||
| 'SPLUNK_AO_CONSOLE_URL="https://envfile.Splunk AO.ai"\n' |
There was a problem hiding this comment.
🟠 major (bug): Invalid URL introduced by the find/replace (contains a space). Restore galileo.ai.
| 'SPLUNK_AO_CONSOLE_URL="https://envfile.Splunk AO.ai"\n' | |
| 'SPLUNK_AO_CONSOLE_URL="https://envfile.galileo.ai"\n' |
🤖 Generated by the Astra agent
| # Verify env file was loaded | ||
| assert api_key == "env-file-key" | ||
| assert Configuration.console_url == "https://envfile.galileo.ai" | ||
| assert Configuration.console_url == "https://envfile.Splunk AO.ai" |
There was a problem hiding this comment.
🟠 major (bug): This assertion now compares against the mangled URL. Restore galileo.ai to match the fixture at line 175.
| assert Configuration.console_url == "https://envfile.Splunk AO.ai" | |
| assert Configuration.console_url == "https://envfile.galileo.ai" |
🤖 Generated by the Astra agent
| # Set valid configuration | ||
| monkeypatch.setenv("SPLUNK_AO_API_KEY", "valid-key") | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") |
There was a problem hiding this comment.
🟠 major (bug): Invalid URL (contains a space) from the find/replace. Restore galileo.ai.
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") | |
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") |
🤖 Generated by the Astra agent
|
|
||
| # Set only console URL | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") |
There was a problem hiding this comment.
🟠 major (bug): Invalid URL (contains a space) from the find/replace. Restore galileo.ai.
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") | |
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") |
🤖 Generated by the Astra agent
| # Set valid configuration | ||
| monkeypatch.setenv("SPLUNK_AO_API_KEY", "valid-key") | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") | ||
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") |
There was a problem hiding this comment.
🟠 major (bug): Invalid URL (contains a space) from the find/replace. Restore galileo.ai.
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.Splunk AO.ai") | |
| monkeypatch.setenv("SPLUNK_AO_CONSOLE_URL", "https://app.galileo.ai") |
🤖 Generated by the Astra agent
| Configuration.galileo_api_key = "test-key" | ||
| Configuration.console_url = "https://test.galileo.ai" | ||
| Configuration.splunk_ao_api_key = "test-key" | ||
| Configuration.console_url = "https://test.Splunk AO.ai" |
There was a problem hiding this comment.
🟠 major (bug): Invalid URL (contains a space) from the find/replace. Restore galileo.ai.
| Configuration.console_url = "https://test.Splunk AO.ai" | |
| Configuration.console_url = "https://test.galileo.ai" |
🤖 Generated by the Astra agent
fercor-cisco
left a comment
There was a problem hiding this comment.
🤖 This review was generated by the Astra agent (claude-opus-4-8). It may contain mistakes.
Verdict: approve — Clean, consistent rename of galileo_api_key → splunk_ao_api_key; the mangled-URL bugs raised in review are already fixed on the current head.
Rename
galileo_api_keytosplunk_ao_api_key