Skip to content

node-port-handler: send bearer token on forwarder requests - #65

Open
redbeam wants to merge 1 commit into
crc-org:mainfrom
redbeam:token-to-forwarder
Open

redbeam wants to merge 1 commit into
crc-org:mainfrom
redbeam:token-to-forwarder

Conversation

@redbeam

@redbeam redbeam commented Nov 12, 2026 •

Copy link
Copy Markdown

Needed by crc-org/crc#5462
Related to crc-org/crc#5459

The crc daemon now requires Authorization: Bearer on http://host/services/forwarder/{expose,unexpose} and rejects requests without it with 401. The NodePort handler posted with plain http.Post.

Export the routes handler's token getter and send the CRC_REST_API_TOKEN bearer token on the forwarder requests. Older crc serves the forwarder without authentication and ignores the header.

The crc daemon now requires Authorization: Bearer <token> on
http://host/services/forwarder/{expose,unexpose} and rejects requests
without it with 401. The NodePort handler posted with plain http.Post.

Export the routes handler's token getter and send the CRC_REST_API_TOKEN
bearer token on the forwarder requests. Older crc serves the forwarder
without authentication and ignores the header.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Matus Skvarla <mskvarla@redhat.com>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64a881b4-cab9-4033-805e-f2d1788c8701
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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