entitlement-provider 2.9.85 → 2.9.89

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": "entitlement-provider",
3
- "version": "2.9.85",
3
+ "version": "2.9.89",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,8 @@
23
23
  "scripts": {
24
24
  "test": "npm run test:ava",
25
25
  "test:ava": "ava --timeout 2m tests/*.mjs",
26
- "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m && c8 report -r lcov -o build/coverage --temp-directory build/tmp"
26
+ "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
27
+ "pkg": "npm-pkgbuild --verbose -D version=0.0.0 --publish dist"
27
28
  },
28
29
  "dependencies": {
29
30
  "@kronos-integration/interceptor-decode-json": "^2.1.56",
@@ -32,8 +33,8 @@
32
33
  "@kronos-integration/service-authenticator": "^1.6.8",
33
34
  "@kronos-integration/service-health": "^5.0.134",
34
35
  "@kronos-integration/service-http": "^10.6.91",
35
- "@kronos-integration/service-ldap": "^4.0.70",
36
- "@kronos-integration/service-smtp": "^1.0.58",
36
+ "@kronos-integration/service-ldap": "^4.0.71",
37
+ "@kronos-integration/service-smtp": "^1.0.60",
37
38
  "model-attributes": "^4.1.13"
38
39
  },
39
40
  "devDependencies": {
@@ -43,7 +44,7 @@
43
44
  "ava": "^4.0.1",
44
45
  "c8": "^7.1.0",
45
46
  "got": "12.0.1",
46
- "npm-pkgbuild": "^6.12.96",
47
+ "npm-pkgbuild": "^7.23.8",
47
48
  "semantic-release": "^19.0.2"
48
49
  },
49
50
  "optionalDependencies": {
@@ -72,40 +73,37 @@
72
73
  "base": "/services/entitlements/api",
73
74
  "socket": "/run/${name}/http/socket"
74
75
  },
