Closed izgeri closed 3 years ago
@diverdane will this include programmatically retrieving the Conjur SSL certificate, as we researched in cyberark/conjur#2038?
@izgeri - Re. Conjur SSL certificate retrieval, I've added a requirement that the README.md must include step-by-step instructions on how a user can retrieve the Conjur SSL certificate using the Golang code and steps that @doodlesbykumbi developed and documented.
FYI: For future consideration, there may be a way to make this a little more seamless for the Kubernetes admin by integrating the Golang code that does Conjur SSL cert retrieval with the Helm chart by using Helm chart "Post Renderer": https://helm.sh/docs/topics/advanced/#post-rendering The post renderer could be a bash script or it could be wrapped in the Helm Go SDK: https://helm.sh/docs/topics/advanced/#go-sdk
Overview
This user story requires the definition of a cluster prep helm chart, including:
values.yaml
filetemplates/golden_configmap.yaml
templated manifesttemplates/service_account.yaml
templated manifesttemplates/clusterrole.yaml
templated manifestREADME.md
explaining basic usage and a table of configurable valuesNOTES.txt
simply announcing completion, maybe listing objects that have been deployedDesired Implementation
Out of Scope:
values.schema.json
(covered in Issue #233)unittest
framework (covered in Issue #234)Kubernetes Objects to be Created for Helm install/upgrade
When
helm install ...
is invoked on this Helm chart, there should be two Kubernetes objects created in the authenticator Namespace:Sample Golden ConfigMap Manifest
When
helm install ...
is invoked using this Helm chart, Helm should render a manifest for a Golden ConfigMap that looks similar to the following:Sample ClusterRole Manifest
When
helm install ...
is invoked using this Helm chart, Helm should render a manifest for a ClusterRole that looks similar to the following:Sample ServiceAccount Manifest
When
helm install ...
is invoked using this Helm chart, Helm should render a manifest for a ServiceAccount that looks similar to the following:Helm chart Files to be created
This Helm chart requires the creation of the following files in the chart subdirectory:
values.yaml
filetemplates/golden_configmap.yaml
templated manifesttemplates/authn_serviceaccount.yaml
templated manifesttemplates/authn_clusterrole.yaml
templated manifestREADME.md
explaining basic usage, upgrade examples, and a table of configurable valuesNOTES.txt
simply announcing completion, maybe listing objects that have been deployedvalues.yaml
requirementsThe
values.yaml
file created for this Helm chart must contain the fields that are listed in the "Kubernetes Cluster Prep Helm Chart Value" column of the "User Input: Information Gathered for Kubernetes Cluster Preparation" section of this document: https://cyberark365.sharepoint.com/:w:/s/Conjur/EbhBd0DKYt1MstzSj-4sWOkBssiD23FAHA4JgW-2V2YwrA?e=04gdla.Additional "control knobs"
The
values.yaml
file should also include a couple of other "control knobs":authnK8s.serviceAccount.enable This is for future-proofing. For some deployments, e.g. with the Conjur OSS Helm chart, there already exists a ServiceAccount that can be used/re-used.
Default values
The
values.yaml
file should provide the following default values:conjur.account
defaults to "default"authnK8s.rbac.enable
defaults to trueauthnK8s.serviceAccount.enable
defaults to trueTemplate manifests requirements
The template manifests must enforce that required values have been explicitly defined. Required values are those fields in the
values.yaml
file that are indicated as "Mandatory" in the "Kubernetes Cluster Prep Helm Chart Value" column of the "User Input: Information Gathered for Kubernetes Cluster Preparation" section of this document: https://cyberark365.sharepoint.com/:w:/s/Conjur/EbhBd0DKYt1MstzSj-4sWOkBssiD23FAHA4JgW-2V2YwrA?e=04gdla.README.md
requirementsThe
README.md
must include:NOTES.txt
requirementsNOTES.txt
should announce completion, maybe listing objects that have been deployedEnvironments on Which to Test
For this implementation, it should be sufficient to test this Helm chart on:
DoD: