Implement "env" command for internal ssh #3306

Open
opened 2025-11-02 05:07:28 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @sapk on GitHub (May 9, 2019).

Currently we ignore env passed via SSH. This even create some bug on windows without env local command.

We need to (re-)implement the part (that did nothing) disabled in #6825 via filling an array of env variable to be set to cmd.Env for later call of exec.

The tricky part of this implemntation is that we should filter and sanitize some variables and input passed to this command.

If you think of env variable that we should filter, please comment this issue.

Originally created by @sapk on GitHub (May 9, 2019). Currently we ignore env passed via SSH. This even create some bug on windows without env local command. We need to (re-)implement the part (that did nothing) disabled in #6825 via filling an array of env variable to be set to cmd.Env for later call of exec. The tricky part of this implemntation is that we should filter and sanitize some variables and input passed to this command. If you think of env variable that we should filter, please comment this issue.
GiteaMirror added the type/proposaltype/enhancement labels 2025-11-02 05:07:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3306