75
- "systemd": {
76
- "units": {
77
- "${name}": "systemd/${name}*"
78
- }
79
- },
80
- "pacman": {
81
- "arch": [
82
- "aarch64",
83
- "armv7h",
84
- "x86_64"
85
- ],
76
+ "pkg": {
86
77
  "backup": "etc/${name}/config.json",
87
78
  "content": {
88
- "/usr/lib/tmpfiles.d/${name}.conf": "pacman/tmpfiles.conf",
79
+ "/usr/lib/systemd/system/": {
80
+ "base": "systemd"
81
+ },
82
+ "/usr/lib/tmpfiles.d/${name}.conf": "pkg/tmpfiles.conf",
89
83
  "/etc/${name}/config.json": "config/config.json",
90
- "/etc/nginx/sites/common/${name}.conf": "pacman/nginx.conf",
84
+ "/etc/nginx/sites/common/${name}.conf": "pkg/nginx.conf",
91
85
  "/srv/http/.well-known/openid-configuration": "config/openid-configuration",
92
- "/usr/lib/sysusers.d/${name}.conf": "pacman/sysusers.conf"
86
+ "/usr/lib/sysusers.d/${name}.conf": "pkg/sysusers.conf",
87
+ "${installdir}/": [
88
+ {
89
+ "type": "npm-pack"
90
+ },
91
+ {
92
+ "type": "node-modules"
93
+ }
94
+ ]
95
+ },
96
+ "output": {
97
+ "arch": {}
93
98
  },
94
99
  "depends": {
95
100
  "systemd": ">=250.3",
96
101
  "nginx-mainline": ">=1.21.4"
97
102
  },
98
103
  "groups": "user admin",
99
- "hooks": "pacman/hooks.sh",
104
+ "hooks": "pkg/hooks.sh",
100
105
  "installdir": "/services/${name}",
101
- "group": "services",
102
- "content-provider": {
103
- "systemd": {
104
- "units": {
105
- "${name}": "systemd/${name}*"
106
- }
107
- }
108
- }
106
+ "group": "services"
109
107
  },
110
108
  "release": {
111
109
  "plugins": [
@@ -115,8 +113,7 @@
115
113
  [
116
114
  "@semantic-release/exec",
117
115
  {
118
- "verifyConditionsCmd": "which makepkg",
119
- "publishCmd": "npx npm-pkgbuild --pkgver ${nextRelease.version} --npm-dist --npm-modules pkgbuild pacman makepkg"
116
+ "publishCmd": "npx npm-pkgbuild"
120
117
  }
121
118
  ],
122
119
  "@semantic-release/npm"
@@ -125,7 +122,7 @@
125
122
  "template": {
126
123
  "inheritFrom": [
127
124
  "arlac77/template-arlac77-github",
128
- "arlac77/template-kronos-app"
125
+ "arlac77/template-kronos-app#next"
129
126
  ]
130
127
  }
131
128
  }
package/pacman/hooks.sh DELETED
@@ -1,27 +0,0 @@
1
-
2
- post_install() {
3
- systemctl daemon-reload
4
- systemctl enable {{name}}
5
- systemctl enable {{name}}.socket
6
- systemctl start {{name}}.socket
7
- }
8
-
9
- pre_upgrade() {
10
- systemctl stop {{name}}
11
- }
12
-
13
- post_upgrade() {
14
- systemctl daemon-reload
15
- systemctl restart {{name}}.socket
16
- }
17
-
18
- pre_remove() {
19
- systemctl stop {{name}}.socket
20
- systemctl disable {{name}}.socket
21
- systemctl stop {{name}}
22
- systemctl disable {{name}}
23
- }
24
-
25
- post_remove() {
26
- systemctl daemon-reload
27
- }
package/pacman/nginx.conf DELETED
@@ -1,10 +0,0 @@
1
- location {{base}} {
2
- rewrite {{base}}/(.*) /$1 break;
3
- proxy_set_header X-Real-IP $remote_addr;
4
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
5
- proxy_set_header Host $http_host;
6
- proxy_set_header X-NginX-Proxy true;
7
- proxy_set_header Upgrade $http_upgrade;
8
- proxy_set_header Connection "upgrade";
9
- proxy_pass http://unix:{{socket}};
10
- }
@@ -1,2 +0,0 @@
1
- u {{name}} - "{{description}}" /var/lib/{{name}} /usr/bin/nologin
2
-
@@ -1,3 +0,0 @@
1
- D /run/{{name}} 0755 {{name}} {{name}} -
2
- D /run/{{name}}/http 2775 {{name}} http -
3
- d /var/lib/{{name}} 0755 {{name}} {{name}} -
@@ -1,54 +0,0 @@
1
- [Unit]
2
- Description={{description}}
3
- Wants=network-online.target
4
- After=network-online.target
5
- StopWhenUnneeded=true
6
-
7
- [Service]
8
- Type=notify
9
- ExecStart=/usr/bin/node --unhandled-rejections=strict --trace-uncaught --trace-warnings --title {{name}} {{installdir}}/src/{{name}}-cli.mjs
10
- ExecReload=/bin/kill -HUP $MAINPID
11
- ExecStop=sleep 20
12
- RestartSec=40
13
- TimeoutStartSec=25
14
- TimeoutStopSec=30
15
- Restart=on-failure
16
- NotifyAccess=all
17
- FileDescriptorStoreMax=5
18
- OOMPolicy=stop
19
- User={{name}}
20
- Group={{name}}
21
- SupplementaryGroups=http
22
- CapabilityBoundingSet=~CAP_SYS_BOOT
23
- NoNewPrivileges=true
24
- UMask=0077
25
- ProtectSystem=full
26
- ProtectHome=true
27
- RuntimeDirectory={{name}}/http
28
- StateDirectory={{name}}
29
- CacheDirectory={{name}}
30
- ConfigurationDirectory={{name}}
31
- RuntimeDirectoryMode=755
32
- RuntimeDirectoryPreserve=yes
33
- PrivateTmp=true
34
- PrivateDevices=true
35
- PrivateUsers=true
36
- ProtectHostname=true
37
- ProtectClock=true
38
- ProtectKernelTunables=true
39
- ProtectKernelModules=true
40
- ProtectKernelLogs=true
41
- ProtectControlGroups=true
42
- LockPersonality=true
43
- RestrictRealtime=true
44
- RestrictSUIDSGID=true
45
- CPUWeight=10
46
- IOWeight=10
47
- MemoryAccounting=true
48
- MemoryHigh=30M
49
- MemoryMax=60M
50
- ProtectProc=noaccess
51
- SystemCallErrorNumber=EPERM
52
-
53
- [Install]
54
- WantedBy=multi-user.target
@@ -1,9 +0,0 @@
1
- [Socket]
2
- ListenStream={{socket}}
3
- SocketUser=http
4
- SocketGroup=http
5
- MaxConnections=4
6
- FileDescriptorName=http.listen.socket
7
-
8
- [Install]
9
- RequiredBy={{name}}.service