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

Add IPA client-only mode #155

Closed
wants to merge 1 commit into from
Closed

Add IPA client-only mode #155

wants to merge 1 commit into from

Conversation

zultron
Copy link
Contributor

@zultron zultron commented Aug 21, 2017

The freeipa-container client branch functionality has never been merged back into the master branch, as IIRC the other distro-specific server branches have. A container with client functionality does have use cases. In our cluster environment, hosts not running an IPA server instead run an IPA client container with certmonger monitoring system certs.

It appears that the scripts in this repo might be easy enough to modify. A container created with this very first stab is able to enroll with a remote IPA, and the kinit, ipa and ipa-getcert commands appear to work.

This proof-of-concept patch hasn't been polished, reviewed or tested, and is expected to have fundamental flaws.

Container may be run in client-only modeby adding a
`ipa-client-install-options` file with arguments for the
`ipa-client-install` script, e.g.:

  --domain=example.com
  --server=host1.example.com
  --realm=EXAMPLE.COM
  --principal=admin
  --password=mysecretpass
  --unattended
@stlaz
Copy link
Contributor

stlaz commented Aug 22, 2017

Hello,

This repository's purpose is to provide IPA server functionality in a container. For IPA client installation in a container, there's already a (tested) solution for you:

https://hub.docker.com/r/fedora/sssd/

@adelton
Copy link
Collaborator

adelton commented Aug 22, 2017

I think the main problem here is, you do not want to run image which has all the huge number of FreeIPA server bits installed as client image. So any client image should likely come from separate Dockerfile.

Also, running ipa-server-configure-first.service to configure client does have a potential to bring confusion.

IIRC, the *client branches have never supported persistence and it'd be good to check if the server approach works for client setups out of box.

As Stanislav said, please check https://hub.docker.com/r/fedora/sssd/ which is based on https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/sssd. That setup was specifically desidned to run containerized client bits for the host (Atomic, but any host should do) and its identity. If you are on RHEL, the same solution is also available as registry.access.redhat.com/rhel7/sssd.

@zultron
Copy link
Contributor Author

zultron commented Aug 22, 2017

On 08/22/2017 02:26 AM, Jan Pazdziora wrote:

I think the main problem here is, you do not want to run image which has
all the huge number of FreeIPA server bits installed as client image. So
any client image should likely come from separate Dockerfile.

I can understand why some folks would not want that. Other folks might think using the same container image with the same scripts running all IPA services, if certmonger may be called that, conveys benefits that outweigh the extra disk space and image bloat.

Also, running |ipa-server-configure-first.service| to configure client
does have a potential to bring confusion.

True. I bet there are ways to mitigate this confusion.

IIRC, the |*client| branches have never supported persistence and it'd
be good to check if the server approach works for client setups out of box.

Yes, I think this will be the first problem one would find while testing this PR's trivial patch.

As Stanislav said, please check https://hub.docker.com/r/fedora/sssd/
which is based on
https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/sssd.
That setup was specifically desidned to run containerized client bits
for the host (Atomic, but any host should do) and its identity. If you
are on RHEL, the same solution is also available as
|registry.access.redhat.com/rhel7/sssd|.

That project has been abandoned. (And certmonger seems absent?)


Anyway, I hope there will someday be an organisationally-maintained client or certmonger container image. Perhaps that will come if/when the FreeIPA container is broken up into separate, smaller but linked httpd/ldap/tomcat/krb5/etc. containers. Perhaps that will not come as a result of this PR, and so I'll close it. Thanks for your comments.

@zultron zultron closed this Aug 22, 2017
@zultron
Copy link
Contributor Author

zultron commented Aug 22, 2017

FYI, the setup done to make the IPA service persistent also seems to make the IPA client persistent. Nice work!

@zultron zultron changed the title **DO NOT MERGE** Add IPA client-only mode Add IPA client-only mode Sep 13, 2017
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.

3 participants