Julien Fontanet
47922dee56
fix(xo-server/patching): fix typo
...
Introduced by 901f7b3fe
Fixes #7325
2024-01-20 09:35:48 +01:00
Julien Fontanet
3dda4dbaad
chore: format with Prettier
2024-01-19 16:42:10 +01:00
Julien Fontanet
901f7b3fe2
chore(xo-server): remove object properties decorator syntax
...
This syntax is not supported by Prettier.
2024-01-19 16:42:10 +01:00
Julien Fontanet
774d66512e
feat(decorate-with): decorateObject()
2024-01-19 16:42:10 +01:00
Julien Fontanet
a624330818
fix(usage-to-readme): fix multiple .USAGE.md changes
2024-01-19 10:23:52 +01:00
Julien Fontanet
3892efcca2
feat(xo-web/plugins): auto-load follow load/unload ( #7317 )
...
Loading, or unloading, will respectively enable, or disable, _Auto-load at server start_,
this should lead to least surprising behaviors.
2024-01-19 09:55:36 +01:00
Julien Fontanet
b7a66e9f73
chore(web-core): add missing npmignore
...
Follow-up of d92d2efc7
2024-01-18 13:29:30 +01:00
Julien Fontanet
d92d2efc78
chore(web-core): normalize package.json
2024-01-18 12:39:39 +01:00
Julien Fontanet
c2cb51a470
feat(lint-staged): add .USAGE.md → README.md
...
So that it's not needed to manually runs from `normalize-packages.js`.
2024-01-18 12:34:23 +01:00
Julien Fontanet
f06f89b5b4
feat(self-signed): readCert utility ( #7282 )
...
Expired certificates are not automatically detected, which is not a big deal for user certificates because they can still be used and it's their responsibility to update them.
But automatic certificates must be regenerated in that case which was not the case until now.
This commit unifies certificate/key reading, checking and generation for both xo-server and xo-proxy.
2024-01-16 16:58:15 +01:00
Julien Fontanet
fa748ed9de
feat(xo-server): load plugins from mono-repo
...
Contrary to 3e3ce543a8 , which was reverted,
this implentation properly handle duplicates.
2024-01-16 15:54:12 +01:00
Julien Fontanet
cd753acff7
feat(xo-server): move plugin lookup paths to config
2024-01-16 15:51:45 +01:00
Julien Fontanet
8ff861e2be
feat(xo-server): find plugins sequentially
...
This provides a deterministic order.
In case of duplicate plugins (with the same name), the first found plugin takes precedence.
2024-01-16 15:31:03 +01:00
Julien Fontanet
95ccb2e0ae
feat(gitignore): ignore .tap/
2024-01-16 14:02:33 +01:00
Julien Fontanet
7946a7db68
feat(xo-server/signin): uniformize sign in buttons
...
Make sign in with password button the same as external providers.
2024-01-16 10:36:04 +01:00
Julien Fontanet
6127e30574
feat(xo-server/signin): remember me with external providers
...
It works the same as password signin.
2024-01-16 10:36:04 +01:00
Julien Fontanet
4aad9d8e32
fix(xo-server-backup-reports): require Node>=15
...
Introduced by 2af74008b
Due to using AggregateError.
2024-01-16 10:10:42 +01:00
Julien Fontanet
78d15ddf96
chore: update dev deps
2024-01-16 09:59:16 +01:00
Julien Fontanet
b0c37df8d7
fix(xo-server/rest-api): /backup/log/<id>
...
Introduced by 037e1c1df
Fixes https://xcp-ng.org/forum/post/69426
2024-01-11 11:05:00 +01:00
Julien Fontanet
beba6f7e8d
chore: format with Prettier
2024-01-11 09:57:28 +01:00
Julien Fontanet
9388b5500c
chore(xo-server/signin): remove empty div
2024-01-10 17:17:42 +01:00
Julien Fontanet
bae8ad25e9
feat(xo-web/tasks): hide /rrd_updates by default
...
After an internal discussion with @Darkbeldin and @olivierlambert.
2024-01-10 16:50:03 +01:00
Julien Fontanet
c96b29fe96
docs(troubleshooting): explicit sudo with xo-server-recover-account
2024-01-10 16:48:34 +01:00
Julien Fontanet
9888013aff
feat(xo-server/rest-api): add pool action emergency_shutdown
...
Fixes #7277
2024-01-10 15:55:14 +01:00
Julien Fontanet
0bbb0c289d
feat(xapi/pool_emergencyShutdown): new method
...
Related to #7277
2024-01-10 15:55:14 +01:00
Julien Fontanet
80097ea777
fix(backups/RestoreMetadataBackup): fix data path resolution
...
Introduced by ad46bde30
Fixes https://xcp-ng.org/forum/post/68999
2024-01-10 15:39:41 +01:00
Julien Fontanet
be452a5d63
fix(xo-web/jobs/new): reset params on method change
...
Fixes https://xcp-ng.org/forum/post/69299
2024-01-10 14:05:02 +01:00
Julien Fontanet
bcc0452646
feat(CODE_OF_CONDUCT): update to Contributor Covenant 2.1
2024-01-09 16:36:29 +01:00
Julien Fontanet
9d9691c5a3
fix(xen-api/setFieldEntry): avoid unnecessary MAP_DUPLICATE_KEY error
...
Fixes https://xcp-ng.org/forum/post/68761
2024-01-09 15:10:37 +01:00
Julien Fontanet
e56edc70d5
feat(xo-cli): 0.24.0
2024-01-09 14:29:24 +01:00
Julien Fontanet
d7f4d0f5e0
feat(xo-cli rest get): support NDJSON responses
...
Fixes https://xcp-ng.org/forum/post/69326
2024-01-09 14:24:48 +01:00
Julien Fontanet
8c24dd1732
fix(xapi/host_smartReboot): disable the host before fetching resident VMs
...
Otherwise it might leads to race condition where new VMs appear on the
host but are ignored by this method.
2024-01-08 17:11:21 +01:00
Julien Fontanet
575a423edf
fix(xapi/host_smartReboot): resume VMs even if host was originally disabled
...
The host will always be enabled after this method anyway.
2024-01-08 17:09:53 +01:00
Julien Fontanet
e311860bb5
fix(xapi/host/waitAgentRestart): wait for enabled status
2024-01-08 17:05:30 +01:00
Julien Fontanet
e6289ebc16
docs(rest-api): update TOC
2024-01-08 16:15:32 +01:00
Julien Fontanet
013e20aa0f
docs(rest-api): task monitoring
2024-01-08 16:14:20 +01:00
Julien Fontanet
45a0a83fa4
chore(CHANGELOG.unreleased): sort packages
2024-01-08 14:46:17 +01:00
Julien Fontanet
7780cb176a
fix(backups/_MixinXapiWriter#healthCheck): add_tag → add_tags
...
Fixes https://xcp-ng.org/forum/post/69156
Introduced by a5acc7d26
2024-01-06 15:16:51 +01:00
Julien Fontanet
74ff64dfb4
fix(xo-server/collection/redis#_extract): properly ignore missing entries
...
Introduced by d8280087a
Fixes #7281
2024-01-05 13:53:46 +01:00
Julien Fontanet
9be3c40ead
feat(xo-server/collection/redis#_get): return undefined if missing
...
Related to #7281
2024-01-05 13:52:45 +01:00
Julien Fontanet
48c3a65cc6
fix(xo-server): VM_import() returns ref, not record
...
Introduced by 70b0983
2024-01-04 09:36:42 +01:00
Julien Fontanet
d8280087a4
fix(xo-server/collection/redis#_extract): don't ignore empty records
2024-01-03 17:11:50 +01:00
Julien Fontanet
c14261a0bc
fix(xo-cli): close connection on sign in error
...
Otherwise the CLI does not stop.
2024-01-03 17:06:29 +01:00
Julien Fontanet
3d6defca37
fix(xo-server/emergencyShutdownhost): disable host first
2024-01-03 16:26:07 +01:00
Julien Fontanet
d062a5175a
chore(xo-server/emergencyShutdownhost): unnecessary var
2024-01-03 16:25:12 +01:00
Julien Fontanet
f218874c4b
fix(xo-server/_createProxyVm): {this → _app}.getObject
...
Fixes zammad#20646
Introduced by 70b0983
2024-01-03 10:58:19 +01:00
Julien Fontanet
b1e879ca2f
feat: release 5.90.0
2023-12-29 11:03:07 +01:00
Julien Fontanet
c5010c2caa
feat(xo-web): 5.133.0
2023-12-29 10:48:02 +01:00
Julien Fontanet
2c40b99d8b
feat(xo-web): scoped tags ( #7270 )
...
Based on #7258 developed by @fbeauchamp.
- use inline blocks to respect all paddings/margins
- main settings are in easily modifiable variables
- text color is either black or white based on the background color luminance
- make sure tags and surrounding action buttons are aligned
- always display value in black on white
- delete button use tag color if dark, otherwise black
- Tag component accept color param
2023-12-28 23:10:35 +01:00
Julien Fontanet
0d4cf48410
feat(xo-cli rest): explicit error if not registered
...
Fixes https://xcp-ng.org/forum/post/68698
2023-12-22 11:33:08 +01:00
Julien Fontanet
194db8d0dd
fix(xo-server/Redis#{add,update}): return complete record
...
Introduced by 32afd5c46
Fixes https://xcp-ng.org/forum/post/68664
The returned record should not be serialized and should contain the identifier.
2023-12-21 15:47:11 +01:00
Julien Fontanet
5b00cf3ecd
chore(xo-server/PluginMetadata#merge): don't return record
2023-12-21 15:47:11 +01:00
Julien Fontanet
afa957b305
chore(xo-server/updateCloudConfig): don't return record
2023-12-21 15:47:11 +01:00
Julien Fontanet
ea1921625e
chore(xo-server/create{Group,User}): simplify code
2023-12-21 15:47:11 +01:00
Julien Fontanet
65a154a1b3
chore(xo-server/updateJob): don't return record
2023-12-21 15:47:11 +01:00
Julien Fontanet
2249c90be9
chore(xo-server/subjects): update accept array
2023-12-21 15:47:11 +01:00
Julien Fontanet
1b55d5e2b4
chore(xo-server/scheduling): use builtin (un)serialize
2023-12-21 15:47:11 +01:00
Julien Fontanet
9f5be8029a
chore(xo-server/remotes): update accept array
2023-12-21 15:47:11 +01:00
Julien Fontanet
16458b953f
chore(xo-server/jobs): use builtin (un)serialize
2023-12-21 15:47:11 +01:00
Julien Fontanet
d63a567a1c
chore(xo-server/CloudConfigs): remove useless method
2023-12-21 15:47:11 +01:00
Julien Fontanet
e0bf9ee9d5
fix(proxy): wait the HTTP server to listen
2023-12-20 15:23:48 +01:00
Julien Fontanet
2634008a6a
docs(VM backups): fix settings link
2023-12-19 15:41:39 +01:00
Julien Fontanet
5a0cfd86c7
fix(xo-server/remote#_unserialize): handle boolean enabled
...
Introduced by 32afd5c46
Fixes #7246
Fixes https://xcp-ng.org/forum/post/68575
2023-12-19 15:11:34 +01:00
Julien Fontanet
70e3ba17af
fix(CHANGELOG.unreleased): metadata → mirror
...
Introduced by 2b973275c
2023-12-19 15:07:01 +01:00
Julien Fontanet
4784bbfb99
fix(xo-server/vm.migrate): dont hide original error
2023-12-18 15:02:51 +01:00
Julien Fontanet
32afd5c463
feat(xo-server): save JSON records in Redis ( #7113 )
...
Better support of non-string properties without having to handle them one by one.
To avoid breaking compatibility with older versions, this should not be merged after reading JSON records has been supported for at least a month.
2023-12-18 14:26:51 +01:00
Julien Fontanet
ac391f6a0f
docs(incremental_backups): fix image path
...
Introduced by a0b50b47e
2023-12-18 11:45:23 +01:00
Julien Fontanet
37fd6d13db
chore(xo-server-transport-email): dont use deprecated nodemailer-markdown
...
BREAKING CHANGE: now requires Node >=18.'
Permits the use of a more recent `marked`.
2023-12-17 11:56:18 +01:00
Julien Fontanet
eb56666f98
chore(xen-api,xo-server): update to proxy-agent@6.3.1
2023-12-16 16:41:10 +01:00
Julien Fontanet
b7daee81c0
feat(xo-server): http.useForwardedHeaders ( #7233 )
...
Fixes https://xcp-ng.org/forum/post/67625
This setting can be enabled when XO is behind a reverse proxy to
fetch clients IP addresses from `X-Forwarded-*` headers.
2023-12-16 12:34:58 +01:00
Julien Fontanet
bee0eb9091
chore: update dev deps
2023-12-15 14:09:18 +01:00
Julien Fontanet
59a9a63971
feat(xo-server/store): ensure leveldb only accessible to current user
2023-12-13 11:36:31 +01:00
Julien Fontanet
a2e8b999da
feat(xo-server-auth-saml): forceAuthn setting ( #7232 )
...
Fixes https://xcp-ng.org/forum/post/67764
2023-12-13 11:25:16 +01:00
Julien Fontanet
7db2516a38
chore: update dev deps
2023-12-12 10:30:11 +01:00
Julien Fontanet
1141ef524f
fix(xapi/host_smartReboot): retries when HOST_STILL_BOOTING ( #7231 )
...
Fixes #7194
2023-12-11 16:04:43 +01:00
Julien Fontanet
bb3b83c690
fix(xo-server/rest-api): proper 404 in case of missing backup job
2023-12-08 15:19:48 +01:00
Julien Fontanet
2b973275c0
feat(xo-server/rest-api): expose metadata & mirror backup jobs
2023-12-08 15:17:51 +01:00
Julien Fontanet
037e1c1dfa
feat(xo-server/rest-api): /backups → /backup
2023-12-08 15:14:06 +01:00
Julien Fontanet
f0da94081b
feat(gen-deps-list): detect duplicate packages
...
Prevents a bug where a second entry would override the previous one and possibly
decrease the release type (e.g. `major + patch → patch`).
2023-12-07 17:15:09 +01:00
Julien Fontanet
cd44a6e28c
feat(eslint): enable require-atomic-updates rule
2023-12-07 17:05:21 +01:00
Julien Fontanet
70b09839c7
chore(xo-server): use @xen-orchestra/xapi/VM_import when possible
2023-12-07 16:50:45 +01:00
Julien Fontanet
8a1a0d76f7
chore: update dev deps
2023-12-06 11:09:54 +01:00
Julien Fontanet
9d0b7242f0
fix(xapi-explore-sr): use xen-api@2.0.0
2023-11-29 14:42:50 +01:00
Julien Fontanet
20ec44c3b3
fix(xo-server/registerHttpRequestHandler): match on path
...
Instead of full URL, so that handlers can manage query string.
2023-11-29 14:42:50 +01:00
Julien Fontanet
6f68456bae
feat(xo-server/registerHttpRequestHandler): returns teardown function
...
`unregisterHttpRequestHandler` is no longer useful and has been removed.
2023-11-29 14:42:50 +01:00
Julien Fontanet
61e1f83a9f
feat(xo-server/rest-api): possibility to import a VM
2023-11-28 17:54:10 +01:00
Julien Fontanet
865461bfb9
feat(xo-server/api): backupNg.{,un}mountPartition ( #7176 )
...
Manual method to mount a backup partition on the XOA.
2023-11-24 09:47:23 +01:00
Julien Fontanet
e108cb0990
feat(xo-server/rest-api): possibility to import in an existing VDI ( #7199 )
2023-11-23 17:07:40 +01:00
Julien Fontanet
ad8eaaa771
feat(xo-cli): support REST PUT method
2023-11-23 16:30:03 +01:00
Julien Fontanet
9419cade3d
feat(xo-server/rest-api): tags property can be updated
2023-11-23 16:30:03 +01:00
Julien Fontanet
272e6422bd
chore(xapi/VM_import): typo snapshots → snapshot
2023-11-23 16:28:30 +01:00
Julien Fontanet
547908a8f9
chore(xo-server/proxy.checkHealth): call checkProxyHealth
2023-11-23 16:28:29 +01:00
Julien Fontanet
59f04b4a6b
chore: format with Prettier
2023-11-20 12:34:30 +01:00
Julien Fontanet
781b070e74
fix(xen-api/examples/import-vdi): params handling
2023-11-20 11:45:45 +01:00
Julien Fontanet
1911386aba
chore: refresh yarn.lock
2023-11-20 09:55:07 +01:00
Julien Fontanet
c88cc2b020
chore(xo-server/token.create): allow 60s for expiresIn
...
It makes more sense for the min accepted value to be 60s than 60,001ms.
2023-11-17 10:57:48 +01:00
Julien Fontanet
08ba7e7253
chore: refresh yarn.lock
2023-11-16 10:21:17 +01:00
Julien Fontanet
836300755a
feat: release 5.88.2
2023-11-13 15:07:43 +01:00
Julien Fontanet
55c8c8a6e9
feat(xo-server): 5.126.0
2023-11-13 11:41:08 +01:00
Julien Fontanet
38e32cd24c
chore: update dev deps
2023-11-13 09:48:54 +01:00