Julien Fontanet
f51bcfa05a
feat(xo-server-audit): add active setting (default false) ( #5151 )
2020-07-10 14:29:30 +02:00
Julien Fontanet
cd70d3ea46
fix(Travis CI): use Node 12 ( #5147 )
2020-07-09 15:51:22 +02:00
Julien Fontanet
d387227cef
fix(xo-server/backups): dont ignore proxy job result/error
2020-07-09 09:40:02 +02:00
Julien Fontanet
7ea50ea41e
fix(xo-server/callProxyMethod): dont use HTTP proxy
2020-07-06 17:06:37 +02:00
Julien Fontanet
cbada35788
fix(xo-server/file restore): dont fail on LVM partitions
...
Fixes xoa-support#2640
Introduced by 48ce7df43
The issue was due to object spreading copying only own properties but `path` is now an inherited property due to `dedupeUnmount`.
2020-07-03 11:05:04 +02:00
Julien Fontanet
44ff2f872d
feat(xo-server/getBackupNgLogs): dont fail on undefined/null errors
...
See xoa-support#2663
This should almost never happen but if it does, it should not prevent logs from being consolidated.
2020-07-03 09:22:28 +02:00
Julien Fontanet
2198853662
feat(xo-server/logs-cli): can match on missing props
2020-07-03 09:22:28 +02:00
Julien Fontanet
1d0cea8ad0
feat(xo-server/logs-cli): add --delete command
2020-07-01 18:04:45 +02:00
Julien Fontanet
5c901d7c1e
fix(xo-server/logs-cli): dont fail on non-string value
2020-07-01 18:01:34 +02:00
Julien Fontanet
1dffab0bb8
feat(xen-api): 0.29.0
2020-07-01 17:11:19 +02:00
Julien Fontanet
ae89e14ea2
feat(xo-server/getRemoteHandler): throw for proxy remotes
2020-07-01 11:46:28 +02:00
Julien Fontanet
86bfd91c9d
feat(xo-server/backup): logs proxy support
2020-06-30 15:45:40 +02:00
Julien Fontanet
0ee412ccb9
feat(xo-server/callProxyMethod): allow proxy.address to contain port
2020-06-30 15:20:58 +02:00
Julien Fontanet
b8bd6ea820
chore(xo-server/callProxyMethod): use parse.result to handle errors
2020-06-30 12:14:45 +02:00
Julien Fontanet
98a1ab3033
fix(xo-server/callProxyMethod): destroy lines stream in case of error
2020-06-30 12:14:45 +02:00
Julien Fontanet
e360f53a40
fix(xo-server/callProxyMethod): all lines should be JSON parsed
2020-06-30 12:14:45 +02:00
Julien Fontanet
237ec38003
fix(xo-server/callProxyMethod): lines is an object stream
2020-06-30 12:14:45 +02:00
Julien Fontanet
30ea1bbf87
feat(xo-server/callProxyMethod): expectStream as named option
2020-06-30 12:14:45 +02:00
Julien Fontanet
41fb06187b
fix(coalesce-calls/README): fix import
2020-06-29 15:39:14 +02:00
Julien Fontanet
adf0e8ae3b
feat(@vates/coalesce-calls): 0.1.0
2020-06-29 15:33:53 +02:00
Julien Fontanet
857a9f3efc
feat(xen-api): optional sync traces ( #5091 )
...
Initial actions call stacks are often missing from the resulting error for the following reasons:
- low level Node functions don't have proper stack traces
- replies handling maybe separate from requests (eg watchers)
This commit adds the option `syncStackTraces` that works around this, it has a performance impact but is useful for debugging.
2020-06-18 17:19:21 +02:00
Julien Fontanet
c5fa94894b
feat(xen-api): require Node >=7.6
...
Native support of async functions which leads to better stack traces.
2020-06-16 12:54:51 +02:00
Julien Fontanet
f74ecc53ae
chore(xo-server): use @vates/decorate-with
2020-06-12 11:18:47 +02:00
Julien Fontanet
c4121073ad
feat(@vates/decorate-with): 0.0.1
2020-06-12 11:12:49 +02:00
Julien Fontanet
9ded2641a7
chore(xo-server/authentication): remove unused import
2020-06-12 11:02:42 +02:00
Julien Fontanet
295ca68d02
chore(xo-server): use @vates/parse-duration
2020-06-12 11:02:42 +02:00
Julien Fontanet
27f53f262b
feat(@vates/parse-duration): 0.1.0
2020-06-12 11:02:42 +02:00
Julien Fontanet
bbb359470e
fix(xo-server/backup): remove enumerable xapi on SR records ( #5069 )
...
Fixes xoa-support#2527
This was causing huge logs in case of CR/DR errors because this property was included and pulled in all XAPI records.
Instead of making it non-enumerable, I was able to remove entirely because records now already include a non-enumerable `$xapi` property.
2020-06-10 11:25:32 +02:00
Julien Fontanet
c9c271fee8
feat(xen-api): $xapi defined on prototype instead of record
...
This should reduce a bit memory consumption.
2020-06-09 23:17:02 +02:00
Julien Fontanet
83ade5eecb
chore(CHANGELOG.unreleased): clarify that packages are not yet released
2020-06-08 10:54:42 +02:00
Julien Fontanet
703fcbccd6
feat(xo-server/xo.exportConfig): entries param
...
Can be used to export a subset of the config, example:
```
xo.exportConfig entries=["acls"]
```
This will only export `acls` entries and dependencies (`groups` and `users`).
2020-06-05 13:57:54 +02:00
Julien Fontanet
2f9cbec07e
feat(xo-cli): support @=- to output to stdout
2020-06-05 13:57:54 +02:00
Julien Fontanet
ab5907c09c
feat(xo-server/logs-cli): implement --gc
2020-06-05 10:58:26 +02:00
Julien Fontanet
f18e98a63e
chore: reformat code with Prettier
2020-06-03 11:03:03 +02:00
Julien Fontanet
3524886d5d
chore: update dev dependencies
2020-06-03 11:03:03 +02:00
Julien Fontanet
fb44eea06c
fix(xo-server): load globally installed plugin
...
It has been broken by d4526e1ed
Thanks @Danp2 for the report!
2020-06-02 20:44:33 +02:00
Julien Fontanet
3ea4c757e6
feat(backups-cli): clean checksums for missing XVAs
2020-06-02 15:27:36 +02:00
Julien Fontanet
e289f2dba2
fix(auth-ldap/authenticate): dont use second param as logger ( #5039 )
2020-06-02 11:11:25 +02:00
Julien Fontanet
d4526e1ed2
feat(xo-server): load @xen-orchestra/server-* plugins
2020-06-01 21:06:04 +02:00
Julien Fontanet
34f42216c8
feat(*/README.md): better badges
2020-06-01 14:41:52 +02:00
Julien Fontanet
a26a24a8ad
fix(normalize-packages): dont replace author in READMEs
2020-06-01 14:06:09 +02:00
Julien Fontanet
4530fd4164
chore(*/package.json): normalize author to Vates SAS
2020-06-01 14:06:09 +02:00
Julien Fontanet
6212109fc1
feat(@vates/read-chunk): 0.1.1
2020-05-29 15:10:20 +02:00
Julien Fontanet
c22a080e23
fix(read-chunk): not an ES module
2020-05-29 15:10:20 +02:00
Julien Fontanet
834a7109f9
fix: add @vates to list of workspaces
2020-05-29 15:10:20 +02:00
Julien Fontanet
d0b9380dca
fix(*/README): license link
2020-05-28 21:24:20 +02:00
Julien Fontanet
13fd9be566
feat(*/README.md): re-generate for all packages
2020-05-28 20:56:14 +02:00
Julien Fontanet
53a9aa6ad2
fix(vhd-lib): dont prefer global install
2020-05-28 20:29:10 +02:00
Julien Fontanet
c2ce4aca1b
feat(async-map/package.json): add description
2020-05-28 20:28:52 +02:00
Julien Fontanet
567f6d7cc0
fix: prefer global install for CLIs
2020-05-28 20:28:28 +02:00
Julien Fontanet
489c0b27f9
fix: use AGPL-3.0-or-later licenses for xo pkgs
2020-05-28 20:27:39 +02:00
Julien Fontanet
343f988584
fix: use AGPL-3.0-or-later license identifier
...
`AGPL-3.0` identifier has been deprecated by SPDX.org
2020-05-28 20:26:55 +02:00
Julien Fontanet
7f676c56c8
feat(normalize-packages): add license to all packages
2020-05-28 16:05:55 +02:00
Julien Fontanet
3c0ca7026f
fix(read-chunk/README): fix pkg name
2020-05-28 16:05:55 +02:00
Julien Fontanet
6db5e0b27c
feat(@vates/read-chunk): 0.1.0
2020-05-28 14:49:00 +02:00
Julien Fontanet
dfecb801db
fix(read-chunk/USAGE): fix pkg name
2020-05-28 14:48:27 +02:00
Julien Fontanet
c10bfe3db2
feat(read-chunk): module to read data from stream
2020-05-28 14:45:22 +02:00
Julien Fontanet
20fb2c99bc
feat(normalize-packages): generate README.md from USAGE.md
2020-05-28 14:45:21 +02:00
Julien Fontanet
f44e5b3b7a
fix(babel-config): remove auto useBuiltIns
...
Too magical, caused too much problems.
2020-05-27 10:25:41 +02:00
Julien Fontanet
6e24bf5f8c
fix(xo-{cli,upload-ova}): remove deprecated dep @babel/polyfill
2020-05-27 10:13:54 +02:00
Julien Fontanet
8fb43e31c5
fix(babel-config): useBuiltIns only if core-js
...
Because `@babel/polyfill` is deprecated.
See https://babeljs.io/docs/en/babel-preset-env#usebuiltins
2020-05-27 10:13:30 +02:00
Julien Fontanet
0860c80e51
fix(*/README): legacy project URLs
2020-05-27 10:04:00 +02:00
Julien Fontanet
66fc25756f
Revert "feat(xo-server): load plugins from mono-repo"
...
This reverts commit 3e3ce543a8 .
This can cause problems due to duplicate loading.
2020-05-27 09:53:46 +02:00
Julien Fontanet
3e3ce543a8
feat(xo-server): load plugins from mono-repo
2020-05-26 14:01:43 +02:00
Julien Fontanet
6c447a82f1
chore(audit-core): remove unused dev dep
2020-05-26 13:59:06 +02:00
Julien Fontanet
64a0918ff1
chore(yarn.lock): update dependencies
2020-05-26 13:59:06 +02:00
Julien Fontanet
b9a18807ae
fix(xo-server/_handleHttpRequest): dont write if something has been sent
2020-05-25 09:58:03 +02:00
Julien Fontanet
4159fd2ffb
fix(backups-cli/_fs/readdir2): dont warn on missing dir
2020-05-22 23:48:15 +02:00
Julien Fontanet
1a1d21bbb3
fix(backups-cli/clean-vms): isValidXva is a named import
2020-05-22 23:48:14 +02:00
Julien Fontanet
5d497a1908
fix(xo-server-auth-ldap): use this._tlsOptions in bind
...
Introduced by 5870f6f73
2020-05-17 16:48:57 +02:00
Julien Fontanet
c820646fb6
fix(xo-server-auth-ldap): upgrade ldapts dep
...
Necessary for 5870f6f73
Also, only pass `tlsOptions` when creating client when using `ldaps`.
2020-05-17 16:11:24 +02:00
Julien Fontanet
5870f6f734
feat(xo-server-auth-ldap): support startTLS
...
Fixes #4999
2020-05-17 15:24:01 +02:00
Julien Fontanet
6732150121
fix(xo-server-auth-ldap): dont pass bindDN and `bindCredentials to LDAP client
...
It was left from an older version of the code which was working differently.
2020-05-17 12:47:08 +02:00
Julien Fontanet
1da889e420
feat(xo-server/xo.{export,import}Config}): support passphrase ( #4935 )
2020-05-14 15:23:45 +02:00
Julien Fontanet
1ad067309d
fix(xo-cli/README): link to xo-upload-ova
2020-05-11 17:30:12 +02:00
Julien Fontanet
48ce7df43a
feat(xo-server/file restore): dedupe mount/unmount ( #4961 )
2020-05-07 17:36:37 +02:00
Julien Fontanet
b8eeee1d5d
feat(xo-server/listVmBackups): use backup.listingDebounce setting ( #4972 )
2020-05-05 14:23:22 +02:00
Julien Fontanet
1e0b521070
fix(xo-server/backup): pass correct path to isValidXva (2)
...
Fix incorrect change in c4a157919 .
2020-04-30 15:16:30 +02:00
Julien Fontanet
35ed58cc5e
feat(xo-server): auto-generate express-session secret on first run
...
Also, use this secret to sign all cookies.
2020-04-30 14:57:05 +02:00
Julien Fontanet
c4a1579197
fix(xo-server/backup): pass correct path to isValidXva
...
The path was incorrect which means there was a warning in xo-server logs and the check was not properly working.
2020-04-30 14:45:53 +02:00
Julien Fontanet
d78b7350b5
feat(xo-server): use memorystore as express-session store
...
This removes a warning and potential memory leaks.
2020-04-30 09:32:42 +02:00
Julien Fontanet
9db99ab4a5
feat(xo-server): auto self signed cert generation ( #4954 )
2020-04-27 15:40:15 +02:00
Julien Fontanet
287214c2b2
fix(xo-server): debounceWithKey.decorate( → decorateWith(debounceWithKey
...
Introduced by 317a02084
2020-04-27 13:21:53 +02:00
Julien Fontanet
317a020841
chore(xo-server/decorateWith): use fn wrappers as method decorator
2020-04-27 09:35:05 +02:00
Julien Fontanet
b50e3aec5f
chore(xo-server/decorators/debounce): replace with debounceWithKey
2020-04-24 17:18:15 +02:00
Julien Fontanet
a745e42cf5
feat(xo-server/_handleHttpRequest): send directly string/Buffer results
2020-04-17 17:09:40 +02:00
Julien Fontanet
462d6a4450
chore(xo-server/{export,import}Config): handle JSON instead of raw objects
2020-04-17 17:08:38 +02:00
Julien Fontanet
a2e39c5e2e
fix(xo-server-audit/_exportRecords): dont return 200 on failure
...
See ec899be3b
2020-04-17 16:14:34 +02:00
Julien Fontanet
ec899be3b5
fix(xo-server/xo.exportConfig): dont return 200 on failure
...
`writeHead` sends immediatly the response header, which has a number of undesirable side-effects.
For instance, in this case, it prevented returning a 500 code in case of error.
It's almost always preferable to use `statusCode`, `writeHead()` or Express methods like `set()`.
2020-04-17 16:12:55 +02:00
Julien Fontanet
c79ebfdd0a
fix(CHANGELOG.unreleased): better syntax for variables
2020-04-16 15:09:11 +02:00
Julien Fontanet
cd95e6c552
chore(CHANGELOG.unreleased): doc for package version
2020-04-16 15:08:06 +02:00
Julien Fontanet
f676145302
fix(xen-api/putResource): compat with XS 6.5 and Node 12
2020-04-16 15:04:17 +02:00
Julien Fontanet
6fe1da1587
fix(CHANGELOG): add missing released packages
2020-04-08 16:43:55 +02:00
Julien Fontanet
7ab555d869
feat: release 5.45.1
2020-04-08 15:37:09 +02:00
Julien Fontanet
4a35e9e60d
feat(xo-web): 5.58.2
2020-04-08 13:59:20 +02:00
Julien Fontanet
5e8dfdfd9b
feat(xo-server): 5.58.2
2020-04-08 13:59:14 +02:00
Julien Fontanet
278a1b8ab3
feat(xo-server-audit): 0.3.0
2020-04-08 13:58:30 +02:00
Julien Fontanet
6cb03dded1
feat(xo-server-auth-saml): 0.8.0
2020-04-08 13:58:25 +02:00
Julien Fontanet
4752ec1b67
fix(CHANGELOG.unreleased): xo-server-saml → xo-server-auth-saml
2020-04-08 13:58:18 +02:00
Julien Fontanet
2b8e9bf887
feat(auth-ldap): support strategyOptions from static config
2020-04-06 15:17:14 +02:00