Skip to content

Project file settings dialog resets credentialsFile #2347

Open

Description

@knolleary

The Project Settings dialog allows a user to set the name of the flow file. It does not let the user the credentials file name. That was intentional to help prevent the user accidentally using the wrong flow/credential file combination.

It is perfectly valid for a user to have set a different credential file name by hand editing the project's package.json file. The runtime handles this properly and uses the identified files.

When you edit the settings of such a project, the Credentials field does not show the customised one - it is set to the name derived from the flow file. If a user edits the flow file name, the credentials file name is reset to match.

What are the steps to reproduce?

  1. create a project
  2. hand edit its package.json to point to a different credentials file
  3. restart node-red (or open the project)
  4. open the project settings dialog - the wrong creds file is listed
  5. edit the flow file name and hit save - the creds file is reset to the derived name

What do you expect to happen?

  1. the creds field should show the true value, not the derived value.
  2. allow the user to explicitly set the creds filename - but we do want to retain some of the auto-fill behaviour we have today so they don't have to set the creds filename.

Please tell us about your environment:

  • Node-RED version: 1.0.2

Activity

  1. added this to the 1.2 milestone on Jun 29, 2020
  2. added theissue type on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions