splicemachine / splicectl

GNU Affero General Public License v3.0
2 stars 2 forks source link

feat: add support to supply a CA cert for untrusted CA certs #7

Closed splicemaahs closed 3 years ago

splicemaahs commented 3 years ago

Description

Provide a mechanism to supply a CA certificate to use in validation of the SSL endpoint for splicectl-api. This allows use of self-signed certs or certs that are signed by an untrusted CA.

The primary work is done in main.go. Reading from --cacert and SPLICECTL_CACERT. The rest of the edits are all the same, consuming the caBundle set in main.go and passing it to the goresty object.

Motivation and Context

In many on-prem installation we may not have a CA issued for POC and need a way to handle self-signed certificates.

Dependencies

How Has This Been Tested?

The functionality remains exactly the same if --cacert or export SPLICECTL_CACERT= are not specified or set.

Screenshots (if appropriate)

Checklist

If the pull request includes user-facing changes, extra documentation is required:

Changelog Inclusions

Additions

Changes

Fixes

Deprecated

Removed

Breaking Changes