Skip to content

onCall Dart functions deploys with public access disabled #10225

Closed

Description

@jhuleatt

[REQUIRED] Environment info

firebase-tools: 15.12.0

Platform: macOS

[REQUIRED] Test case

firebase.https.onCall(
      name: 'onCallDemo',
      options: const CallableOptions(
        cors: Cors(['*']),
        maxInstances: Instances(1),
      ),
      (request, response) async {
        print('I was called!');
        final data = request.data as Map<String, dynamic>?;
        final name = data?['name'] ?? 'World';
        return CallableResult({'message': 'Hello, $name!'});
      },
    );

[REQUIRED] Steps to reproduce

Deploy a callable Dart function, then check the "Security" tab in the Cloud Run console. In the "Authentication" card, "Require authentication" is selected.

[REQUIRED] Expected behavior

Public access is allowed by default

[REQUIRED] Actual behavior

"Require authentication" is selected

Activity

  1. cabljac commented on Apr 2, 2026

    @cabljac
    Contributor

    Hi! thanks for opening this, it's been received. We'll provide updates on this when we have them.

  2. self-assigned this
    on Apr 2, 2026
  3. ajperel commented on Apr 17, 2026

    @ajperel
    Contributor

    Confirmed that public is the default for callable Node & Python. You can see that in places like:

    and elsewhere for non-callable HTTPS functions. We should make Dart consistent.

  4. shettyvarun268 commented on May 4, 2026

    @shettyvarun268
    Contributor

    This issue should be fixed with PR #10390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions