Skip to content

enforceAppCheck not working in onCallGenkit #1697

@lukyanov

Description

@lukyanov

[REQUIRED] Version info

node:

v22.14.0

firebase-functions:

6.3.2

firebase-tools:

14.4.0

firebase-admin:

13.4.0

[REQUIRED] Test case

exports.createTextTask = onCallGenkit(
  {
    enforceAppCheck: true
  },
  createTextTaskFlow,
);

[REQUIRED] Steps to reproduce

  1. Add enforceAppCheck to onCallGengit
  2. Call the function with a CURL command (with a wrong x-firebase-appcheck header)

[REQUIRED] Expected behavior

The request should be rejected.

[REQUIRED] Actual behavior

The request still goes through. In the logs:

  • "Callable request verification failed: AppCheck token was rejected."
  • "Allowing request with invalid AppCheck token because enforcement is disabled"

Were you able to successfully deploy your functions?

No errors during deploy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions