ingress-nginx icon indicating copy to clipboard operation
ingress-nginx copied to clipboard

Add possibility to remove CA list from nginx.conf issue 8813

Open thmanders opened this issue 3 years ago • 12 comments

What this PR does / why we need it:

issue 8813 I added the possiblility to remove the ca list from the nginx.conf by adding a new annotation send-client-ca. This new annotation will always be put to true except if the auth-tls-verify-client = optional-no-ca and the send-client-ca = false

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation only

Which issue/s this PR fixes

issue #8813

How Has This Been Tested?

I started a local env with make dev-env I created an ingress and tested different possibilities in the annotations

Checklist:

  • [x] My change requires a change to the documentation.
  • [x] I have updated the documentation accordingly.
  • [x] I've read the CONTRIBUTION guide
  • [x] I have added tests to cover my changes.
  • [x] All new and existing tests passed.

thmanders avatar Jul 26 '22 09:07 thmanders

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: thmanders (565439be9883e89fd3ed3673fb06d49ec90426ab, 44fe1343e5c65ac7626c4fc09f84b055c32eab8d)

Welcome @thmanders!

It looks like this is your first PR to kubernetes/ingress-nginx 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/ingress-nginx has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Jul 26 '22 09:07 k8s-ci-robot

Hi @thmanders. Thanks for your PR.

I'm waiting for a kubernetes 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.

k8s-ci-robot avatar Jul 26 '22 09:07 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: thmanders Once this PR has been reviewed and has the lgtm label, please assign elvinefendi for approval by writing /assign @elvinefendi in a comment. For more information see:The Kubernetes Code Review Process.

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

k8s-ci-robot avatar Jul 26 '22 09:07 k8s-ci-robot

Hello, Please could you give me a first review. I would like to know if there is a chance that these modifications could be merged before completing the other checklist boxes Thanks

thmanders avatar Jul 26 '22 10:07 thmanders

Annotation documentation updated

thmanders avatar Jul 27 '22 07:07 thmanders

@thmanders Thank you for PR, can you add e2e testing as well?

Also, I think a more concise name would be something like sendClientCA, and the default is true. So a switch in the logic but practical is the same and more apparent to what it does. I am not a fan of negative flags like remove or false.

strongjz avatar Jul 28 '22 13:07 strongjz

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: thmanders (03824ebfe1f2e37ba6407466a304953f88eb846c)

@thmanders I think you need to rebase on main.

strongjz avatar Aug 03 '22 12:08 strongjz

@strongjz I regrouped everything in 1 commit

thmanders avatar Aug 04 '22 08:08 thmanders

/ok-to-test /kind feature /priority backlog /triage accepted

strongjz avatar Aug 04 '22 15:08 strongjz

/retest

thmanders avatar Aug 04 '22 17:08 thmanders

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Nov 03 '22 14:11 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Dec 03 '22 14:12 k8s-triage-robot

/remove-lifecycle rotten

tao12345666333 avatar Dec 03 '22 15:12 tao12345666333

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.

k8s-ci-robot avatar Jul 22 '23 12:07 k8s-ci-robot