Commit e216202
committed
Fix NFS export security and consolidate firewall rules
Replace no_root_squash with root_squash in NFS export options. With
no_root_squash, any root user on K8s nodes (or root-running pods) had
full root access to all NFS shares. Now squashed root maps to
configurable anonuid/anongid (default 65534/nobody).
Add anonuid and anongid to the exports template so the mapping is
explicit in /etc/exports.
Consolidate UFW firewall configuration and validation into a single
block so all rules, enable, and verification run as one atomic unit
gated on UFW availability.1 parent 88df047 commit e216202
File tree
3 files changed
+22
-35
lines changed- metal/roles/storage
- defaults
- tasks
- templates
3 files changed
+22
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
| |||
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 29 | + | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
| |||
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
56 | | - | |
| 48 | + | |
57 | 49 | | |
58 | 50 | | |
59 | | - | |
60 | | - | |
| 51 | + | |
| 52 | + | |
61 | 53 | | |
62 | | - | |
63 | | - | |
| 54 | + | |
| 55 | + | |
64 | 56 | | |
65 | | - | |
| 57 | + | |
66 | 58 | | |
67 | | - | |
| 59 | + | |
68 | 60 | | |
69 | 61 | | |
70 | 62 | | |
| |||
75 | 67 | | |
76 | 68 | | |
77 | 69 | | |
78 | | - | |
| 70 | + | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
85 | | - | |
86 | 77 | | |
87 | 78 | | |
88 | 79 | | |
89 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
90 | 86 | | |
91 | 87 | | |
92 | 88 | | |
| |||
97 | 93 | | |
98 | 94 | | |
99 | 95 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 96 | + | |
114 | 97 | | |
115 | 98 | | |
116 | 99 | | |
117 | 100 | | |
118 | 101 | | |
119 | 102 | | |
120 | 103 | | |
121 | | - | |
| 104 | + | |
122 | 105 | | |
123 | 106 | | |
124 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments