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

If user is 0, they should be able to write to any groups #65

Closed
wants to merge 1 commit into from

Conversation

kaovilai
Copy link
Contributor

@kaovilai kaovilai commented Nov 1, 2024

debugging an install in crc.dev environment and blocked by directory is writable check despite running as gid 0.

alias db_multip
db_multip='docker buildx build --platform linux/amd64,linux/arm64 --tag $(ghcr_tag) --push'

~/git/local-volume-provider writeUser0
❯ alias ghcr_tag
ghcr_tag='echo ghcr.io/kaovilai/$(basename $PWD):$(current-branch)'

~/git/local-volume-provider writeUser0
❯ alias current-branch
current-branch='git branch --show-current'

~/git/local-volume-provider writeUser0
❯ db_multip -f deploy/Dockerfile .

ghcr.io/kaovilai/local-volume-provider:writeUser0

for testing vmware-tanzu/velero#8358

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

this is not for production

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

0.099 /go/src/github.com/replicatedhq/local-volume-provider/local-volume-fileserver/go.mod:3: invalid go version '1.22.4': must match format 1.23

bumping go mod to 1.23

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

142.7 github.com/klauspost/compress/internal/cpuinfo: /usr/local/go/pkg/tool/linux_amd64/compile: signal: segmentation fault (core dumped)
169.1 runtime: /usr/local/go/pkg/tool/linux_amd64/asm: signal: segmentation fault (core dumped)

increases docker vm ram?

@kaovilai
Copy link
Contributor Author

kaovilai commented Nov 1, 2024

can't cross compile on arm64 mac.. prob golang/go#46644. fixed via #66

92.91 internal/bytealg: /usr/local/go/pkg/tool/linux_amd64/asm: signal: segmentation fault (core dumped)
------
Dockerfile:23
--------------------
  21 |     COPY pkg ./pkg
  22 |     ARG VERSION=main
  23 | >>> RUN CGO_ENABLED=0 go build -ldflags=" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=$VERSION " -o /go/bin/local-volume-fileserver ./cmd/local-volume-fileserver
  24 |     
  25 |     FROM debian:bullseye-slim
--------------------
ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c CGO_ENABLED=0 go build -ldflags=\" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=$VERSION \" -o /go/bin/local-volume-fileserver ./cmd/local-volume-fileserver" did not complete successfully: exit code: 1

@kaovilai kaovilai force-pushed the writeUser0 branch 2 times, most recently from b477667 to 29587cc Compare November 12, 2024 00:01
@kaovilai
Copy link
Contributor Author

Alright folks.. looks like I need a lesson in unix permission bits and binary masks.

This PR is no-op but I learned a ton :D. BSL is available without this PR changes. I just had to set securityContexts in configmap and we're off 🚀 .

@kaovilai kaovilai closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant