feat: implement API key extraction helper and authorization scope man… - #171
Conversation
…agement decorators with corresponding unit tests
|
@muhsar27 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
MergeKeeper review Scope: in scope for linked issue The pull request correctly implements the requested API key authentication helper updates, required scope aliases, and corresponding unit tests matching issue #121. Reviewed commit: |
There was a problem hiding this comment.
Approved
The pull request correctly implements the requested API key authentication helper updates, required scope aliases, and corresponding unit tests matching issue #121.
|
Merged Merged with |
…agement decorators with corresponding unit tests (ASTROIDX556#171)
Summary
Implements secure cryptographic API key authentication and fine-grained permission scope authorization with
@RequiredScopesfor programmatic developer and autonomous AI agent access to the Astroid API.Type of change
Related issue
Closes #121
Why this change is needed
Autonomous AI agents and external developer integrations require programmatic, non-interactive authentication without relying on browser sessions or temporary user tokens. Storing plain secrets in the database presents security vulnerabilities, while lacking granular permission scopes prevents principle-of-least-privilege access.
This implementation addresses these requirements by:
lastUsedAt).x-api-key,Authorization: ApiKey <key>, andAuthorization: Bearer ast_.../Bearer ak_....transactions:write), resource wildcards (transactions:*), and global privileges (*,admin).Checklist
npm run buildpassesnpm testpassesnpm run lintpassesnpm run typecheckpasses