pmcf 1.89.2 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dns.mjs +12 -1
- package/types/cluster.d.mts +5 -0
- package/types/dns.d.mts +7 -0
- package/types/location.d.mts +10 -0
- package/types/network.d.mts +5 -0
- package/types/owner.d.mts +5 -0
- package/types/root.d.mts +10 -0
package/package.json
CHANGED
package/src/dns.mjs
CHANGED
|
@@ -21,6 +21,7 @@ const DNSServiceTypeDefinition = {
|
|
|
21
21
|
source: { type: "network", collection: true, writeable: true },
|
|
22
22
|
trusted: { type: "network", collection: true, writeable: true },
|
|
23
23
|
protected: { type: "network", collection: true, writeable: true },
|
|
24
|
+
open: { type: "network", collection: true, writeable: true },
|
|
24
25
|
hasSVRRecords: { type: "boolean", collection: false, writeable: true },
|
|
25
26
|
hasCatalog: { type: "boolean", collection: false, writeable: true },
|
|
26
27
|
hasLinkLocalAdresses: {
|
|
@@ -67,6 +68,7 @@ export class DNSService extends Base {
|
|
|
67
68
|
#source = [];
|
|
68
69
|
#trusted = [];
|
|
69
70
|
#protected = [];
|
|
71
|
+
#open = [];
|
|
70
72
|
|
|
71
73
|
serial = Math.ceil(Date.now() / 1000);
|
|
72
74
|
refresh = 36000;
|
|
@@ -112,6 +114,14 @@ export class DNSService extends Base {
|
|
|
112
114
|
return this.#trusted;
|
|
113
115
|
}
|
|
114
116
|
|
|
117
|
+
set open(value) {
|
|
118
|
+
this.#open.push(value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
get open() {
|
|
122
|
+
return this.#open;
|
|
123
|
+
}
|
|
124
|
+
|
|
115
125
|
set source(value) {
|
|
116
126
|
this.#source.push(value);
|
|
117
127
|
}
|
|
@@ -177,7 +187,7 @@ export class DNSService extends Base {
|
|
|
177
187
|
const acls = [
|
|
178
188
|
addressesStatement("acl trusted", subnets(this.trusted)),
|
|
179
189
|
addressesStatement("acl protected", subnets(this.protected)),
|
|
180
|
-
addressesStatement("acl open",
|
|
190
|
+
addressesStatement("acl open", subnets(this.open), true)
|
|
181
191
|
].flat();
|
|
182
192
|
|
|
183
193
|
if (acls.length) {
|
|
@@ -263,6 +273,7 @@ async function generateZoneDefs(dns, packageData) {
|
|
|
263
273
|
normalizeIPAddress(address)
|
|
264
274
|
)
|
|
265
275
|
);
|
|
276
|
+
zone.records.add(DNSRecord("location", "TXT", host.location.name));
|
|
266
277
|
}
|
|
267
278
|
}
|
|
268
279
|
}
|
package/types/cluster.d.mts
CHANGED
package/types/dns.d.mts
CHANGED
|
@@ -21,6 +21,11 @@ export class DNSService extends Base {
|
|
|
21
21
|
collection: boolean;
|
|
22
22
|
writeable: boolean;
|
|
23
23
|
};
|
|
24
|
+
open: {
|
|
25
|
+
type: string;
|
|
26
|
+
collection: boolean;
|
|
27
|
+
writeable: boolean;
|
|
28
|
+
};
|
|
24
29
|
hasSVRRecords: {
|
|
25
30
|
type: string;
|
|
26
31
|
collection: boolean;
|
|
@@ -94,6 +99,8 @@ export class DNSService extends Base {
|
|
|
94
99
|
get protected(): any[];
|
|
95
100
|
set trusted(value: any[]);
|
|
96
101
|
get trusted(): any[];
|
|
102
|
+
set open(value: any[]);
|
|
103
|
+
get open(): any[];
|
|
97
104
|
set source(value: any[]);
|
|
98
105
|
get source(): any[];
|
|
99
106
|
get systemdConfig(): (string | {
|
package/types/location.d.mts
CHANGED
|
@@ -112,6 +112,11 @@ export class Location extends Owner {
|
|
|
112
112
|
collection: boolean;
|
|
113
113
|
writeable: boolean;
|
|
114
114
|
};
|
|
115
|
+
open: {
|
|
116
|
+
type: string;
|
|
117
|
+
collection: boolean;
|
|
118
|
+
writeable: boolean;
|
|
119
|
+
};
|
|
115
120
|
hasSVRRecords: {
|
|
116
121
|
type: string;
|
|
117
122
|
collection: boolean;
|
|
@@ -337,6 +342,11 @@ export class Location extends Owner {
|
|
|
337
342
|
collection: boolean;
|
|
338
343
|
writeable: boolean;
|
|
339
344
|
};
|
|
345
|
+
open: {
|
|
346
|
+
type: string;
|
|
347
|
+
collection: boolean;
|
|
348
|
+
writeable: boolean;
|
|
349
|
+
};
|
|
340
350
|
hasSVRRecords: {
|
|
341
351
|
type: string;
|
|
342
352
|
collection: boolean;
|
package/types/network.d.mts
CHANGED
package/types/owner.d.mts
CHANGED
package/types/root.d.mts
CHANGED
|
@@ -116,6 +116,11 @@ export class Root extends Location {
|
|
|
116
116
|
collection: boolean;
|
|
117
117
|
writeable: boolean;
|
|
118
118
|
};
|
|
119
|
+
open: {
|
|
120
|
+
type: string;
|
|
121
|
+
collection: boolean;
|
|
122
|
+
writeable: boolean;
|
|
123
|
+
};
|
|
119
124
|
hasSVRRecords: {
|
|
120
125
|
type: string;
|
|
121
126
|
collection: boolean;
|
|
@@ -341,6 +346,11 @@ export class Root extends Location {
|
|
|
341
346
|
collection: boolean;
|
|
342
347
|
writeable: boolean;
|
|
343
348
|
};
|
|
349
|
+
open: {
|
|
350
|
+
type: string;
|
|
351
|
+
collection: boolean;
|
|
352
|
+
writeable: boolean;
|
|
353
|
+
};
|
|
344
354
|
hasSVRRecords: {
|
|
345
355
|
type: string;
|
|
346
356
|
collection: boolean;
|