diff --git a/docs/README.md b/docs/README.md index 8e316dc..d4be42b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,14 +8,14 @@ Pages are grouped by what the reader wants, following [the organization's docume | --- | --- | | [Reset and bootstrap the router](how-to/reset-and-bootstrap-the-router.md) | Rebuild the router from scratch and bring it back under OpenTofu | | [Reload the HAProxy configuration](how-to/reload-the-haproxy-configuration.md) | Change a public route | -| [Change the network](how-to/change-the-network.md) | Add a VLAN, a flow or a public hostname | +| [Change the network](how-to/change-the-network.md) | Add a VLAN, a flow, or a public hostname | | [Remove factory rules from the state](how-to/remove-factory-rules-from-the-state.md) | Clear a plan that wants to delete the factory firewall rules | ## Reference | Page | Content | | --- | --- | -| [Network plan](reference/network-plan.md) | Addresses, VLANs, wiring, hosts, public services and traffic flows | +| [Network plan](reference/network-plan.md) | Addresses, VLANs, wiring, hosts, public services, and traffic flows | ## Explanation diff --git a/docs/decisions/0001-three-configuration-layers.md b/docs/decisions/0001-three-configuration-layers.md index 409df49..3c2ab50 100644 --- a/docs/decisions/0001-three-configuration-layers.md +++ b/docs/decisions/0001-three-configuration-layers.md @@ -18,15 +18,15 @@ The router was reset and rebuilt by hand once. Drift between the bootstrap scrip ## Considered options * Three layers: factory configuration, the maintainer's bootstrap script, OpenTofu for the rest. -* OpenTofu for everything, including Ethernet ports and DNS settings. +* OpenTofu for everything, including Ethernet ports, and DNS settings. ## Decision outcome Chosen option: "three layers". * `defaults/default_configuration.rsc` is the MikroTik factory configuration. Never edit it. -* `defaults/base_configuration.rsc` is the maintainer's script that pre-provisions the router after a reset: DNS servers, hardening, certificates, services, Ethernet port MTU and L2MTU, which ports are disabled, the management LAN and base users. -* OpenTofu owns VLANs, addresses, DHCP, DNS records, the firewall, NAT, containers and the HAProxy configuration. +* `defaults/base_configuration.rsc` is the maintainer's script that pre-provisions the router after a reset: DNS servers, hardening, certificates, services, Ethernet port MTU and L2MTU, which ports are disabled, the management LAN, and base users. +* OpenTofu owns VLANs, addresses, DHCP, DNS records, the firewall, NAT, containers, and the HAProxy configuration. ### Consequences diff --git a/docs/decisions/0003-state-and-certificates-not-committed.md b/docs/decisions/0003-state-and-certificates-not-committed.md index e29efaa..f39b504 100644 --- a/docs/decisions/0003-state-and-certificates-not-committed.md +++ b/docs/decisions/0003-state-and-certificates-not-committed.md @@ -34,4 +34,4 @@ Chosen option: "commit neither". The state is not committed, even encrypted; `ce ### Commit the state encrypted * Good, because a backup in Git. -* Bad, because permanent history, churn and no locking. +* Bad, because permanent history, churn, and no locking. diff --git a/docs/explanation/architecture.md b/docs/explanation/architecture.md index 4479399..0fd122a 100644 --- a/docs/explanation/architecture.md +++ b/docs/explanation/architecture.md @@ -16,7 +16,7 @@ The facts (addresses, VLANs, hosts, flows) are in [the network plan](../referenc |---|---|---| | **Network** (this one) | The edge router: VLANs, addressing, DHCP, DNS, firewall, NAT, and the HAProxy container that publishes services | OpenTofu, RouterOS scripts | | **FrontPlane** | The three k0s Kubernetes clusters `control`, `core` and `svc` and everything that runs in them | FluxCD, SOPS + age, k0sctl, Cilium | -| **Ansible** | Everything that is not Kubernetes: the storage node, the HPC nodes, the Incus compute nodes, SSH hardening and the host firewalls | Ansible, Vault | +| **Ansible** | Everything that is not Kubernetes: the storage node, the HPC nodes, the Incus compute nodes, SSH hardening, and the host firewalls | Ansible, Vault | A flow between two VLANs has to be allowed in up to three places: the router (`firewall_rules` in [terraform.tfvars](../../terraform.tfvars)), the host firewall (`firewall_allowed_ports` in the Ansible inventory) and, for pod traffic, a NetworkPolicy in FrontPlane. See the [checklists](../how-to/change-the-network.md). @@ -45,7 +45,7 @@ flowchart TB - The VLAN interfaces use MTU 8152, so the bridge and every physical port under it need an L2MTU of at least 8156 (the bridge L2MTU is the lowest of its ports). [base_configuration.rsc](../../defaults/base_configuration.rsc) sets `l2mtu=8156` and `mtu=8156` on every Ethernet port. - The RB3011 has two switch chips (`ether1` to `ether5` on `switch1`, `ether6` to `ether10` on `switch2`). Traffic between the two groups is bridged by the CPU. -## DNS, TLS and secrets +## DNS, TLS, and secrets **DNS.** The router is the resolver of every VLAN (DHCP hands out `x.0.254`). It forwards to 1.1.1.1 and to the ISP box learned by DHCP. Static records for the nodes (`*.phorge`) and the three `*.core.phorge` aliases live in `dns_records`. Public `phorge.fr` names are on Cloudflare. diff --git a/docs/how-to/reset-and-bootstrap-the-router.md b/docs/how-to/reset-and-bootstrap-the-router.md index 420abeb..dd4565b 100644 --- a/docs/how-to/reset-and-bootstrap-the-router.md +++ b/docs/how-to/reset-and-bootstrap-the-router.md @@ -99,7 +99,7 @@ A reset router has none of the objects that the state remembers, and RouterOS id - Objects that the plan wants to create and that the router already has (an ID that changed): adopt them with `tofu import '
' '