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

Docker (new test version) does not show owner & group info in hamburger popup. #36

Open
marioscube opened this issue May 9, 2022 · 14 comments
Assignees
Labels
discussion enhancement New feature or request
Milestone

Comments

@marioscube
Copy link

The owner and group fields are empty.
Screenshot 2022-05-09 at 17 58 34

if: docker exec -ti puptest /bin/sh
Screenshot 2022-05-09 at 18 43 54

Logical, because the container does not know the names of owner:group 1000:1000 inside the container.

The simples of fixes is to no longer show this info.

Just show the permissions info and I'm happy.

I really like the keep it simple approach of pupcloud.
Just kill off features that do not work and only add features that dd to the functionality of pupcloud! NO need to make the code bloated (and slower) with exceptions and workarounds.

Maybe make this a discussion, not an issue?

@proofrock proofrock self-assigned this May 9, 2022
@proofrock proofrock added enhancement New feature or request discussion labels May 9, 2022
@proofrock
Copy link
Owner

Thanks for your words, yes, it's the approach I'd like to take.

In the case at hand, here, the problem is that we have an information for that file (the numeric ID), so it's "wrong" that the code fails "just" because there's not a name associated to it. The "correct" way IMHO would be to display what you have, i.e. the number, and stop there (best effort).

Then if an user wants to do his own docker based on mine, and add the names, well, he could.

@proofrock proofrock added this to the v0.8.1 milestone May 9, 2022
@marioscube
Copy link
Author

Yes, but after some consideration, what does the info of owner:group add for the home user?
Nothing, the user set up pupcloud with his/her chosen user:group pair.

So remove it, problem solved.

If I should give a link to someone else (share) I do not want them to know the owner:group / PUID:GUID. That could be a security risk, or am I mistaken (I am slightly paranoid when I want to.)

@proofrock
Copy link
Owner

I don't really know what security risk may it pose, and also (truth to be told) what kind of usefulness may it have, other than "I cannot delete this, ah ok, it's not my file" kind of thing... I just think that if it's there, and doesn't "cost" much, the more information is shown the better. But you're the second person saying so, that's 2 versus 1, I'll think about it ;-)

@proofrock
Copy link
Owner

As a side note: I'm pretty busy these days. I'll begin work again in a couple of weeks; I am sorry, it's just to set expectations. In the meanwhile I'll try to consolidate all feature requests in a single discussion, close these issues and make a proper roadmap.

@DarrenPIngram
Copy link

I've added elsewhere my desire not to show this enhanced information, even if set as an env or something.

User-case, public sharing where there is not even an expectation of being able to do anything than download.

@marioscube
Copy link
Author

As the main user I would like to know Owner Group and Permissions (Why can I not copy or delete a file?)

A shared user does not need to know this. A shared user can only view and/or download.

So show for main user, do not show for shared user.

@proofrock
Copy link
Owner

This seems reasonable (@DarrenPIngram what do you think?) but it doesn't solve the topic of this issue, that needs to be fixed anyway. Let's maybe spin it off to another issue?

@DarrenPIngram
Copy link

Yes, there can be different user cases for sure.

As long as it can be turned on, or off, with a share instance that is fine. If (as I FRed) there can be several users to the same instance, turning it on for John (if default is off) or vice versa is fine.

If it is easier, even turning the panel off or on is equally fine.

@marioscube
Copy link
Author

marioscube commented May 11, 2022

I fear the topic of this issue cannot be fixed:

Pupcloud inside a docker container does not know the name of the Owner of the folder an/or file on the host system.

It;s a docker "issue". Don't fix. Put it down as a limitation of pupcloud inside docker.

I liked pup:pup so i knew I was inside a docker container.

EDIT:

I changed the Owner:Group of a directory to root and a file to www-data:www-data. This showed op:
Screenshot 2022-05-11 at 12 19 38
Screenshot 2022-05-11 at 12 20 16

Root is ok, but www-data is NOT xfs !!! :-)

@DarrenPIngram
Copy link

DarrenPIngram commented May 11, 2022 via email

@proofrock
Copy link
Owner

Yes, that was before the latest changes in the develop branch (that's why "new test version" is in the title). But it was accidental: pup:pup is 1000:1000, and your files happen to be owned by 1000:1000 (that's the first account in a system, usually). So if you had another user, it would show '--'.

@DarrenPIngram
Copy link

DarrenPIngram commented May 11, 2022 via email

@marioscube
Copy link
Author

@proofrock true

Please see my edit on previous reply.

@proofrock
Copy link
Owner

proofrock commented May 11, 2022

is it packaged?

Check issue #30 for a backstory, the test image is listed there but it just solves that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants