Skip to content

🐛 BUG: overall poor behavior with "not before" field in host certificate #1130

@lostmsu

Description

@lostmsu

What version of nebula are you using? (nebula -version)

1.8.2

What operating system are you using?

Windows

Describe the Bug

Repro steps:

  • sign a host certificate
  • rollback time a little bit
  • try to start nebula client

Expected:

Some reasonable behavior, e.g. one of the

  • no error because small time drift is mitigated by nebula-cert setting "not before" to a few minutes prior to now
  • if "not before" is in the future some short interval away from now, nebula prints a warning, waits for "not before", then resumes connection
  • nebula returns a descriptive error message (preferably machine readable so the invoker can figure out "not before" value) and exits with some specific error code

Actual:

  • client exits claiming certificate has expired

Logs from affected hosts

error="nebula certificate for this host is expired"

Config files from affected hosts

Nothing special

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions