Skip to content

Require signed auth for DWS database routes#28

Open
lawyered0 wants to merge 2 commits intoJejuNetwork:mainfrom
lawyered0:codex/dws-database-auth
Open

Require signed auth for DWS database routes#28
lawyered0 wants to merge 2 commits intoJejuNetwork:mainfrom
lawyered0:codex/dws-database-auth

Conversation

@lawyered0
Copy link

Summary\n- require wallet signature headers for /database routes outside localnet\n- verify pool stats access against database owner\n- allow signature headers via CORS (x-jeju-*)\n\n## Testing\n- not run (not requested)

@lawyered0
Copy link
Author

Why this change: /database routes trusted x-wallet-address without signature, so any caller could act as any address. This makes non-localnet requests require signed x-jeju-* headers, aligns with the existing wallet auth flow, and adds CORS allowance for those headers. Also fixes /pool to verify instance ownership before returning stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant