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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.60.11",
3
+ "version": "6.60.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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.systemdCredential && !seen.has(name)) {
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}`
@@ -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,