Update nodeenrollment to fix TLS issue; add debug (#3231)
* Add more logging to worker auth rotation and test flags This makes it much easier to figure out when and why rotation is happening and control it for tests/debugging. * Update auth rotation logic Because we were looking at validity period of client certs, which may not have matched the actual rotation interval, it was possible (mostly in test scenarios) for the rotation to happen multiple times on the roots before we actually hit the worker rotation interval. This changes how the interval is calculated by looking at the difference between not-after values on the certs to understand the rotation interval being used by the controller. We then use that as the starting point for calculating a next-rotation time.
This commit is contained in:
1 parent
77fd51fb12
commit
5716a30813
6 files changed
+115
-88
No files matched your search
@@ -96,7 +96,7 @@ require (
|
||||
github.com/hashicorp/cap/ldap v0.0.0-20230123181313-9c0fb924b0d9
|
||||
github.com/hashicorp/go-kms-wrapping/extras/kms/v2 v2.0.0-20221122211539-47c893099f13
|
||||
github.com/hashicorp/go-version v1.3.0
|
||||
github.com/hashicorp/nodeenrollment v0.2.1
|
||||
github.com/hashicorp/nodeenrollment v0.2.2
|
||||
github.com/jimlambrt/gldap v0.1.6-0.20230501161051-4e73db4906d4
|
||||
github.com/kelseyhightower/envconfig v1.4.0
|
||||
github.com/mikesmitty/edkey v0.0.0-20170222072505-3356ea4e686a
|
||||
|
||||
Reference in new issue
Block a user