Skip to content

Add App Check support for Firestore #1228

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

Merged
merged 15 commits into from
Mar 13, 2023
Merged

Add App Check support for Firestore #1228

merged 15 commits into from
Mar 13, 2023

Conversation

a-maurice
Copy link
Contributor

Description

Provide details of the change, and generalize the change in the PR title above.

Implements an App Check Credential Provider for Firestore to use for the desktop implementation, and hook into the iOS provider for the iOS implementation.
Adds a few tests to the App Check integration test to use Firestore.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Run the desktop tests locally.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

@a-maurice a-maurice added the skip-release-notes Skip release notes check label Mar 2, 2023
@a-maurice a-maurice added the tests-requested: quick Trigger a quick set of integration tests. label Mar 3, 2023
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Mar 3, 2023
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

❌  Integration test FAILED

Requested by @a-maurice on commit d7ff369
Last updated: Mon Mar 13 18:44 PDT 2023
View integration test log & download artifacts

Failures Configs
missing_log [TEST] [ERROR] [iOS] [macos] [1/2 ios_device: ios_target]
admob [BUILD] [ERROR] [iOS] [macos]
analytics [BUILD] [ERROR] [iOS] [macos]
auth [BUILD] [ERROR] [iOS] [macos]
database [BUILD] [ERROR] [iOS] [macos]
dynamic_links [BUILD] [ERROR] [iOS] [macos]
firestore [BUILD] [ERROR] [iOS] [macos]
[TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/2 android_device: android_target]
(1 failed tests)  QueryTest.TestCanQueryWithAndWithoutDocumentKey
functions [BUILD] [ERROR] [iOS] [macos]
gma [BUILD] [ERROR] [iOS] [macos]
installations [BUILD] [ERROR] [iOS] [macos]
messaging [BUILD] [ERROR] [iOS] [macos]
remote_config [BUILD] [ERROR] [iOS] [macos]
storage [BUILD] [ERROR] [iOS] [macos]

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Mar 3, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Mar 3, 2023
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

I've reviewed the firestore appcheck tests and the changes in the "firestore" directory. For the latter, I didn't look in too much detail, especially the code that looks to have been copied and adapted from the existing credentials provider. Is there anything I should look at in more detail?

@a-maurice
Copy link
Contributor Author

I've reviewed the firestore appcheck tests and the changes in the "firestore" directory. For the latter, I didn't look in too much detail, especially the code that looks to have been copied and adapted from the existing credentials provider. Is there anything I should look at in more detail?

Yeah, it is mostly just copied from the AuthCredentialProvider logic, and just hooks into App Check instead. As long as that seems fine with you, that's good enough.

@a-maurice a-maurice added tests-requested: quick Trigger a quick set of integration tests. and removed tests: failed This PR's integration tests failed. labels Mar 8, 2023
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Mar 8, 2023
@a-maurice a-maurice requested a review from dconeybe March 9, 2023 00:28
@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Mar 9, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Mar 9, 2023
@a-maurice a-maurice requested a review from dconeybe March 9, 2023 18:34
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

LGTM, for the parts that I reviewed. I'll withhold my approval unless you feel like my partial review is sufficient. But I think someone more familiar with the non-firestore parts of this PR should take a look too.

@dconeybe dconeybe self-requested a review March 9, 2023 18:36
dconeybe
dconeybe previously approved these changes Mar 9, 2023
@dconeybe dconeybe dismissed their stale review March 9, 2023 18:37

If possible, I'd like someone familiar with the non-firestore parts of the code to review those. I only looked at the firestore-specific parts.

@a-maurice a-maurice requested a review from AlmostMatt March 9, 2023 18:37
Copy link
Contributor

@AlmostMatt AlmostMatt left a comment

Choose a reason for hiding this comment

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

Looks ok, just some minor comments

@a-maurice a-maurice requested a review from AlmostMatt March 11, 2023 00:13
@a-maurice a-maurice merged commit d7ff369 into main Mar 13, 2023
@a-maurice a-maurice deleted the am-app_check_firestore branch March 13, 2023 23:10
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. tests: failed This PR's integration tests failed. and removed tests: succeeded This PR's integration tests succeeded. labels Mar 13, 2023
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Mar 14, 2023
@firebase firebase locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip-release-notes Skip release notes check tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants