On ti, 11 joulu 2018, None via FreeIPA-users wrote:
Hello,

if possible i would like to use the FreeIPA ca for Kubernetes. but kubernetes 
has some requirements on the CN and O.

the CN has to match the pattern system:node:$FQDN
and O has to match system:node

also see: 
https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/04-certificate-authority.md

is this possible with the FreeIPA CA, or do i need to use another ca for 
Kubernetes?
Did you check https://github.com/zultron/freeipa-cloud-prov? This one
does not employ Node Authorization mode so it doesn't have the same
requirements.

https://github.com/zultron/freeipa-cloud-prov/blob/c33758e80ba09f076b10a341f9dff105b0d5c423/playbooks/roles/ipa-certs/tasks/op-service-certs.yaml
certainly doesn't follow the pattern you describe when requesting
service certificates.

If you still want to use Node Authorization, you can certainly add a
certificate profile that explicitly sets CN to system:node:$FQDN when a
certificate request contains just $FQDN. Same for explicitly adding
O=system:node.

See 
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/linux_domain_identity_authentication_and_policy_guide/certificate-profiles

Also check Fraser's blog:
https://frasertweedale.github.io/blog-redhat/archive.html, there are few
examples on how to create a specialized certificate profile.

--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org

Reply via email to