DiamondLightSource / DiamondLightSource/python-copier-template
rootful is broken
- Linguagem predominante
- Jinja
- Estrelas
- 25
- Forks
- 10
- Merge médio
- 4h 4min
- PRs com merge (30d)
- 6
Descrição
If you use the python copier template developer container and you have docker (or rootful podman) then it does not work as intended:
- GOOD: it loads and you can work on the project and run tests
- BAD: massively insecure as you are running as true root
- UGLY: project files get written by root and the git gets really angry
There used to be a workaround to this in devcontainer.json
```json
"remoteUser": "${localEnv:VSCODE_REMOTE_USER}"
```
docker users were then expected to set VSCODE_REMOTE_USER=$(id -u):$(id -g) in their bashrc.
podman users need do nothing as blank == default == root which is just right in a a rootless container.
Not ideal. But it was the best I could come up with.
Guia de contribuição
Direção de pesquisa
Comece pela configuração devcontainer.json no template Python Copier e reproduza o comportamento usando Docker ou rootful Podman. Compare o tratamento atual do usuário do contêiner com o workaround anterior VSCODE_REMOTE_USER; o trabalho estará concluído quando o contêiner continuar utilizável sem ser executado como root de verdade nem deixar os arquivos do projeto pertencentes a root.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- docker, python
- Domínio
- developer-experience, devops
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 30/100