Compare commits

...

2 Commits

Author SHA1 Message Date
Henry Haller
66f500635d Merge branch 'main' into airgapped 2025-11-26 23:15:58 -07:00
Henry Haller
a4671388a2 add comment about air gapped 2025-11-26 23:11:39 -07:00

View File

@@ -273,6 +273,22 @@ function interval_handler() {
if (!time_is_valid())
return;
discovery_method = DISCOVER_DHCP;
if (discover_dhcp())
return;
// I believe that right here is where we need to check if we need to use
// air gapped. I think it will be something like this:
// for example, assume that the dhcp lease discovered rxg.com as the cloud server
// from dns option 224.
// here we would do a txt dns lookup on est.rxg.com, and if we get a response from that,
// eg rxg.com, then we know that we need to set EST_SERVER=rxg.com
// and then we need to also set CERT_PREFIX=rxg.com.
// I think from there the est_client will do the expected things based on those env vars.
if (system('/usr/bin/est_client enroll'))
return;