Skip to content

fix(functions): Use emulated credentials when connecting to the emulator#2857

Merged
lahirumaramba merged 2 commits intomasterfrom
fix-taskq-emulator
Feb 25, 2025
Merged

fix(functions): Use emulated credentials when connecting to the emulator#2857
lahirumaramba merged 2 commits intomasterfrom
fix-taskq-emulator

Conversation

@lahirumaramba
Copy link
Copy Markdown
Member

Fixes: #2754

Added a new FunctionsHttpClient class that extends AuthorizedHttpClient to handle credentials when communicating with the Task Queue Emulator.

@lahirumaramba lahirumaramba added release-note release:stage Stage a release candidate labels Feb 24, 2025

const EXPECTED_HEADERS_EMULATOR = {
'X-Firebase-Client': `fire-admin-node/${getSdkVersion()}`,
'Authorization': 'Bearer owner',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "Bearer owner" is used as [authorization header](1).
Copy link
Copy Markdown
Collaborator

@jonathanedey jonathanedey 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!

@lahirumaramba lahirumaramba merged commit 2379e15 into master Feb 25, 2025
@lahirumaramba lahirumaramba deleted the fix-taskq-emulator branch February 25, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authentication error in tasks firebase emulator on enqueue

3 participants