Only the uid:gid of the mounted file itself is being shifted.
Personne n'a encore pris cette issue.
- Langage dominant
- Go
- Étoiles
- 73
- Forks
- 22
- Merge moyen
- 9 h 44 min
- PR mergées (30 j)
- 2
Description
Hi!
I am observing the situation where the uid and gid of the mounted file itself is being 'shifted'.
What I am doing in my terraform:
-
I have a volume, call it volume A, mounted in a container using image X. Then I put some files into this volume. The user is fred with uid and gid of 1000. Then I changed the permissions of the files I put into the volume with 1000:1000 as well.
-
Then I mount the volume A again to the container with the envbox image to home/xxxx. I have passed the environment variable
CODER_MOUNTS : /home/xxxx:/home/fred,CODER_INNER_IMAGEof image X, andCODER_INNER_USERNAMEfred.
What was observed:
- Only the folder /home/fred is updated with the ownership of 101000:101000
- None of the files within this folder/volume is updated with the correct ownership. They are still 1000:1000
The expected behavior is more like the folder/volume and all of the content within is updated with the 'shifted' uid:gid.
I see the code here where it does the shift, but it doesn't seem like it is shifting the files within: https://github.com/coder/envbox/blob/main/cli/docker.go#L565
Could you please let me know if the current implementation is intentional?
Thank you!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par lire cli/docker.go autour de la ligne 565 et reproduisez le montage de volume A et envbox décrit dans l’issue. Comparez la propriété du répertoire monté avec celle de ses fichiers et sous-répertoires. Le travail est terminé lorsque le comportement attendu de la propriété est établi, soit en confirmant que le comportement actuel est intentionnel, soit en ajoutant le décalage récursif demandé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- docker, go, terraform
- Domaine
- infrastructure
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100