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

run ocicrypt keyprovider outside of container (or at least as the running user) on encrypt/decrypt #85

Open
Dsolnik opened this issue Mar 16, 2023 · 1 comment

Comments

@Dsolnik
Copy link
Contributor

Dsolnik commented Mar 16, 2023

Hello!

When using ocicrypt, I believe at least, the key provider is executed inside of the container as root so $USER is root. Is there a way to disable this and run as the user making the request?

Thanks

@Dsolnik
Copy link
Contributor Author

Dsolnik commented Mar 17, 2023

To reproduce this, make https://github.com/lumjjb/simple-ocicrypt-keyprovider print out the current user:

   currentUser, err := user.Current()
   if err != nil {
      log.Fatalf(err.Error())
   }
   username := currentUser.Username

   fmt.Printf("Username is: %s\n", username)

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

No branches or pull requests

1 participant