]>
go.fuhry.dev Git - runtime.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Dan Fuhry [Fri, 25 Oct 2024 15:34:43 +0000 (11:34 -0400)]
hostname: support /etc/hosts, /etc/resolv.conf; add container detection
Needed for Kubernetes compatibility.
Kubernetes doesn't publish DNS records for pods. So the runtime can no longer assume that A/AAAA records exist for the host.
As a first step we need to be able to detect the hostname and kubernetes domain name. K8s is pretty good about populating `/etc/hosts` and `/etc/resolv.conf`, so we parse those when k8s is detected.
Dan Fuhry [Mon, 23 Sep 2024 17:11:24 +0000 (13:11 -0400)]
go mod tidy
Dan Fuhry [Fri, 13 Sep 2024 01:35:43 +0000 (21:35 -0400)]
sd/systemd: use generic network-online.target instead of systemd-networkd-wait-online.service
Dan Fuhry [Fri, 13 Sep 2024 01:35:03 +0000 (21:35 -0400)]
mtls/provider_file: better logging for load failures
Dan Fuhry [Fri, 13 Sep 2024 01:24:08 +0000 (21:24 -0400)]
machines: mqtt client: use credentials provider, not updateCreds
Fixes mqtt not successfully connecting on the first try (only on retries).
Dan Fuhry [Fri, 13 Sep 2024 01:22:07 +0000 (21:22 -0400)]
machines/coredns_plugin: map interface name + hostname to host ID
Will be used soon to support querying by interface name (not complete
yet)
Dan Fuhry [Fri, 13 Sep 2024 01:04:26 +0000 (21:04 -0400)]
machines/agent: support dns_server_v[46] fields with interface name stand ins
Add support for the `dns_server_v4` and `dns_server_v6` domain fields.
If either is a unix network interface name, use the primary IP address of that interface as the address.
Dan Fuhry [Fri, 13 Sep 2024 01:03:40 +0000 (21:03 -0400)]
machines: start captive portal config (not done yet)
Dan Fuhry [Fri, 13 Sep 2024 00:42:16 +0000 (20:42 -0400)]
machines_agent: daemonize with utils/daemon
Dan Fuhry [Fri, 13 Sep 2024 00:38:32 +0000 (20:38 -0400)]
utils/daemon: add new package
Add new "daemon" package to handle detaching on Linux and Unix systems.
Supports writing pid files, socket pair based startup messaging, and
systemd notification on Linux.
Dan Fuhry [Fri, 13 Sep 2024 00:17:37 +0000 (20:17 -0400)]
utils/hostname: handle special case of domain name = "(none)" on linux
Linux systems can return interesting values when the domain name is
unset, like "(none)" or an empty string. To handle these, hostname.go is
forked with special Hostname(), DomainName() and RegionName()
implementations for Linux and the original implementations for other
OSes.
Dan Fuhry [Fri, 13 Sep 2024 00:14:38 +0000 (20:14 -0400)]
utils/log: only init default logger once
Fixes configuration of the default logger via flags
Dan Fuhry [Thu, 12 Sep 2024 04:46:25 +0000 (00:46 -0400)]
dns: exclude 169.254.0.0/16 from lookup results, too
Dan Fuhry [Fri, 26 Jul 2024 16:37:07 +0000 (12:37 -0400)]
dns_cache: bypass systemd-resolved
On Linux systems, the stub resolv.conf points at systemd-resolved which uses the hostsfile. We don't want this - we need the system's addresses as described by the network's DNS server.
Dan Fuhry [Thu, 25 Apr 2024 04:09:40 +0000 (00:09 -0400)]
machines_agent: allow starting/stopping/restarting services from machines_agent cmd
Dan Fuhry [Thu, 25 Apr 2024 04:09:13 +0000 (00:09 -0400)]
machines agent: initial support for openbsd pid-file services
Dan Fuhry [Thu, 25 Apr 2024 04:05:36 +0000 (00:05 -0400)]
Makefile: fix on GNU make 3.81 (macos)
Dan Fuhry [Thu, 25 Apr 2024 04:05:07 +0000 (00:05 -0400)]
dns cache: fix message headers, populate edns udp size
Dan Fuhry [Tue, 23 Apr 2024 20:30:30 +0000 (16:30 -0400)]
always initialize mtls_certificate_rotation_count counter when cert discovered
Dan Fuhry [Tue, 23 Apr 2024 16:36:54 +0000 (12:36 -0400)]
gitignore mtls_exporter
Dan Fuhry [Tue, 23 Apr 2024 16:20:18 +0000 (12:20 -0400)]
mtls exporter must run as root to enumerate /etc/ssl/mtls
Dan Fuhry [Tue, 23 Apr 2024 16:17:43 +0000 (12:17 -0400)]
Add mTLS exporter
Dan Fuhry [Fri, 19 Apr 2024 02:04:49 +0000 (22:04 -0400)]
disable PIE on non-native builds
Dan Fuhry [Tue, 16 Apr 2024 12:40:46 +0000 (08:40 -0400)]
machines/coredns_plugin: fix erroneously case-sensitive hostname map
Dan Fuhry [Tue, 16 Apr 2024 12:39:08 +0000 (08:39 -0400)]
fix native build detection
Dan Fuhry [Tue, 16 Apr 2024 12:38:11 +0000 (08:38 -0400)]
machines/oauth2: fix stupid mistake in oauth2 http transport wrapper
Dan Fuhry [Tue, 16 Apr 2024 12:37:31 +0000 (08:37 -0400)]
metrics/mbserver: quote discriminator, rename label _instance -> _shard
Dan Fuhry [Tue, 16 Apr 2024 12:36:50 +0000 (08:36 -0400)]
apcupsd exporter: allow specifying NIS address and nominal power as flags
Dan Fuhry [Tue, 27 Feb 2024 21:22:15 +0000 (16:22 -0500)]
metricbus/mbclient: services are singletons
Dan Fuhry [Tue, 27 Feb 2024 21:03:31 +0000 (16:03 -0500)]
sase/happy_eyeballs: use HE for client dial; add flags to block v4 or v6 connections
Dan Fuhry [Tue, 27 Feb 2024 20:58:30 +0000 (15:58 -0500)]
machines: add agent, coredns plugin and conf file templates
Port of the python machines client.
Not all templates are fixed up and ready to go, only the ones that are known to be needed on linux routers.
No captive portal support for Linux yet.
Dan Fuhry [Tue, 27 Feb 2024 20:56:27 +0000 (15:56 -0500)]
utils/hashset: add AsSortedSlice()
Dan Fuhry [Tue, 27 Feb 2024 20:55:50 +0000 (15:55 -0500)]
machines/client: sparse generic type for server fields that can be a UUID or full struct
Dan Fuhry [Tue, 27 Feb 2024 15:31:16 +0000 (10:31 -0500)]
utils/hostname: fix build on darwin, support openbsd
Dan Fuhry [Tue, 27 Feb 2024 15:29:32 +0000 (10:29 -0500)]
mtls/pkcs11: conditional build with tag "pkcs11"
Dan Fuhry [Wed, 17 Jan 2024 04:21:55 +0000 (23:21 -0500)]
apcups_exporter: handle apcupsd restarts/downtime; add systemd unit
Dan Fuhry [Mon, 15 Jan 2024 01:35:21 +0000 (20:35 -0500)]
move metric-collector.service one level up for consistency
Dan Fuhry [Mon, 15 Jan 2024 01:30:52 +0000 (20:30 -0500)]
fix executable paths in .service files
Dan Fuhry [Mon, 15 Jan 2024 01:01:17 +0000 (20:01 -0500)]
tidy, update golang.org/x/crypto/ssh/terminal -> golang.org/x/term
Dan Fuhry [Mon, 15 Jan 2024 01:00:32 +0000 (20:00 -0500)]
Make some other constants overrideable
Dan Fuhry [Wed, 13 Dec 2023 14:16:25 +0000 (09:16 -0500)]
[mtls] LoadSSLCertificateFromFIlesystem: was using mtls base path, not ssl certs base path
Dan Fuhry [Wed, 13 Dec 2023 03:48:13 +0000 (22:48 -0500)]
Initial commit