pmcf 2.74.3 → 2.74.4
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/services/bind.mjs +16 -23
- package/src/services/openldap.mjs +4 -6
- package/src/services/systemd-journal-upload.mjs +2 -1
- package/types/services/bind.d.mts +144 -17
- package/types/services/openldap.d.mts +36 -3
- package/types/services/systemd-journal-upload.d.mts +12 -1
package/package.json
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { join } from "node:path";
|
|
|
2
2
|
import { createHmac } from "node:crypto";
|
|
3
3
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
4
4
|
import { isLinkLocal, reverseArpa } from "ip-utilties";
|
|
5
|
+
import { boolean_attribute, default_attribute } from "pacc";
|
|
5
6
|
import { writeLines, asArray } from "../utils.mjs";
|
|
6
7
|
import {
|
|
7
8
|
DNSRecord,
|
|
@@ -38,49 +39,41 @@ const BindServiceTypeDefinition = {
|
|
|
38
39
|
protected: { type: address_types, collection: true, writeable: true },
|
|
39
40
|
internal: { type: address_types, collection: true, writeable: true },
|
|
40
41
|
hasSVRRecords: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
writeable: true,
|
|
44
|
-
default: false
|
|
42
|
+
...boolean_attribute,
|
|
43
|
+
writeable: true
|
|
45
44
|
},
|
|
46
45
|
hasCatalog: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
writeable: true,
|
|
50
|
-
default: false
|
|
46
|
+
...boolean_attribute,
|
|
47
|
+
writeable: true
|
|
51
48
|
},
|
|
52
49
|
hasLinkLocalAdresses: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
writeable: true,
|
|
56
|
-
default: false
|
|
50
|
+
...boolean_attribute,
|
|
51
|
+
writeable: true
|
|
57
52
|
},
|
|
58
53
|
hasLocationRecord: {
|
|
59
|
-
|
|
60
|
-
collection: false,
|
|
54
|
+
...boolean_attribute,
|
|
61
55
|
writeable: true,
|
|
62
56
|
default: true
|
|
63
57
|
},
|
|
64
58
|
excludeInterfaceKinds: {
|
|
65
|
-
|
|
59
|
+
...default_attribute,
|
|
66
60
|
collection: true,
|
|
67
61
|
writeable: true
|
|
68
62
|
},
|
|
69
63
|
|
|
70
64
|
exclude: { type: address_types, collection: true, writeable: true },
|
|
71
65
|
notify: {
|
|
72
|
-
|
|
73
|
-
collection: false,
|
|
66
|
+
...boolean_attribute,
|
|
74
67
|
writeable: true,
|
|
75
68
|
default: false
|
|
76
69
|
},
|
|
77
|
-
recordTTL: {
|
|
70
|
+
recordTTL: { ...default_attribute, writeable: true },
|
|
78
71
|
serial: { type: "number", collection: false, writeable: true },
|
|
79
|
-
refresh: {
|
|
80
|
-
retry: {
|
|
81
|
-
expire: {
|
|
82
|
-
minimum: {
|
|
83
|
-
allowedUpdates: {
|
|
72
|
+
refresh: { ...default_attribute, writeable: true },
|
|
73
|
+
retry: { ...default_attribute, writeable: true },
|
|
74
|
+
expire: { ...default_attribute, writeable: true },
|
|
75
|
+
minimum: { ...default_attribute, writeable: true },
|
|
76
|
+
allowedUpdates: { ...default_attribute, collection: true, writeable: true }
|
|
84
77
|
},
|
|
85
78
|
|
|
86
79
|
service: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
|
+
import { default_attribute } from "pacc";
|
|
3
4
|
import { addType } from "../types.mjs";
|
|
4
5
|
import { ServiceTypeDefinition, Service } from "../service.mjs";
|
|
5
6
|
import { writeLines } from "../utils.mjs";
|
|
@@ -13,18 +14,15 @@ const OpenLDAPServiceTypeDefinition = {
|
|
|
13
14
|
priority: 0.1,
|
|
14
15
|
properties: {
|
|
15
16
|
baseDN: {
|
|
16
|
-
|
|
17
|
-
collection: false,
|
|
17
|
+
...default_attribute,
|
|
18
18
|
writeable: true
|
|
19
19
|
},
|
|
20
20
|
rootDN: {
|
|
21
|
-
|
|
22
|
-
collection: false,
|
|
21
|
+
...default_attribute,
|
|
23
22
|
writeable: true
|
|
24
23
|
},
|
|
25
24
|
uri: {
|
|
26
|
-
|
|
27
|
-
collection: false,
|
|
25
|
+
...default_attribute,
|
|
28
26
|
writeable: true
|
|
29
27
|
}
|
|
30
28
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default_attribute } from "pacc";
|
|
1
2
|
import { Service, ServiceTypeDefinition } from "pmcf";
|
|
2
3
|
import { addType } from "../types.mjs";
|
|
3
4
|
|
|
@@ -8,7 +9,7 @@ const SystemdJournalUploadServiceTypeDefinition = {
|
|
|
8
9
|
extends: ServiceTypeDefinition,
|
|
9
10
|
priority: 0.1,
|
|
10
11
|
properties: {
|
|
11
|
-
url: {
|
|
12
|
+
url: { ...default_attribute, writeable: true }
|
|
12
13
|
},
|
|
13
14
|
service: {}
|
|
14
15
|
};
|
|
@@ -601,33 +601,84 @@ export class BindService extends ExtraSourceService {
|
|
|
601
601
|
writeable: boolean;
|
|
602
602
|
};
|
|
603
603
|
hasSVRRecords: {
|
|
604
|
+
writeable: boolean;
|
|
604
605
|
type: string;
|
|
606
|
+
isKey: boolean;
|
|
607
|
+
writable: boolean;
|
|
608
|
+
mandatory: boolean;
|
|
605
609
|
collection: boolean;
|
|
606
|
-
|
|
607
|
-
|
|
610
|
+
private?: boolean;
|
|
611
|
+
depends?: string;
|
|
612
|
+
additionalAttributes: string[];
|
|
613
|
+
description?: string;
|
|
614
|
+
default?: any;
|
|
615
|
+
set?: Function;
|
|
616
|
+
get?: Function;
|
|
617
|
+
env?: string[] | string;
|
|
608
618
|
};
|
|
609
619
|
hasCatalog: {
|
|
620
|
+
writeable: boolean;
|
|
610
621
|
type: string;
|
|
622
|
+
isKey: boolean;
|
|
623
|
+
writable: boolean;
|
|
624
|
+
mandatory: boolean;
|
|
611
625
|
collection: boolean;
|
|
612
|
-
|
|
613
|
-
|
|
626
|
+
private?: boolean;
|
|
627
|
+
depends?: string;
|
|
628
|
+
additionalAttributes: string[];
|
|
629
|
+
description?: string;
|
|
630
|
+
default?: any;
|
|
631
|
+
set?: Function;
|
|
632
|
+
get?: Function;
|
|
633
|
+
env?: string[] | string;
|
|
614
634
|
};
|
|
615
635
|
hasLinkLocalAdresses: {
|
|
636
|
+
writeable: boolean;
|
|
616
637
|
type: string;
|
|
638
|
+
isKey: boolean;
|
|
639
|
+
writable: boolean;
|
|
640
|
+
mandatory: boolean;
|
|
617
641
|
collection: boolean;
|
|
618
|
-
|
|
619
|
-
|
|
642
|
+
private?: boolean;
|
|
643
|
+
depends?: string;
|
|
644
|
+
additionalAttributes: string[];
|
|
645
|
+
description?: string;
|
|
646
|
+
default?: any;
|
|
647
|
+
set?: Function;
|
|
648
|
+
get?: Function;
|
|
649
|
+
env?: string[] | string;
|
|
620
650
|
};
|
|
621
651
|
hasLocationRecord: {
|
|
622
|
-
type: string;
|
|
623
|
-
collection: boolean;
|
|
624
652
|
writeable: boolean;
|
|
625
653
|
default: boolean;
|
|
654
|
+
type: string;
|
|
655
|
+
isKey: boolean;
|
|
656
|
+
writable: boolean;
|
|
657
|
+
mandatory: boolean;
|
|
658
|
+
collection: boolean;
|
|
659
|
+
private?: boolean;
|
|
660
|
+
depends?: string;
|
|
661
|
+
additionalAttributes: string[];
|
|
662
|
+
description?: string;
|
|
663
|
+
set?: Function;
|
|
664
|
+
get?: Function;
|
|
665
|
+
env?: string[] | string;
|
|
626
666
|
};
|
|
627
667
|
excludeInterfaceKinds: {
|
|
628
|
-
type: string;
|
|
629
668
|
collection: boolean;
|
|
630
669
|
writeable: boolean;
|
|
670
|
+
type: string;
|
|
671
|
+
isKey: boolean;
|
|
672
|
+
writable: boolean;
|
|
673
|
+
mandatory: boolean;
|
|
674
|
+
private?: boolean;
|
|
675
|
+
depends?: string;
|
|
676
|
+
additionalAttributes: string[];
|
|
677
|
+
description?: string;
|
|
678
|
+
default?: any;
|
|
679
|
+
set?: Function;
|
|
680
|
+
get?: Function;
|
|
681
|
+
env?: string[] | string;
|
|
631
682
|
};
|
|
632
683
|
exclude: {
|
|
633
684
|
type: string[];
|
|
@@ -635,15 +686,36 @@ export class BindService extends ExtraSourceService {
|
|
|
635
686
|
writeable: boolean;
|
|
636
687
|
};
|
|
637
688
|
notify: {
|
|
638
|
-
type: string;
|
|
639
|
-
collection: boolean;
|
|
640
689
|
writeable: boolean;
|
|
641
690
|
default: boolean;
|
|
691
|
+
type: string;
|
|
692
|
+
isKey: boolean;
|
|
693
|
+
writable: boolean;
|
|
694
|
+
mandatory: boolean;
|
|
695
|
+
collection: boolean;
|
|
696
|
+
private?: boolean;
|
|
697
|
+
depends?: string;
|
|
698
|
+
additionalAttributes: string[];
|
|
699
|
+
description?: string;
|
|
700
|
+
set?: Function;
|
|
701
|
+
get?: Function;
|
|
702
|
+
env?: string[] | string;
|
|
642
703
|
};
|
|
643
704
|
recordTTL: {
|
|
705
|
+
writeable: boolean;
|
|
644
706
|
type: string;
|
|
707
|
+
isKey: boolean;
|
|
708
|
+
writable: boolean;
|
|
709
|
+
mandatory: boolean;
|
|
645
710
|
collection: boolean;
|
|
646
|
-
|
|
711
|
+
private?: boolean;
|
|
712
|
+
depends?: string;
|
|
713
|
+
additionalAttributes: string[];
|
|
714
|
+
description?: string;
|
|
715
|
+
default?: any;
|
|
716
|
+
set?: Function;
|
|
717
|
+
get?: Function;
|
|
718
|
+
env?: string[] | string;
|
|
647
719
|
};
|
|
648
720
|
serial: {
|
|
649
721
|
type: string;
|
|
@@ -651,29 +723,84 @@ export class BindService extends ExtraSourceService {
|
|
|
651
723
|
writeable: boolean;
|
|
652
724
|
};
|
|
653
725
|
refresh: {
|
|
726
|
+
writeable: boolean;
|
|
654
727
|
type: string;
|
|
728
|
+
isKey: boolean;
|
|
729
|
+
writable: boolean;
|
|
730
|
+
mandatory: boolean;
|
|
655
731
|
collection: boolean;
|
|
656
|
-
|
|
732
|
+
private?: boolean;
|
|
733
|
+
depends?: string;
|
|
734
|
+
additionalAttributes: string[];
|
|
735
|
+
description?: string;
|
|
736
|
+
default?: any;
|
|
737
|
+
set?: Function;
|
|
738
|
+
get?: Function;
|
|
739
|
+
env?: string[] | string;
|
|
657
740
|
};
|
|
658
741
|
retry: {
|
|
742
|
+
writeable: boolean;
|
|
659
743
|
type: string;
|
|
744
|
+
isKey: boolean;
|
|
745
|
+
writable: boolean;
|
|
746
|
+
mandatory: boolean;
|
|
660
747
|
collection: boolean;
|
|
661
|
-
|
|
748
|
+
private?: boolean;
|
|
749
|
+
depends?: string;
|
|
750
|
+
additionalAttributes: string[];
|
|
751
|
+
description?: string;
|
|
752
|
+
default?: any;
|
|
753
|
+
set?: Function;
|
|
754
|
+
get?: Function;
|
|
755
|
+
env?: string[] | string;
|
|
662
756
|
};
|
|
663
757
|
expire: {
|
|
758
|
+
writeable: boolean;
|
|
664
759
|
type: string;
|
|
760
|
+
isKey: boolean;
|
|
761
|
+
writable: boolean;
|
|
762
|
+
mandatory: boolean;
|
|
665
763
|
collection: boolean;
|
|
666
|
-
|
|
764
|
+
private?: boolean;
|
|
765
|
+
depends?: string;
|
|
766
|
+
additionalAttributes: string[];
|
|
767
|
+
description?: string;
|
|
768
|
+
default?: any;
|
|
769
|
+
set?: Function;
|
|
770
|
+
get?: Function;
|
|
771
|
+
env?: string[] | string;
|
|
667
772
|
};
|
|
668
773
|
minimum: {
|
|
774
|
+
writeable: boolean;
|
|
669
775
|
type: string;
|
|
776
|
+
isKey: boolean;
|
|
777
|
+
writable: boolean;
|
|
778
|
+
mandatory: boolean;
|
|
670
779
|
collection: boolean;
|
|
671
|
-
|
|
780
|
+
private?: boolean;
|
|
781
|
+
depends?: string;
|
|
782
|
+
additionalAttributes: string[];
|
|
783
|
+
description?: string;
|
|
784
|
+
default?: any;
|
|
785
|
+
set?: Function;
|
|
786
|
+
get?: Function;
|
|
787
|
+
env?: string[] | string;
|
|
672
788
|
};
|
|
673
789
|
allowedUpdates: {
|
|
674
|
-
type: string;
|
|
675
790
|
collection: boolean;
|
|
676
791
|
writeable: boolean;
|
|
792
|
+
type: string;
|
|
793
|
+
isKey: boolean;
|
|
794
|
+
writable: boolean;
|
|
795
|
+
mandatory: boolean;
|
|
796
|
+
private?: boolean;
|
|
797
|
+
depends?: string;
|
|
798
|
+
additionalAttributes: string[];
|
|
799
|
+
description?: string;
|
|
800
|
+
default?: any;
|
|
801
|
+
set?: Function;
|
|
802
|
+
get?: Function;
|
|
803
|
+
env?: string[] | string;
|
|
677
804
|
};
|
|
678
805
|
};
|
|
679
806
|
service: {
|
|
@@ -569,19 +569,52 @@ export class OpenLDAPService extends Service {
|
|
|
569
569
|
priority: number;
|
|
570
570
|
properties: {
|
|
571
571
|
baseDN: {
|
|
572
|
+
writeable: boolean;
|
|
572
573
|
type: string;
|
|
574
|
+
isKey: boolean;
|
|
575
|
+
writable: boolean;
|
|
576
|
+
mandatory: boolean;
|
|
573
577
|
collection: boolean;
|
|
574
|
-
|
|
578
|
+
private?: boolean;
|
|
579
|
+
depends?: string;
|
|
580
|
+
additionalAttributes: string[];
|
|
581
|
+
description?: string;
|
|
582
|
+
default?: any;
|
|
583
|
+
set?: Function;
|
|
584
|
+
get?: Function;
|
|
585
|
+
env?: string[] | string;
|
|
575
586
|
};
|
|
576
587
|
rootDN: {
|
|
588
|
+
writeable: boolean;
|
|
577
589
|
type: string;
|
|
590
|
+
isKey: boolean;
|
|
591
|
+
writable: boolean;
|
|
592
|
+
mandatory: boolean;
|
|
578
593
|
collection: boolean;
|
|
579
|
-
|
|
594
|
+
private?: boolean;
|
|
595
|
+
depends?: string;
|
|
596
|
+
additionalAttributes: string[];
|
|
597
|
+
description?: string;
|
|
598
|
+
default?: any;
|
|
599
|
+
set?: Function;
|
|
600
|
+
get?: Function;
|
|
601
|
+
env?: string[] | string;
|
|
580
602
|
};
|
|
581
603
|
uri: {
|
|
604
|
+
writeable: boolean;
|
|
582
605
|
type: string;
|
|
606
|
+
isKey: boolean;
|
|
607
|
+
writable: boolean;
|
|
608
|
+
mandatory: boolean;
|
|
583
609
|
collection: boolean;
|
|
584
|
-
|
|
610
|
+
private?: boolean;
|
|
611
|
+
depends?: string;
|
|
612
|
+
additionalAttributes: string[];
|
|
613
|
+
description?: string;
|
|
614
|
+
default?: any;
|
|
615
|
+
set?: Function;
|
|
616
|
+
get?: Function;
|
|
617
|
+
env?: string[] | string;
|
|
585
618
|
};
|
|
586
619
|
};
|
|
587
620
|
service: {
|
|
@@ -569,9 +569,20 @@ export class SystemdJournalUploadService extends Service {
|
|
|
569
569
|
priority: number;
|
|
570
570
|
properties: {
|
|
571
571
|
url: {
|
|
572
|
+
writeable: boolean;
|
|
572
573
|
type: string;
|
|
574
|
+
isKey: boolean;
|
|
575
|
+
writable: boolean;
|
|
576
|
+
mandatory: boolean;
|
|
573
577
|
collection: boolean;
|
|
574
|
-
|
|
578
|
+
private?: boolean;
|
|
579
|
+
depends?: string;
|
|
580
|
+
additionalAttributes: string[];
|
|
581
|
+
description?: string;
|
|
582
|
+
default?: any;
|
|
583
|
+
set?: Function;
|
|
584
|
+
get?: Function;
|
|
585
|
+
env?: string[] | string;
|
|
575
586
|
};
|
|
576
587
|
};
|
|
577
588
|
service: {};
|