GithubHelp home page GithubHelp logo

Comments (6)

Steve973 avatar Steve973 commented on May 30, 2024

Note that I am trying to avoid bringing pods/containers up separately in order to provide separate command-line user/group ID mappings. My goal is to use podman kube play to bring up a stack of services at once, and let the namespace apply to each pod/container that I bring up. If we could either entirely bypass the way the system is configured in nsswitch.conf to use sss, and use whatever we set up in /etc/subuid and /etc/subgid, or let static podman use the subordinate ID mappings that are set up with FreeIPA, that would be ideal.

from podman-static.

mgoltzsche avatar mgoltzsche commented on May 30, 2024

Hi @Steve973, thanks for creating the issue and sorry for my late response.
I am not sure how FreeIPA sets things up.
It would be great if you could provide a small reproducible example to illustrate your use-case.
Generally, you could mount a custom /etc/subuid//etc/subgid.
Fwiw I changed the podman-static image recently to use a smaller id range when aligning it with the official, fedora based podman container image.

from podman-static.

Steve973 avatar Steve973 commented on May 30, 2024

I am not sure how I could create an example. Our system admins (at my workplace) manage our servers, and I don't have the knowledge/experience to readily know how to set up an idm server, freeipa, etc, with a container, and I do not know if that is feasible or possible. However, I can point you to some redhat reference material. This link describes using sssd with nss:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system-level_authentication_guide/Configuring_Services#Configuration_Options-NSS_Configuration_Options

You can also set "subid sss" in nsswitch.conf, though you cannot specify both "files" and "sss" for subids.

Perhaps a similar issue with toolbox would be helpful, as well: containers/toolbox#1074

Of a recent-historical note, I found a ticket for SSSD where they discuss adding support for subid resources with IPA back in June of 2020: SSSD/sssd#5197 and the first comment includes a link to the corresponding ticket in the FreeIPA issue tracker.

While those links are more use-case driven, perhaps the most comprehensive documentation that I can find on how FreeIPA manages subordinate IDs is here: https://freeipa.readthedocs.io/en/latest/designs/subordinate-ids.html

I apologize for virtually smothering you in documentation, since system administration is not my specialty, and I am only a "devops-as-needed-when-nobody-else-will-do-it" variety of dangerous. However, if there is anything that I can test for you, I would be glad to do it. Speaking of that, are you suggesting that I mount /etc/subuid and /etc/subgid in containers that I am launching? Presently, I am going to assume that this is your meaning, so I can try that. If that works, particularly on systems that use FreeIPA, then this issue would be moot, and I would feel comfortable in closing it. I will give it a try, and if that serves as a workaround for my subordinate ID issue, then perhaps the documentation could include that information.

Please let me know if you would like me to try anything else in the meantime, and I will comment further if the subid files have the intended effect.

from podman-static.

mgoltzsche avatar mgoltzsche commented on May 30, 2024

Sorry, but I don't find the time to dig into that currently. I hope you solved it already - good luck otherwise.

If you need to make changes to podman-static, we can discuss them here and I'd be happy to review a PR if any. Anyway, if you find a solution to your problem, please let us know.

from podman-static.

Steve973 avatar Steve973 commented on May 30, 2024

That sounds like you are not interested in fixing this. It would be extremely useful, but that is up to you. If you are not going to fix this (very thoroughly detailed issue) then feel free to close this ticket if you want.

from podman-static.

mgoltzsche avatar mgoltzsche commented on May 30, 2024

To be clear, the issue is not thoroughly detailed because it does not fully explain what the problem is, how to reproduce it and what needs to be changed to fix it. It looks like you didn't even try mounting the configuration files with your changes as I suggested. I am sharing this repo as part of a solution to a problem I had once. To solve your specific integration problem, you'd have to spend a bit more time investigating and fixing it.

In case anybody else has the same problem, please feel free to reopen the issue.
Though, I guess changing the default configuration would be more of a discussion within the upstream podman repo anyway since the configuration shipped by this repo is supposed to be aligned with the upstream config/image.

from podman-static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.