Skip to content
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

https requests during ignition fail due to out-of-sync system clock - X509 certificate not yet available #1323

Closed
Valdenhub opened this issue Oct 19, 2022 · 3 comments
Labels

Comments

@Valdenhub
Copy link

Valdenhub commented Oct 19, 2022

Describe the bug
During a bare metal (Raspberry Pi 4) ignition, I'm unable to retrieve a remote ignition config from a trusted source, because the system time apparently has not been synced yet, even though the ignition process is already accessing internet no problem, judging from the ability to read the target certificate chain.

Reproduction steps
Steps to reproduce the behavior:

  1. Create ignition config that merges or replaces from a https source
  2. Ignite on bare metal, where the default system time could be a hit or miss. The system should have access to internet.

Expected behavior
Time synchronization should happen early on during the ignition, or at least be configurable.

Actual behavior
Https requests fail because the remote certificate is not valid yet.

System details

  • Bare Metal - Raspberry Pi 4 Model B
  • Fedora CoreOS version: 36.20221001.3.0

Butane config

variant: fcos
version: 1.4.0
ignition:
  config:
    merge:
      - source: https://url-to-ignition/file.ign
@travier
Copy link
Member

travier commented Oct 19, 2022

That would be a feature request for Ignition to force a time sync using NTP/NTPS, but it would need a config to figure out which NTP/NTPS server to use.

@Valdenhub
Copy link
Author

Moved the discussion to coreos/ignition#1484
Thanks for pointing me to right direction.

@Valdenhub Valdenhub closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2022
@bgilbert
Copy link
Contributor

See coreos/ignition#870.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants