cyberark / conjur-authn-k8s-client

Authentication sidecar for Conjur Kubernetes integration.
https://www.conjur.org
Apache License 2.0
12 stars 14 forks source link

The cluster helm test queries the /info endpoint for validation #230

Closed izgeri closed 3 years ago

izgeri commented 3 years ago

Overview

This issue builds on the framework created in Issue #229. For an overview of the cluster prep Helm chart Helm test framework, refer to Issue #229.

This issue adds a validation of the following Conjur configuration fields in the Golden ConfigMap:

Addition of conjur.type (can be "oss" or "enterprise") to chart values

A conjur.type field should be added to the chart's values.yaml file. The default setting for this value will be "oss".

Expecting /info access vs. "best effort"

Parsing /info endpoint data and validating

When access to the /info endpoint is successful, the returned data will be parsed for:

If the actual Conjur account does not match the conjurAccount value in the Golden ConfigMap, then a test failure is declared.

If the enabled authn-k8s authenticator IDs do not contain the authnK8sAuthenticatorID value in the Golden ConfigMap, then a test failure is declared.

Test results

Test failures must appear in the command line output of the helm test ... command. The output should be clear about which value has been misconfigured.

Test environments

Testing must be done both with Conjur OSS instance and a Conjur Enterprise instance.

DoD

izgeri commented 3 years ago

I wonder if conjur.type should be conjur.edition? We've started talking about how it's "One product, multiple editions", which is what gave me this idea :)