The ssh plugin uses the environment variable of the secret type of dify, and the value is not decrypted #14467

Closed
opened 2026-02-21 19:17:21 -05:00 by yindo · 1 comment
Owner

Originally created by @showniu on GitHub (Jun 6, 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.4.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I want to use dify's ssh plugin to log in to the server and execute commands.
I wrote the username and password of the server in the environment variable of dify, and selected the type as secret.
I referenced variables for username and password in the SSH plugin, but when logging into the server using the SSH plugin, I used un decrypted environment variables, such as xx ****** yy
I don't know if it's a problem with the plugin or dify, please help me take a look

  1. add var
    Image
  2. configure ssh plugin
    Image
  3. exec ssh plugin fail
    Image

I check the login logs of the system

Image

✔️ Expected Behavior

login succes

Actual Behavior

login fail

Originally created by @showniu on GitHub (Jun 6, 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.4.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I want to use dify's ssh plugin to log in to the server and execute commands. I wrote the username and password of the server in the environment variable of dify, and selected the type as secret. I referenced variables for username and password in the SSH plugin, but when logging into the server using the SSH plugin, I used un decrypted environment variables, such as xx ****** yy I don't know if it's a problem with the plugin or dify, please help me take a look 1. add var ![Image](https://github.com/user-attachments/assets/ca4e6f82-20a2-484a-81b4-872ca26a5fb6) 2. configure ssh plugin ![Image](https://github.com/user-attachments/assets/a07983e6-73ac-4faa-907a-70cd51232929) 3. exec ssh plugin fail ![Image](https://github.com/user-attachments/assets/13ab19ab-5a93-4b43-830c-3f7ebbffad49) I check the login logs of the system ![Image](https://github.com/user-attachments/assets/fe007e33-0a83-413e-a5a5-160b33f89aaa) ### ✔️ Expected Behavior login succes ### ❌ Actual Behavior login fail
yindo added the 🐞 bug label 2026-02-21 19:17:21 -05:00
yindo closed this issue 2026-02-21 19:17:21 -05:00
Author
Owner

@crazywoola commented on GitHub (Jun 6, 2025):

Please report an issue in this repo instead. https://github.com/stvlynn/SSH-Dify-Plugin

@crazywoola commented on GitHub (Jun 6, 2025): Please report an issue in this repo instead. https://github.com/stvlynn/SSH-Dify-Plugin
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#14467