Problem/Motivation

The module currently stores the uploaded Firebase Admin SDK JSON file as a file entity ID (`fid`) in configuration (`firebase_ui.settings`).

Since file entity IDs are environment-specific, this configuration is not portable across environments. After configuration import, the stored `fid` may point to:
- a non-existing file,
- a different file,
- or an invalid file entity.

This causes Firebase authentication failures and runtime errors when deploying configuration between environments.

Steps to reproduce

1. Configure Firebase UI in a local environment.
2. Upload a Firebase Admin SDK JSON file in:
`/admin/config/services/firebase-ui`
3. Export configuration.
4. Import configuration into another environment.
5. The imported `fid` references an invalid or unrelated file entity.
6. Firebase features fail due to invalid credentials.

Proposed resolution

Follow what was done in #3462829: Store the file path instead of ID for the navigation logo

Remaining tasks

User interface changes

API changes

None

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

oscarfabian01 created an issue. See original summary.

oscarfabian01’s picture

Version: 1.0.x-dev » 1.0.5

oscarfabian01 changed the visibility of the branch 3589601-firebase-admin-sdk to hidden.

oscarfabian01 changed the visibility of the branch 3589601-firebase-admin-sdk to active.

vensires’s picture

Issue summary: View changes
vensires’s picture

vensires’s picture

Version: 1.0.5 » 1.0.x-dev
Assigned: oscarfabian01 » Unassigned
Status: Active » Needs review
StatusFileSize
new7.12 KB

Uploading patch based on latest changes of the MR.

vensires’s picture

Uploading patch to apply cleanly on 1.5.0 stable version.

[Sorry, accidentally same filename]

vensires’s picture

StatusFileSize
new7.48 KB

Previous patch introduced a bug when uploading.
Uploading newest version for stable 1.5.0.

vensires’s picture

Uploading patch based on latest MR for 1.0.x version.