【BUG】Environment variable error #13356

Closed
opened 2026-02-21 19:11:48 -05:00 by yindo · 0 comments
Owner

Originally created by @jason-lee-x on GitHub (Apr 25, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Question 1:

  1. Set a environment variable(secret type)
  2. Call a MCP or Http with this secret as a bearer token
  3. Backend received a masked variable

Image

Image

Question 2:

  1. Environment variables are set, but are not visible when modified
  2. When I tried to set a new one, using/inserting the variable failed

Image

✔️ Expected Behavior

Question 1:
Needs to pass the original key to the backends.

Question 2:
Obvious error,just fix

Actual Behavior

No response

Originally created by @jason-lee-x on GitHub (Apr 25, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Question 1: 1. Set a environment variable(secret type) 2. Call a MCP or Http with this secret as a bearer token 3. Backend received a masked variable ![Image](https://github.com/user-attachments/assets/c82e7b8e-bd0f-486f-8f23-3f58879e8e3c) ![Image](https://github.com/user-attachments/assets/50ae8c5b-9a98-4f1d-963b-da49c64a3938) Question 2: 1. Environment variables are set, but are not visible when modified 2. When I tried to set a new one, using/inserting the variable failed ![Image](https://github.com/user-attachments/assets/2556d122-5b14-4b87-964a-8609d0f8e419) ### ✔️ Expected Behavior Question 1: Needs to pass the original key to the backends. Question 2: Obvious error,just fix ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:11:48 -05:00
yindo closed this issue 2026-02-21 19:11:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13356