carvel-dev / carvel-dev/ytt

Output file access permissions are unusual

Open
#302 6 comments 0 reactions 0 assignees View on GitHub
bug carvel accepted
Dominant language
Go
Stars
1.9k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

Output file permissions are currently set to `0700` on creation for both files and directories. Typically, files are created as `0644` and directories as `0755`, at least that's the default behavior for most shells on Unix-y systems. Would it be possible to change the way files are created by default, or provide flags to control the behavior?

https://github.com/vmware-tanzu/carvel-ytt/blob/0b8c690e3dc3edeba1e819d13de67ec3c22aa322/pkg/files/output_file.go#L35

https://github.com/vmware-tanzu/carvel-ytt/blob/0b8c690e3dc3edeba1e819d13de67ec3c22aa322/pkg/files/output_file.go#L40

Thanks for the great tool!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.