No support for adding custom certificate chains

Bug #1517180 reported by Mike McCracken
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Low
Unassigned
cloud-init
Expired
Wishlist
Unassigned
curtin
Triaged
Wishlist
Unassigned

Bug Description

In a MAAS behind a proxy that uses a self-signed certificate, when machines provisioned using maas attempt to contact e.g. https://entropy.ubuntu.com, they fail to validate the cert chain and fail.

Suggested solution borrowed from an email from kirkland:

On the MAAS administrative configuration page, we should add a small
section where the MAAS admin can copy/paste/edit any certificate
chains that they want to add to machines provisioned by MAAS. These
certs should then be inserted into /etc/ssl/certs by cloud-init or
curtin on initial install (depending on the earliest point at which
the cert might be needed).

Changed in maas:
importance: Undecided → Wishlist
status: New → Triaged
milestone: none → next
Revision history for this message
Mike Pontillo (mpontillo) wrote :

This is probably more useful in curtin, but I could see it being useful in cloud-init as well.

I expect this is more useful in curtin long-term, since those deploying in an environment with its own PKI infrastructure will be the primary users of this feature.

Having this in cloud-init would be good in case the certificates are needed during commissioning (i.e. to reach a TLS-protected MAAS URL), but I see that as lower priority.

Bottom line: for us to consider adding this feature to MAAS, it will probably need to be available in curtin first.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Oh, and by the way - this will do nothing about the spurious errors regarding entropy.ubuntu.com. (that certificate is pinned separately, by means of a root certificate present in the pollinate .deb)

One final note: if we can't reach entropy.ubuntu.com, it may look scary, but the error message is actually non-fatal.

Revision history for this message
Ryan Harper (raharper) wrote :

curtin already supports a way to inject files into the target filesystem.

MAAS can collect the certificates and use curtin in-target to inject them as needed.

Changed in curtin:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: cpe-onsite
Revision history for this message
Dan Watkins (oddbloke) wrote :

cloud-init has write_files support, so a similar workaround is possible.

Changed in cloud-init:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
Changed in maas:
status: Invalid → New
Revision history for this message
Alberto Donato (ack) wrote :

Thanks for your feature request, please could you start a thread over on our Discourse (https://discourse.maas.io) to discuss the feature?

Changed in maas:
importance: Wishlist → Low
milestone: next → none
status: New → Invalid
Revision history for this message
Fabian Lichtenegger-Lukas (chifac08) wrote (last edit ):

adding custom CA certs via cloud-init can be done with the "ca_certs" module (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#ca-certificates)

Revision history for this message
Alberto Contreras (aciba) wrote :

Do the certificates need to present for network configuration (IMDS data fetching)? In affirmative case, the certs cannot be injected using cloud-init config modules as this happen before the Network config stage. In negative case, cc_write_files or cc_ca_certs could be used and the cloud-init part of this ticket could be closed.

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.