Skip to content

Subdirectories in user-jail don't contain correct permissions. #4

Description

@KilianDargel

When pushing to the sftp server as a user to subdirectories, they are not allowed to push anything by default.
Although sftp-server-pods have a long lifetime, they sometimes need to be manually "prepared" - making them non-stateless - like so:

/ # mkdir home/<user>/<subdirectory1>
/ # mkdir home/<user>/<subdirectory1>/<subdirectory2>
...
/ # chown -R roamcontrol:100 home/<user>/<subdirectory1>/

I suggest a mechanism that sets up the FS through containerscripting like above. The chart currently carries a KV sftpConfig.username so how about a range for sftpConfig.userdirectories?
e.g.:

sftpConfig:
   username: sftp
   userdirectories:
   - subdirectory1/subdirectory2
   - subdirectory3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions