Johannes Zellner
22f9ffd119
Fixup many linter errors
2023-03-21 14:46:09 +01:00
Johannes Zellner
46c233bad6
oidc: Add clients manage routes
2023-03-21 13:54:40 +01:00
Girish Ramakrishnan
53e9eccf72
unify totp check
...
the totp check is done in several places causing errors like 3552232e99
* ldap (addon)
* accesscontrol (dashboard)
* proxyauth
* directoryserver (exposed ldap)
* externalldap (the connector)
The code also makes externalldap auto-create work now across all the cases where there is a username
2023-03-12 16:01:12 +01:00
Girish Ramakrishnan
8e0d1b61af
Make tests run again
2023-03-11 23:41:01 +01:00
Girish Ramakrishnan
8448d28f6f
Implement HSTS preload
...
This allows browsers to query https directly instead of the initial http redirect
https://hstspreload.org/#opt-in says it should be explicitly opt in
2023-03-06 11:46:05 +01:00
Girish Ramakrishnan
03a77ddf01
Fix validation of hostPath
...
When adding a volume, this comes in mountOptions. The hostPath in the
database is the computed host path.
2023-02-25 23:41:11 +01:00
Johannes Zellner
6f84fd3f71
Use correct error object to avoid crash
2023-01-31 11:29:55 +01:00
Johannes Zellner
a6fdb96fbf
Add route to list all blockdevices
2023-01-23 17:56:01 +01:00
Girish Ramakrishnan
79cb8ef251
add route to get platform status
2022-11-30 19:54:32 +01:00
Girish Ramakrishnan
69b46d82ab
Fix typo
2022-11-30 14:56:40 +01:00
Girish Ramakrishnan
77a5f01585
reverseproxy: rebuild only when needed
...
re-creating nginx configs is only needed in 3 cases:
* provider changes. we create a rebuild file for this
* nginx config is somehow corrupt by external changes. user can click ui button
on startup, dashboard also always creates the nginx configs. so it's always up to provide the button
2022-11-29 18:17:53 +01:00
Girish Ramakrishnan
28f3b697a1
tokens: add test for readonly token
2022-11-23 18:16:03 +01:00
Girish Ramakrishnan
f728971479
add test that only owner can open tickets
2022-11-23 17:56:24 +01:00
Johannes Zellner
a5d244b593
Add tests for proxy app upstreamUri
2022-11-23 14:36:57 +01:00
Girish Ramakrishnan
817e950d47
Fix upstreamUri verification
2022-11-23 12:58:17 +01:00
Girish Ramakrishnan
258eea4318
Fix appstore-test
2022-11-22 22:14:59 +01:00
Johannes Zellner
0b6bbf4cc2
Set exec LANG via rest API only
2022-11-16 16:14:54 +01:00
Girish Ramakrishnan
0843baad8b
reverseproxy: remove options from renewCerts
2022-11-14 08:13:47 +01:00
Girish Ramakrishnan
e9eeab074a
Clarify error message further
2022-11-10 13:50:28 +01:00
Johannes Zellner
0035247618
add app repository support
2022-11-09 15:46:00 +01:00
Girish Ramakrishnan
925b08c7a1
Fix log test
2022-11-06 16:17:55 +01:00
Girish Ramakrishnan
549cb92ce7
return swap listing in the disk route
2022-11-04 15:25:12 +01:00
Johannes Zellner
c4c90cfaf9
Add route to download app backups
2022-11-04 10:24:12 +01:00
Girish Ramakrishnan
4015afc69c
graphs: send service graphs
2022-10-13 20:52:22 +02:00
Girish Ramakrishnan
b5da4143c9
graphs: add app response in system graphs
2022-10-12 22:08:10 +02:00
Girish Ramakrishnan
4a3d85a269
add docker disk usage tests
2022-10-12 10:57:22 +02:00
Girish Ramakrishnan
fa7c0a6e1b
add disks tests
2022-10-12 10:45:29 +02:00
Girish Ramakrishnan
edb6ed91fe
add disk usage task
2022-10-12 10:26:21 +02:00
Girish Ramakrishnan
a3f7ce15ab
system: rework disks api to return by filesystem
2022-10-12 09:42:14 +02:00
Girish Ramakrishnan
d51b022721
applinks: make get return null
...
this style matches rest of the code base
2022-10-06 11:32:42 +02:00
Girish Ramakrishnan
4aab03bb07
import: cleanup app import logic
2022-10-02 10:08:50 +02:00
Johannes Zellner
f5f9a8e520
Send 404 if applink icon does not exist
2022-09-28 15:18:05 +02:00
Johannes Zellner
8677e86ace
Add authorization to all routes
2022-09-24 21:27:43 +02:00
Johannes Zellner
cde22cd0a3
Add token scope tests in routes
2022-09-24 20:56:43 +02:00
Johannes Zellner
858c85ee85
Fixup more tests
2022-09-24 18:26:31 +02:00
Johannes Zellner
70d3040135
Validate token scopes
2022-09-23 13:09:07 +02:00
Johannes Zellner
56c567ac86
Add token scopes
2022-09-22 22:28:59 +02:00
Girish Ramakrishnan
1f5831b79e
rename queue route
2022-09-22 19:48:20 +02:00
Girish Ramakrishnan
6382216dc5
mail: proxy queue routes correctly
2022-09-20 20:02:54 +02:00
Johannes Zellner
5184e017c9
Error the task waited for fails in tests
2022-09-19 18:20:27 +02:00
Johannes Zellner
d2ea6b2002
Fixup appstore tests
2022-09-19 17:21:55 +02:00
Johannes Zellner
1c07ec219c
Do not query disk usage for apps without localstorage
2022-09-16 17:10:07 +02:00
Girish Ramakrishnan
d176ff2582
graphs: move system graph queries to the backend
2022-09-15 12:40:52 +02:00
Girish Ramakrishnan
bd7ee437a8
collectd: fix memory stat collection configuration
...
https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/memory.html#usage-in-bytes says
this is the most efficient approach for v1. It says RSS+CACHE(+SWAP) is the more accurate value.
Elsewhere in the note in https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/memory.html#stat-file ,
it says "‘rss + mapped_file” will give you resident set size of cgroup." Overall, it's not clear how
to compute the values so we just use the file.
https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html is better. https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#memory
says the values are separated out.
2022-09-14 18:15:26 +02:00
Johannes Zellner
bead9589a1
Move app graphs graphite query to backend
2022-09-14 14:39:28 +02:00
Girish Ramakrishnan
4e75694ac6
mail: require catch all to be absolute
2022-09-11 12:56:58 +02:00
Girish Ramakrishnan
2a93c703ef
mailserver: add queue routes
2022-08-31 08:45:18 +02:00
Johannes Zellner
563391c2f1
remove PermitRootLogin check as we now use cloudron-support user
2022-08-25 18:53:09 +02:00
Girish Ramakrishnan
1591541c7f
mail: allow aliases to have wildcard
...
this came out of https://forum.cloudron.io/topic/6350/disposable-email-prefixes-for-existing-mailboxes/
2022-08-18 15:22:00 +02:00
Girish Ramakrishnan
b23189b45c
mail: quota support
2022-08-18 11:31:40 +02:00