pmcf 6.60.11 → 6.60.12
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/core-service.mjs +1 -7
- package/src/services/kea.mjs +5 -0
package/package.json
CHANGED
package/src/core-service.mjs
CHANGED
|
@@ -45,12 +45,6 @@ import {
|
|
|
45
45
|
} from "./dns-utils.mjs";
|
|
46
46
|
|
|
47
47
|
export class credential extends base {
|
|
48
|
-
static attributes = {
|
|
49
|
-
systemdCredential: {
|
|
50
|
-
...boolean_attribute_writable_false,
|
|
51
|
-
name: "systemdCredential"
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
48
|
static {
|
|
55
49
|
addType(this);
|
|
56
50
|
}
|
|
@@ -289,7 +283,7 @@ export class CoreService extends base {
|
|
|
289
283
|
const seen = new Set();
|
|
290
284
|
|
|
291
285
|
for (const [name, cred] of this.credentials) {
|
|
292
|
-
if (cred.
|
|
286
|
+
if (cred.tags.has(name) && !seen.has(name)) {
|
|
293
287
|
seen.add(name);
|
|
294
288
|
lines.push(
|
|
295
289
|
`LoadCredentialEncrypted=${name}:/etc/credstore.encrypted/${name}`
|
package/src/services/kea.mjs
CHANGED
|
@@ -470,8 +470,13 @@ export class kea extends CoreService {
|
|
|
470
470
|
|
|
471
471
|
const packageData = await this.preparePackage(dir);
|
|
472
472
|
|
|
473
|
+
asArray(this.keys).forEach(key => {
|
|
474
|
+
this.credentials.set(key.name, new credential(this,{name: key.name, algorithm: key.algorithm}))
|
|
475
|
+
});
|
|
476
|
+
|
|
473
477
|
await this.writeSystemdCredentialConfig(dir, "kea-dhcp4.service");
|
|
474
478
|
await this.writeSystemdCredentialConfig(dir, "kea-dhcp6.service");
|
|
479
|
+
await this.writeSystemdCredentialConfig(dir, "kea-dhcp-ddns.service");
|
|
475
480
|
|
|
476
481
|
for (const [name, data] of Object.entries({
|
|
477
482
|
"kea-dhcp-ddns": ddns,
|