cert-manager icon indicating copy to clipboard operation
cert-manager copied to clipboard

Specify Name Constraints in CA Certificate

Open t-cas opened this issue 5 years ago • 28 comments

Is your feature request related to a problem? Please describe. When creating a Certificate CR using flag isCA: true, there is today no possibility to specify Name Constraints to apply restrictions on the CN and SAN for this Sub-CA.

Describe the solution you'd like a new section spec.nameConstraints in Certificate CR for example:

spec:
  isCA: true
  nameConstraints:
  - type: permitted
    critical: true
    constraints:
      dns: [.private, .corp]
      ipAddress: [192.168.3.0/255.255.255.0]
  - type: excluded
    critical: true
    constraints:
      dns: [.secret.corp]

/kind feature

t-cas avatar Feb 11 '21 12:02 t-cas

Important Feature: Will be a critical addition to controlling boundaries for Sub CAs.

SivaBharahi avatar Aug 04 '21 11:08 SivaBharahi

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Nov 02 '21 11:11 jetstack-bot

/remove-lifecycle stale

t-cas avatar Nov 03 '21 14:11 t-cas

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Feb 01 '22 14:02 jetstack-bot

/remove-lifecycle stale

t-cas avatar Feb 01 '22 15:02 t-cas

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar May 02 '22 16:05 jetstack-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle rotten /remove-lifecycle stale

jetstack-bot avatar Jun 01 '22 16:06 jetstack-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten. Send feedback to jetstack. /close

jetstack-bot avatar Jul 01 '22 17:07 jetstack-bot

@jetstack-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten. Send feedback to jetstack. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

jetstack-bot avatar Jul 01 '22 17:07 jetstack-bot

/reopen

t-cas avatar Jul 04 '22 14:07 t-cas

@t-cas: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

jetstack-bot avatar Jul 04 '22 14:07 jetstack-bot

/remove-lifecycle rotten

t-cas avatar Jul 04 '22 14:07 t-cas

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Oct 02 '22 14:10 jetstack-bot

/remove-lifecycle stale

olix0r avatar Oct 03 '22 16:10 olix0r

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Jan 01 '23 16:01 jetstack-bot

/remove-lifecycle stale

sathyanarays avatar Jan 02 '23 03:01 sathyanarays

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Apr 02 '23 04:04 jetstack-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle rotten /remove-lifecycle stale

jetstack-bot avatar May 02 '23 04:05 jetstack-bot

/remove-lifecycle rotten

alfredkrohmer avatar May 07 '23 15:05 alfredkrohmer

any timelines?

smarunich avatar May 31 '23 18:05 smarunich

@smarunich i'm just another observer on this issue, but I think it's pretty clear that this is not currently a priority of the maintainers and there are no timelines.

It seems likely that this will only happen if/when this work is funded and someone engages the maintainers with a concrete proposal and implementation.

olix0r avatar May 31 '23 19:05 olix0r

Hey,

I am happy to report that this feature request is very high in the list of community requests for bugs and features! It currently stands at the 6th position. We (Venafi-sponsored maintainers) often use the number of thumbs up as a way to guide what to do next on our community-focused time.

At this point, the most requested feature is "certificate presets" with 49 thumbs up. That's what we have decided to work on for the next release as part of our "community time".

In the meantime, I'd be glad to talk and help design the feature and to review a contributor's PR if someone is interested!

maelvls avatar Aug 16 '23 13:08 maelvls

@maelvls , looks like this issue has got more votes since then. Can you help in taking this up in the current cycle?

deva26 avatar Sep 28 '23 18:09 deva26

@maelvls Is someone working on this? If not I am interested to take this forward.

tanujd11 avatar Nov 16 '23 08:11 tanujd11

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Send feedback to jetstack. /lifecycle stale

jetstack-bot avatar Feb 14 '24 09:02 jetstack-bot

/remove-lifecycle stale

alfredkrohmer avatar Mar 12 '24 12:03 alfredkrohmer

This seems possible now if enabling a feature gate, ref. https://cert-manager.io/docs/usage/certificate/#creating-certificate-with-name-constraints. I wonder if this issue can be closed, or if there is something missing? It would be nice to get some feedback from users who have showed interest in this feature!

erikgb avatar May 09 '24 12:05 erikgb

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close. /lifecycle stale

cert-manager-bot avatar Aug 07 '24 13:08 cert-manager-bot