Skip to content

Design document for ACME self check failure policy - #2772

Closed
anton-johansson wants to merge 1 commit into
cert-manager:masterfrom
anton-johansson:acme-self-check-failure-policy-design-doc
Closed

anton-johansson wants to merge 1 commit into
cert-manager:masterfrom
anton-johansson:acme-self-check-failure-policy-design-doc

Conversation

@anton-johansson

@anton-johansson anton-johansson commented Mar 31, 2020 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR adds a design document for controlling failure policies for the ACME self-check.

Which issue this PR fixes:

The design documentation does not solve anything per se, but the functionality that the design documentation suggests is related to #1292.

Special notes for your reviewer:

This is a work in progress. The namings aren't optimal and should be improved before merge.

Release note:

NONE

@jetstack-bot jetstack-bot added release-note-none Denotes a PR that doesn't merit a release note. 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 31, 2020
@jetstack-bot
jetstack-bot requested a review from JoshVanL March 31, 2020 16:10
@jetstack-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Details 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 kind/design Categorizes issue or PR as related to design. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 31, 2020
@jetstack-bot

Copy link
Copy Markdown
Contributor

Hi @anton-johansson. 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.

Details

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/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 31, 2020
@anton-johansson anton-johansson changed the title WIP: Draft of design documentation for ACME self check failure policy WIP: Design documentation for ACME self check failure policy Mar 31, 2020
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from f1d83b2 to 68722f2 Compare March 31, 2020 18:27
@anton-johansson

Copy link
Copy Markdown
Contributor Author

Does anyone have any thoughts on naming convention here? Maybe better with more descriptive enumeration values:

  • MustSucceed
  • FailureAllowed

@MatthiasLohr

Copy link
Copy Markdown

I think FailureAllowed sounds like... for what do you need it for? I would guess it's like "do the checks, but we will ignore the results". I would prefer something "Do NOT check, since I will ignore the results". Why should it be checked if it's ignored? It's only filling the logs and important log entries might be hidden. So maybe something like

  • disabled
  • successRequired / requireSuccess / validationRequired

Currently not sure if there are useful additional semantics.

@munnerz

munnerz commented Apr 2, 2020

Copy link
Copy Markdown
Member

I would guess it's like "do the checks, but we will ignore the results". I would prefer something "Do NOT check, since I will ignore the results". Why should it be checked if it's ignored?

The thinking is that a failure policy is universally applicable regardless of what strategy you choose, i.e. if we added an alternate strategy like 'external', it'd make sense to also be able to say "but permit failures". By still performing the check, we can report potential issues to users (i.e. 404 page not found was detected, but trying anyway due to policy) which can better inform people as to why it may still be failing after that.

I don't think this proposal is exclusive of also having a strategy field in future, and that strategy field may accept a value like None, but there's a fair bit more design around API surface that we'd need to consider, and given users are not really asking for ways to implement alternate strategies and instead want a way to skip the self check due to awkward network configurations, failurePolicy is something that can be added without creating too much controversy/complexity.

@jetstack-bot jetstack-bot added dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. and removed dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Apr 2, 2020
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from ad84f8b to 2aef51c Compare April 2, 2020 10:41
@anton-johansson

anton-johansson commented Apr 2, 2020 •

Copy link
Copy Markdown
Contributor Author

I will squash the commits - properly signed-off - and rebase the branch when the design has gotten an OK!

EDIT: Done.

@anton-johansson
anton-johansson requested a review from munnerz April 2, 2020 11:50
@munnerz munnerz added this to the v0.15 milestone Apr 6, 2020
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from 6becc5e to 7fb16a5 Compare April 6, 2020 10:04
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. and removed dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. labels Apr 6, 2020
@anton-johansson anton-johansson changed the title WIP: Design documentation for ACME self check failure policy Design documentation for ACME self check failure policy Apr 6, 2020
@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, 2020
@anton-johansson anton-johansson changed the title Design documentation for ACME self check failure policy Design document for ACME self check failure policy Apr 6, 2020
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from 7fb16a5 to 9d49c30 Compare April 6, 2020 10:10
@meyskens

meyskens commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

Looking great! Just one tiny spelling comment 😉

@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from 9d49c30 to b676efb Compare April 6, 2020 11:30
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from b676efb to a85994e Compare April 17, 2020 07:30
@anton-johansson
anton-johansson force-pushed the acme-self-check-failure-policy-design-doc branch from a85994e to e641475 Compare April 17, 2020 12:15
@munnerz munnerz modified the milestones: v0.15, Next Apr 27, 2020
@munnerz

munnerz commented May 22, 2020

Copy link
Copy Markdown
Member

Hey @anton-johansson - just checking in 😄 is there anything we can do to help this along?

@anton-johansson

Copy link
Copy Markdown
Contributor Author

Hey @munnerz. No, sadly. I pinged you on Slack a while ago about a way forward.

@meyskens

meyskens commented Dec 3, 2020

Copy link
Copy Markdown
Contributor

Closing old stale PRs to keep an overview for the reviewers. Feel free to /reopen if work started on this again.

/close

@jetstack-bot

Copy link
Copy Markdown
Contributor

@meyskens: Closed this PR.

Details

In response to this:

Closing old stale PRs to keep an overview for the reviewers. Feel free to /reopen if work started on this again.

/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

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/design Categorizes issue or PR as related to design. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants