-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High percentage of invalid assessments using App Check with reCAPTCHA Enterprise #7969
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
There are two ways we can dig further into this: (1) On your end, you can create a test app that does not use Firebase and only performs a reCAPTCHA validation using reCAPTCHA tooling. Try this on the same devices and situations where you are getting a lot of failures and see if you get a similar failure rate. If so, that indicates that reCAPTCHA isn't playing nice with your devices/usage. This may be easy to do if you're familiar with using reCAPTCHA by itself, and may be a bit of a pain otherwise. (2) On our end, if you can get the network request logs in your browser from one of the failed attempts, that would be great. We're looking for calls to |
I'll have to consult a firestore team member about if this is indicative of anything but I don't think it's related to the App Check issue, since Firestore (1) hits a different endpoint with a different protocol and (2) is downstream of App Check, so if anything, App Check errors would cause Firestore errors, but not be affected by them. It could indicate spotty network connections, which could affect both, though. Let me see if I can find someone from Firestore to confirm. |
So I talked to a Firestore team member and it's unlikely the Firestore errors are related to the App Check errors. I would suggest making another issue for the Firestore errors if you find they are impacting you a lot. From a glance, it looks like it could just be a spotty network connection that missed one request, but if it seems like a bigger or more serious problem than that, feel free to open a Firestore issue for it. We'll keep this issue open to try and debug the App Check issues. |
Hello @harrisonlo how are you? |
Operating System
Various
Browser Version
Various
Firebase SDK Version
10.7.0
Firebase SDK Product:
App Check
Describe your project's tooling
React app on desktop web and mobile web
Describe the problem
App Check
I'm observing a high percentage of invalid requests for App Check on the Firestore Database and the Realtime Database:
Additionally, the graph for Storage is showing 100% verified, but it only has a few hundred requests.
reCAPTCHA Enterprise
Below are screenshots from the GCP reCAPTCHA Enterprise dashboard, also for the past 30 days:
Issue and thoughts
Given that requests are almost all marked as low risk on the GCP dashboard, I'm guessing there might be some bug on the App Check client that's not sending valid requests to reCAPTCHA. I could be wrong, but given the high false positive rates (as reported by users), I simply cannot enforce it across the databases. I'm grateful to the Firebase team for supporting this and hope I can enforce it one day. Let me know if there's any more information I can provide.
Steps and code to reproduce issue
This is hard to reproduce. I opened an issue a while back #7116 that was related. From my own usage in the past, app check starts to fail after having the app opened for a long period of time, potentially related to #6708. However, I've also had a (returning) user seeing it on app open, meaning assessment passed before but failed later on the same device.
In the app, I would
initializeApp()
theninitializeAppCheck
immediately. This happens when users open the app.The text was updated successfully, but these errors were encountered: