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

Adding a new key acme-http01-solver-service-account to provide a se… #3817

Closed
wants to merge 1 commit into from
Closed

Adding a new key acme-http01-solver-service-account to provide a se… #3817

wants to merge 1 commit into from

Conversation

primael
Copy link

@primael primael commented Mar 29, 2021

…rvice account

Signed-off-by: Primaël Bruant primael.bruant@gmail.com

When deploying cert-manager using the Helm chart, we can specify the serviceAccount to use for:

the Webohook
the CA injector
the deployment
But we can't specify it for the HTTP01 ACME solver pod.

The problems with this are:

If the default serviceAccount is disabled, we need to provide a custom one
We can't use a serviceAccount with linked imagePullSecrets to be able to pull the solver image from private registries in air gapped environments
We can't apply PSPs to the solver pod.
To solve this, we propose to add a parameter --acme-http01-solver-service-account to cert-manager deployment to specify the serviceAccount to use in every namespace.

/kind feature

…rvice account

Signed-off-by: Primaël Bruant <primael.bruant@gmail.com>
@jetstack-bot
Copy link
Contributor

@primael: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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 jetstack-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Mar 29, 2021
@jetstack-bot jetstack-bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. area/acme Indicates a PR directly modifies the ACME Issuer code labels Mar 29, 2021
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: primael
To complete the pull request process, please assign munnerz
You can assign the PR to them by writing /assign @munnerz in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added area/acme/http01 Indicates a PR modifies ACME HTTP01 provider code needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 29, 2021
@jetstack-bot
Copy link
Contributor

Hi @primael. Thanks for your PR.

I'm waiting for a jetstack or cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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 jetstack-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 29, 2021
@meyskens
Copy link
Contributor

Thanks for the PR! Could you fill out the required fields in the PR description like the release-note that would help us a lot :)

/ok-to-test

@jetstack-bot jetstack-bot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 29, 2021
@primael primael marked this pull request as ready for review April 6, 2021 12:50
@jetstack-bot jetstack-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 6, 2021
@maelvls
Copy link
Member

maelvls commented Apr 15, 2021

Hi,

As James mentioned in #3852, would it rather make more sense to have this as a field on the Issuer API instead of a flag?

primael added a commit to primael/cert-manager that referenced this pull request Apr 22, 2021
cert-manager create the HTTP01 ACME solver pod, when can specify:

The image: --acme-http01-solver-image
The serviceAccount (#cert-manager#3817): --acme-http01-solver-service-account
The resources
But we can't specify the imagePullSecret to use.

This is an issue for:

Air gapped environments with private registries
Docker Hub rate limits for anonymous pulls
It is currently possible to use the serviceAccount with an attached
imagePullSecret, but it is not always convenient because it requires to
update the serviceAccount of every namespace in the cluster to link the
imagePullsecret.

Signed-off-by: primael <primael.bruant@gmail.com>
@jetstack-bot
Copy link
Contributor

@primael: PR needs rebase.

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 jetstack-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 22, 2021
@maelvls
Copy link
Member

maelvls commented Jul 5, 2021

Hi!

I will close this PR for the time being since it has not been worked on since March 2021. Please feel free to either re-open when you want to resume working on it.

/close

@jetstack-bot
Copy link
Contributor

@maelvls: Closed this PR.

In response to this:

Hi!

I will close this PR for the time being since it has not been worked on since March 2021. Please feel free to either re-open when you want to resume working on it.

/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/acme/http01 Indicates a PR modifies ACME HTTP01 provider code area/acme Indicates a PR directly modifies the ACME Issuer code dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants