Skip to content

chore: add "Bearer" prefix to authorization headers [ENG-6467]#91

Merged
albertodonato merged 2 commits intomainfrom
ack/authorization-add-bearer
Jan 21, 2026
Merged

chore: add "Bearer" prefix to authorization headers [ENG-6467]#91
albertodonato merged 2 commits intomainfrom
ack/authorization-add-bearer

Conversation

@albertodonato
Copy link
Contributor

@albertodonato albertodonato commented Jan 21, 2026

ENG-6467

what

add the "Bearer" type prefix for authorization headers using the token

why

it's more standard

testing

tested against sandbox

docs

n/a

@albertodonato albertodonato requested a review from a team as a code owner January 21, 2026 07:51
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

token = get_token()

url = f"https://{context.config.cubejs}/cubejs-api/v1/load"
url = f"{context.config.cubejs}/cubejs-api/v1/load"
Copy link

Choose a reason for hiding this comment

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

URL scheme removal may break manual configurations

Medium Severity

The https:// prefix was removed from URL construction, but this change isn't mentioned in the PR description. Users who manually configured cubejs with just a hostname (e.g., cubejs.example.com) instead of a full URL will now get invalid URLs like cubejs.example.com/cubejs-api/... without a scheme. While auto-configure already includes https:// in the config, manual configurations via the --cubejs option don't enforce a scheme.

Additional Locations (1)

Fix in Cursor Fix in Web

[ENG-6467](https://stacklet.atlassian.net/browse/ENG-6467)

### what

add the "Bearer" type prefix for authorization headers using the token

### why

it's more standard

### testing

tested against sandbox

### docs

n/a
Copy link
Contributor

@fwereade fwereade left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. (A little disappointing this doesn't break any tests)

@albertodonato albertodonato force-pushed the ack/authorization-add-bearer branch from 9d01934 to 93293f5 Compare January 21, 2026 09:14
@albertodonato albertodonato merged commit ec5f91d into main Jan 21, 2026
12 checks passed
@albertodonato albertodonato deleted the ack/authorization-add-bearer branch January 21, 2026 09:28
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.

2 participants