Skip to content

feat: authenticate incoming requests (issue #112) - #120

Merged
jennifer-bowser merged 29 commits into
issue-111-implement-network-node-discoveryfrom
issue-112-authenticate-incoming-requests
Nov 11, 2026
Merged

jennifer-bowser merged 29 commits into
issue-111-implement-network-node-discoveryfrom
issue-112-authenticate-incoming-requests

Conversation

@jennifer-bowser

@jennifer-bowser jennifer-bowser commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

closes #112

We had specific instructions re: how to validate an incoming request from another node from the VLM network. That info is not public, so I'm not posting it here, but I've shared a copy of the doc with you via Google Drive. Notably, they indicate that tokens aren't generated with a secret key, so we need to skip signature verification. I'm very confused by this, so I'm reaching out to Hana for more info. In the meantime, I've written the code as instructed.

@jennifer-bowser jennifer-bowser self-assigned this Oct 27, 2026
@jennifer-bowser jennifer-bowser added the priority:high High priority label Oct 27, 2026
@jennifer-bowser
jennifer-bowser marked this pull request as ready for review October 27, 2026 20:24
@jennifer-bowser
jennifer-bowser requested a review from a team as a code owner October 27, 2026 20:24

@korikuzma korikuzma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a quick review from Codex. I haven’t reviewed the PR myself yet, but I can take a look later this week.

Please resolve the authentication bypass and failure paths, update deployment configuration, and add isolated API-level regression tests.

Comment thread src/anyvlm/auth/jwt_validator.py Resolved
Comment thread src/anyvlm/main.py Resolved
Comment thread src/anyvlm/auth/jwt_validator.py Resolved
Comment thread src/anyvlm/auth/jwt_validator.py Resolved
Comment thread tests/unit/test_restapi.py Resolved
Comment thread src/anyvlm/auth/jwt_validator.py Resolved

@korikuzma korikuzma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please validate the intended token audience and cover it with real-token tests.

Comment thread src/anyvlm/auth/jwt_validator.py Resolved

@korikuzma korikuzma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the settings references so valid bearer-token requests can reach authentication.

Comment thread src/anyvlm/auth/jwt_validator.py Resolved

@korikuzma korikuzma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The blocking settings-reference failure is fixed. Approval will be granted once follow-up issues are created and linked for malformed expiry handling and missing-header responses. Those fixes can be implemented after this PR.

@jennifer-bowser

Copy link
Copy Markdown
Contributor Author

The blocking settings-reference failure is fixed. Approval will be granted once follow-up issues are created and linked for malformed expiry handling and missing-header responses. Those fixes can be implemented after this PR.

Tickets have been created! See #127 and #128

@jennifer-bowser
jennifer-bowser merged commit aa8a88d into main Nov 11, 2026
18 checks passed
@jennifer-bowser
jennifer-bowser deleted the issue-112-authenticate-incoming-requests branch November 11, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:high High priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authenticate incoming requests

2 participants