Only the uid:gid of the mounted file itself is being shifted.
- Lenguaje dominante
- Go
- Estrellas
- 73
- Forks
- 22
- Merge medio
- 9 h 44 min
- PR fusionados (30 d)
- 2
Descripción
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_IMAGE` of image X, and `CODER_INNER_USERNAME` fred.
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!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Empieza leyendo cli/docker.go alrededor de la línea 565 y reproduce el montaje de volume A y envbox descrito en el issue. Compara la propiedad del directorio montado con la propiedad de sus archivos y subdirectorios. Se considera terminado cuando se haya establecido el comportamiento esperado de la propiedad, ya sea confirmando que el comportamiento actual es intencionado o añadiendo el desplazamiento recursivo solicitado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, go, terraform
- Área
- infrastructure
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100