Skip to content
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

calendar-agent service unable to write to firestore: #71

Open
braaar opened this issue Feb 24, 2023 · 6 comments
Open

calendar-agent service unable to write to firestore: #71

braaar opened this issue Feb 24, 2023 · 6 comments
Assignees

Comments

@braaar
Copy link
Member

braaar commented Feb 24, 2023

PERMISSION_DENIED: Missing or insufficient permissions.

@braaar
Copy link
Member Author

braaar commented Feb 27, 2023

Looking at the rules in Firestore, I see this:
You don't have a ruleset and you do not have permission to create one. Missing at least one of: firebaserules.rulesets.create, firebaserules.releases.create

@braaar
Copy link
Member Author

braaar commented Feb 27, 2023

Do we actually need rules?

@braaar
Copy link
Member Author

braaar commented Feb 27, 2023

From the previous cloud environment we had these rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }
  }
}

Do we need the same? Or is there something else we need to do to, like giving the calendar service some permissions or something?
@cobraz – are you knowledgeable about this?

@braaar
Copy link
Member Author

braaar commented Feb 27, 2023

@braaar
Copy link
Member Author

braaar commented Feb 28, 2023

The article suggests this:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}

@braaar
Copy link
Member Author

braaar commented Mar 22, 2023

This issue is still present for me, at https://calendar-agent-878dcc9-cfdt2bgvka-lz.a.run.app/authorize

@braaar braaar reopened this Mar 22, 2023
@simenandre simenandre self-assigned this Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants