-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default pki.disconnect_invalid
to true and make it reloadable
#859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice! i don't understand the code, but it looks right?
6e6e895
to
8cdb7d7
Compare
@@ -170,7 +169,6 @@ func NewInterface(ctx context.Context, c *InterfaceConfig) (*Interface, error) { | |||
writers: make([]*udp.Conn, c.routines), | |||
readers: make([]io.ReadWriteCloser, c.routines), | |||
caPool: c.caPool, | |||
disconnectInvalid: c.disconnectInvalid, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need ifce.disconnectInvalid.Store(c.disconnectInvalid)
below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like no, because we call ifce.reloadDisconnectInvalid(c)
after calling NewInterface
from main.go.
This is contrast to ifce.certState
which is handled internally in this function.
I think this approach is a little awkward because the caller may not be aware they need to initialize this value.
8cdb7d7
to
1ac02c5
Compare
a1a2510
to
11bacce
Compare
With #838 merged there is a path to refresh certificates and rekey tunnels without having to restart the nebula process. It would be a good practice to flip this to
true
.