8000 feat: add tls support with selfsigned certs by qdzlug · Pull Request #31 · nginxinc/kic-reference-architectures · GitHub
[go: up one dir, main page]

Skip to content

Conversation

qdzlug
Copy link
Contributor
@qdzlug qdzlug commented Jul 23, 2021

Proposed changes

Add TLS support to the bank of anthos application, including an example ingress object using a self-signed cluster issuer resource. This requires adding cert-manager to the project as well. This can be used by additional ingress objects deployed as part of this framework.

This will close #6

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have written my commit messages in the Conventional Commits format.
  • I have read the CONTRIBUTING doc
  • I have added tests (when possible) that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto master
  • I will ensure my PR is targeting the master branch and pulling from my branch from my own fork

@qdzlug qdzlug mentioned this pull request Jul 23, 2021
@qdzlug qdzlug requested a review from dekobon July 23, 2021 00:25
namespace=ns.metadata.name,
repo=CERTMGR_HELM_REPO_NAME,
fetch_opts=FetchOpts(repo=CERTMGR_HELM_REPO_URL),
version='v1.4.0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make version configurable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version, chart repo url, and chart repo name are now all configurable in the master config with fallback options if they are unset.

),
)],
))
boaingress = k8s.networking.v1beta1.Ingress("boaingress",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this block has become more complex, it would be good to intersperse it with comments to tell the story about what you are doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of additional detail added to that section in comments.


# If we have not defined a hostname in our config, we use the
# hostname of the LB.
if not anthos_host:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing this? This also deserves a comment (if it doesn't already exist).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a comment, but I beefed it up a bit. the tl;dr is that we need to give the ingress object a hostname, and we default to the loadbalancer name. I note how this impacts TLS if the user moves to real certs and not self-signed.

Jason Schmidt added 2 commits July 23, 2021 13:37
feat: move configuration variables for helm chart to config file w/ fallbacks
feat: add documentation in anthos kic  block to explain process
@qdzlug qdzlug merged commit 10ef1b7 into nginxinc:master Jul 23, 2021
@qdzlug qdzlug deleted the selfsigned branch July 23, 2021 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Cert-Manager Support
2 participants
0