pmcf 1.86.0 → 1.87.1
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 +18 -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
|
@@ -20,6 +20,7 @@ const DNSServiceTypeDefinition = {
|
|
|
20
20
|
properties: {
|
|
21
21
|
source: { type: "network", collection: true, writeable: true },
|
|
22
22
|
trusted: { type: "network", collection: true, writeable: true },
|
|
23
|
+
protected: { type: "network", collection: true, writeable: true },
|
|
23
24
|
hasSVRRecords: { type: "boolean", collection: false, writeable: true },
|
|
24
25
|
hasCatalog: { type: "boolean", collection: false, writeable: true },
|
|
25
26
|
hasLinkLocalAdresses: {
|
|
@@ -49,6 +50,7 @@ export class DNSService extends Base {
|
|
|
49
50
|
notify = true;
|
|
50
51
|
#source = [];
|
|
51
52
|
#trusted = [];
|
|
53
|
+
#protected = [];
|
|
52
54
|
|
|
53
55
|
serial = Math.ceil(Date.now() / 1000);
|
|
54
56
|
refresh = 36000;
|
|
@@ -78,6 +80,14 @@ export class DNSService extends Base {
|
|
|
78
80
|
return [this.serial, this.refresh, this.retry, this.expire, this.minimum];
|
|
79
81
|
}
|
|
80
82
|
|
|
83
|
+
set protected(value) {
|
|
84
|
+
this.#protected.push(value);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
get protected() {
|
|
88
|
+
return this.#protected;
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
set trusted(value) {
|
|
82
92
|
this.#trusted.push(value);
|
|
83
93
|
}
|
|
@@ -146,12 +156,19 @@ export class DNSService extends Base {
|
|
|
146
156
|
const category = [
|
|
147
157
|
"acl trusted {",
|
|
148
158
|
...Array.from(subnets(this.trusted)).map(subnet => ` ${subnet.name};`),
|
|
159
|
+
"};",
|
|
160
|
+
"",
|
|
161
|
+
"acl protected {",
|
|
162
|
+
...Array.from(subnets(this.protected)).map(subnet => ` ${subnet.name};`),
|
|
163
|
+
"};",
|
|
164
|
+
"",
|
|
165
|
+
"acl open {",
|
|
149
166
|
"};"
|
|
150
167
|
];
|
|
151
168
|
|
|
152
169
|
await writeLines(
|
|
153
170
|
join(p1, "etc/named"),
|
|
154
|
-
|
|
171
|
+
`0-${name}.conf`,
|
|
155
172
|
category
|
|
156
173
|
);
|
|
157
174
|
|
package/types/cluster.d.mts
CHANGED
|
@@ -107,6 +107,11 @@ export class Cluster extends Host {
|
|
|
107
107
|
collection: boolean;
|
|
108
108
|
writeable: boolean;
|
|
109
109
|
};
|
|
110
|
+
protected: {
|
|
111
|
+
type: string;
|
|
112
|
+
collection: boolean;
|
|
113
|
+
writeable: boolean;
|
|
114
|
+
};
|
|
110
115
|
hasSVRRecords: {
|
|
111
116
|
type: string;
|
|
112
117
|
collection: boolean;
|
package/types/dns.d.mts
CHANGED
|
@@ -16,6 +16,11 @@ export class DNSService extends Base {
|
|
|
16
16
|
collection: boolean;
|
|
17
17
|
writeable: boolean;
|
|
18
18
|
};
|
|
19
|
+
protected: {
|
|
20
|
+
type: string;
|
|
21
|
+
collection: boolean;
|
|
22
|
+
writeable: boolean;
|
|
23
|
+
};
|
|
19
24
|
hasSVRRecords: {
|
|
20
25
|
type: string;
|
|
21
26
|
collection: boolean;
|
|
@@ -85,6 +90,8 @@ export class DNSService extends Base {
|
|
|
85
90
|
expire: number;
|
|
86
91
|
minimum: number;
|
|
87
92
|
get soaUpdates(): number[];
|
|
93
|
+
set protected(value: any[]);
|
|
94
|
+
get protected(): any[];
|
|
88
95
|
set trusted(value: any[]);
|
|
89
96
|
get trusted(): any[];
|
|
90
97
|
set source(value: any[]);
|
package/types/location.d.mts
CHANGED
|
@@ -107,6 +107,11 @@ export class Location extends Owner {
|
|
|
107
107
|
collection: boolean;
|
|
108
108
|
writeable: boolean;
|
|
109
109
|
};
|
|
110
|
+
protected: {
|
|
111
|
+
type: string;
|
|
112
|
+
collection: boolean;
|
|
113
|
+
writeable: boolean;
|
|
114
|
+
};
|
|
110
115
|
hasSVRRecords: {
|
|
111
116
|
type: string;
|
|
112
117
|
collection: boolean;
|
|
@@ -327,6 +332,11 @@ export class Location extends Owner {
|
|
|
327
332
|
collection: boolean;
|
|
328
333
|
writeable: boolean;
|
|
329
334
|
};
|
|
335
|
+
protected: {
|
|
336
|
+
type: string;
|
|
337
|
+
collection: boolean;
|
|
338
|
+
writeable: boolean;
|
|
339
|
+
};
|
|
330
340
|
hasSVRRecords: {
|
|
331
341
|
type: string;
|
|
332
342
|
collection: boolean;
|
package/types/network.d.mts
CHANGED
|
@@ -109,6 +109,11 @@ export class Network extends Owner {
|
|
|
109
109
|
collection: boolean;
|
|
110
110
|
writeable: boolean;
|
|
111
111
|
};
|
|
112
|
+
protected: {
|
|
113
|
+
type: string;
|
|
114
|
+
collection: boolean;
|
|
115
|
+
writeable: boolean;
|
|
116
|
+
};
|
|
112
117
|
hasSVRRecords: {
|
|
113
118
|
type: string;
|
|
114
119
|
collection: boolean;
|
package/types/owner.d.mts
CHANGED
package/types/root.d.mts
CHANGED
|
@@ -111,6 +111,11 @@ export class Root extends Location {
|
|
|
111
111
|
collection: boolean;
|
|
112
112
|
writeable: boolean;
|
|
113
113
|
};
|
|
114
|
+
protected: {
|
|
115
|
+
type: string;
|
|
116
|
+
collection: boolean;
|
|
117
|
+
writeable: boolean;
|
|
118
|
+
};
|
|
114
119
|
hasSVRRecords: {
|
|
115
120
|
type: string;
|
|
116
121
|
collection: boolean;
|
|
@@ -331,6 +336,11 @@ export class Root extends Location {
|
|
|
331
336
|
collection: boolean;
|
|
332
337
|
writeable: boolean;
|
|
333
338
|
};
|
|
339
|
+
protected: {
|
|
340
|
+
type: string;
|
|
341
|
+
collection: boolean;
|
|
342
|
+
writeable: boolean;
|
|
343
|
+
};
|
|
334
344
|
hasSVRRecords: {
|
|
335
345
|
type: string;
|
|
336
346
|
collection: boolean;
|