refactor: remove NofxOS API key — all data requests now route through claw402 - #1496
Open
deanokk wants to merge 1 commit into
Open
refactor: remove NofxOS API key — all data requests now route through claw402#1496deanokk wants to merge 1 commit into
deanokk wants to merge 1 commit into
Conversation
…nitialization - Removed the NofxOS API key from the StrategyConfig and related validation logic. - Updated the NofxOS client initialization to use an empty auth key, routing all requests through claw402. - Cleaned up related code in various components to reflect the removal of the API key dependency. This change enhances security by eliminating hardcoded API keys and streamlining the configuration process.
🤖 Advisory Check ResultsThese are advisory checks to help improve code quality. They won't block your PR from being merged. 📋 PR InformationTitle Format: ✅ Good - Follows Conventional Commits 💡 Suggestion: This is a large PR. Consider breaking it into smaller, focused PRs for easier review. 🔧 Backend ChecksGo Formatting: Files needing formattingGo Vet: ✅ Good Fix locally: go fmt ./... # Format code
go vet ./... # Check for issues
go test ./... # Run tests⚛️ Frontend ChecksBuild & Type Check: ✅ Success Fix locally: cd web
npm run build # Test build (includes type checking)📖 ResourcesQuestions? Feel free to ask in the comments! 🙏 These checks are advisory and won't block your PR from being merged. This comment is automatically generated from pr-checks-run.yml. |
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
Remove the hardcoded NofxOS API key (
cm_568c67eae410d912c54c) and all associated configuration fields, validation, UI, and translations. NofxOS data service no longer requires an API key — all requests are now routed through the claw402 x402 payment gateway.Changes
Backend:
store/strategy.go: RemoveNofxOSAPIKeyfield fromIndicatorConfigand its default value fromGetDefaultStrategyConfig()provider/nofxos/client.go: RemoveDefaultAuthKeyconstant, fallback logic inNewClient(), and key fromDefaultClient()kernel/engine.go: Simplify client creation — pass empty auth key since claw402 handles routingapi/strategy.go: Remove API key validation fromvalidateStrategyConfig()api/server.go: Removeindicators.nofxos_api_keyfrom the AI prompt guideFrontend:
web/src/types/strategy.ts: Removenofxos_api_keyfromIndicatorConfigtypeweb/src/components/strategy/IndicatorEditor.tsx: Remove API key constant, status badges, warning, and unused importsweb/src/i18n/strategy-translations.ts: Remove unused translation keys (apiKey,connected,notConfigured,configureApiKey, etc.)Test plan
go build ./...— no compilation errorsgo vet ./...— no issuesnpm run build— clean buildnpm run lint— no new warnings in changed files