-
Notifications
You must be signed in to change notification settings - Fork 88
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
non-UTF8 filename support #975
Comments
composefs-rs is pretty agnostic about filename encoding. It processes filenames either as |
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios. Signed-off-by: Allison Karlitskaya <[email protected]>
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios.
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios. Signed-off-by: Allison Karlitskaya <[email protected]>
Yeah, the UTF-8 restriction was an intentional choice many years ago for ostree. Another two example opinionated choices:
The mtime thing is still a huge overall issue...and devices are basically always a bad idea (even the overlayfs whiteout nesting one is as discussed better done another way) But of course since OCI didn't add these restrictions we need to be compatible and yes, composefs will help with that. It's actually really nice that with composefs specifically the non-UTF8 filenames don't leak onto the physical filesystem and only impact the container using them. |
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios. Signed-off-by: Allison Karlitskaya <[email protected]>
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios. Signed-off-by: Allison Karlitskaya <[email protected]>
As mentioned in containers#975, we should add a lint to ensure that all filenames are UTF-8, giving nice errors (with full pathnames) in the event that we encounter invalid filenames. We also check symlink targets. Add a unit test that tries various valid and invalid scenarios. Signed-off-by: Allison Karlitskaya <[email protected]> Signed-off-by: Colin Walters <[email protected]>
Since its creation ostree (current bootc backend) intentionally didn't support non-UTF8 filenames. In theory, we could lift that restriction as we look towards a direct composefs backend.
I personally think it's almost always going to be a mistake to ship non-UTF8 filenames in containers, but just filing this so we have a tracker.
Also, it'd probably be good to add this to
container lint
.The text was updated successfully, but these errors were encountered: