Firebase config troubleshooting #7348
-
What happened?Hi team, I’ve noticed that the Firebase configuration values set in
If I set stricter rules (for example, only allowing authenticated users or even just blocking anonymous access), file uploads start failing. It appears that LibreChat doesn’t use the Firebase credentials from the Expected: Actual: Steps to reproduce:
Could you clarify if there’s a recommended way to secure Firebase Storage with LibreChat and have authentication work as expected using Thanks! Version Informationdocker images | grep librechat Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputnone Screenshotsnone Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please read our documentation on Firebase: https://www.librechat.ai/docs/configuration/cdn/firebase We provide an example rule that balances accessibility with security: rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /images/{userId}/{fileName} {
allow read, write: if true;
}
}
} This rule restricts access to only files within the specified path structure ( |
Beta Was this translation helpful? Give feedback.
Please read our documentation on Firebase:
https://www.librechat.ai/docs/configuration/cdn/firebase
We provide an example rule that balances accessibility with security:
This rule restricts access to only files within the specified path structure (
/images/{userId}/{fileName}
). While it uses "if true" to allow read/write access, the security comes from the path specificity - users would need to know the exact userId and fileName to access a file. This is similar to how platforms like Facebook handle resource URLs, where the URL itse…