Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Ability to set mode/group[/owner] in write_file() and upload_file() functions #3270

Open
jay7x opened this issue Feb 15, 2024 · 0 comments
Labels
Feature New features and improvements.

Comments

@jay7x
Copy link
Contributor

jay7x commented Feb 15, 2024

Use Case

It'd be nice to have an ability to set an uploaded file mode and ownership.

Describe the Solution You Would Like

upload_file($source, $destination, $targets, $description, {
  run_as => 'root',
  mode => '0600',
  group => 'www-data',
  owner => 'admin',
})

As write_file() calls upload_file() internally, it should just work also.

It's easy from the first sight but it might require a discussion on how to implement this securely.

@jay7x jay7x added the Feature New features and improvements. label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features and improvements.
Projects
None yet
Development

No branches or pull requests

1 participant