Skip to content

Commit bdb41e2

Browse files
committed
Microshift coredns hosts enhancment added file path risk
Signed-off-by: Evgeny Slutsky <[email protected]>
1 parent e16826d commit bdb41e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

enhancements/microshift/microshift-coredns-hosts.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ dns:
9595
```
9696
By default, the `dns.hosts.status` feature is **Disabled**. If a Admin enables this feature (i.e., sets `dns.hosts.status` to `Enabled`) but does not specify a file, MicroShift will automatically default `dns.hosts.file` to "/etc/hosts".
9797

98+
### Exposure of Sensitive Files
99+
There is a potential risk of exposing sensitive files in the system due to the configurability of the hosts file path. The MicroShift configuration (and thus the file watcher service) runs as root, allowing the administrator to specify any file as the source of hosts data. Users have full flexibility and control over the `dns.hosts.file` configuration knob, but this capability comes with responsibility.
100+
101+
If the configured file contains sensitive data (e.g., private keys, password files, or other confidential information), its contents could be unintentionally synchronized into the MicroShift ConfigMap and made visible to CoreDNS pods, thus increasing the risk of accidental disclosure.
102+
103+
**Risk Mitigation:**
104+
This risk has been considered as part of the enhancement. By design, only the root user or administrators managing the MicroShift configuration can change the file path, reducing the attack surface. However, it is essential for administrators to ensure that the configured hosts file path contains *only* host-to-IP mappings meant to be exposed to the cluster DNS. Care should be taken not to point `dns.hosts.file` to any file that contains sensitive or unrelated information.
105+
106+
Administrators bear the ultimate responsibility for ensuring that only non-sensitive, appropriate content is provided via this feature.
107+
98108
### Topology Considerations
99109
#### Hypershift / Hosted Control Planes
100110
N/A

0 commit comments

Comments
 (0)