Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Jackie Luc de225e4d34
feat: add mTLS to CNS (#2751)
* feat: add UseMTLS config

* feat: add mTLS auth for CNS

* test: add testdata for mTLS tests

* chore: add logs on TLS config retrieval

* lint: in tests

* refactor: use CNS logger, not ACN logger

* refactor: add guards to mtlsRootCAsFromCertificate and unit tests

* lint: fix lint errors

* test: include HTTP listener tests for when TLS/mTLS is enabled

* chore: add log for stopping the TLS listener

* test: add test helper to create certificates for testing instead of using hardcoded pem file

* test: assert non-TLS service has no TLSSettings

* test: refactor TestMtlsRootCAsFromCertificate to table-based tests

* refactor: pull listener addresses from listener and remove redundant struct field for tls address
2024-06-07 22:26:49 +00:00
Ramiro 69f851a25a
adding a cert refresher construct (#1426) 2022-06-16 23:32:33 +00:00
Eng Zer Jun e812bc82b8
refactor: move from io/ioutil to io and os packages (#1096)
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-17 16:31:42 -06:00
Evan Baker 96bec09d41
chore: appease the linter (3/?), the big gofumpt (#987)
* gofumpt -w -s .

* small addtl cleanups after gofumpt

* rerun after rebase
2021-09-02 16:33:18 -05:00
Mathew Merrick 1fa243e5f5
CI: Add golint-ci (#888)
* add golint-ci

* add gofmt

* enable linters

* uncap count

* fix linting/fmt issues
2021-06-01 16:58:56 -07:00
aegal 169d7d7935
Updates for TLS: reading from encrypted PEM file & hostname fix (#742)
* tls fixes

* updating test

* update to support linux as well

* update to support linux and windows

* remove old test file

* pushing minor changes
2020-11-30 14:05:25 -08:00
aegal 13677e6092
changes to support http and https for CNS (#717)
* changes to support http and https for CNS

* correct small typo

* address feedback

* address feedback

* rename file

* small fix

* small fix

* fixing issue with cert not found
2020-11-06 09:51:30 -08:00