Maxence Lange
b0c79636ba
fix(appconfig): no insert statement if data already exist
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-03-08 11:40:11 +07:00
Joas Schilling
3a67080a96
fix(appconfig): Make sure sensitive values stay sensitive
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-06 22:58:59 +07:00
Joas Schilling
24607a37d8
feat(appconfig): Automatically store "sensitive" appconfigs encrypted in the database
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-06 22:27:14 +07:00
Maxence Lange
c1fc1b29bc
Merge pull request #43424 from nextcloud/enh/noid/debug-on-lazy-appconfig-loading
...
enh(appconfig): debug logs on lazy loadConfig
2024-02-12 18:12:54 +07:00
Maxence Lange
809e0fe923
fix phpdoc
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-12 13:23:36 +07:00
Maxence Lange
3e58a2501f
use exception for cleaner Trace
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-12 12:53:46 +07:00
Maxence Lange
70a229da50
redundant condition
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-07 12:24:57 +07:00
Maxence Lange
2122a81419
fix getAllValues() to filter values based on prefix
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-07 12:24:57 +07:00
Maxence Lange
ae8d6b6b69
debug lazy loadConfig
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-07 08:35:00 +07:00
Maxence Lange
8ba2cd4a07
returns non lazy value while searching for lazy
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-06 00:00:58 +07:00
Maxence Lange
1b2e503e7f
return false on AppConfigUnknownKeyException
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-02-01 21:51:17 +07:00
Maxence Lange
8362025643
better indexes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-24 20:01:56 +07:00
Joas Schilling
0e40457b86
Merge pull request #42847 from nextcloud/fix/42843/exception-on-their-own
...
exceptions on their own
2024-01-18 09:59:36 +07:00
Maxence Lange
db8636ac1a
exceptions on their own
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-16 12:48:27 +07:00
Maxence Lange
addd678682
returns default on exception
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-16 12:35:24 +07:00
Maxence Lange
94fe48c998
small fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-15 15:45:13 +07:00
Maxence Lange
6daea857ab
fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
d
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-15 15:45:13 +07:00
Maxence Lange
f7d0c74b10
lazy AppConfig
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-15 15:45:13 +07:00
Joas Schilling
6294f0f4bc
fix(systemreport): Mark more configs as sensitive
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-01-09 13:08:27 +07:00
Hamid Dehnavi
ea06cf2f39
Convert isset ternary to null coalescing operator
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-09-28 17:44:19 +07:00
jld3103
38db3873a2
provisioning_api: Add OpenAPI spec
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-07-31 10:29:08 +07:00
Joas Schilling
381ab5f4cb
fix(security): Mark recording_servers key appconfig as private as it contains a secret
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-22 09:14:37 +07:00
Joas Schilling
373e6325b7
Fix appconfig compatibility with Oracle DB
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-23 16:57:54 +07:00
Côme Chilliet
f5c361cf44
composer run cs:fix
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-20 11:45:08 +07:00
Julius Härtl
884da19198
Merge pull request #35177 from nextcloud/fix/noid/bringing-clear-config-back
2022-12-19 09:50:25 +07:00
Joas Schilling
cf34aa557b
Update sensitive config list of Talk
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-12-09 16:41:59 +07:00
Maxence Lange
6964751ec6
restoring clearCachedConfig()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2022-11-15 11:08:20 +07:00
Joas Schilling
663cf04469
Mark more config values as sensitive
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-11-11 09:02:28 +07:00
John Molakvoæ
9a9409e315
Remove SCSSCacher
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-05-13 16:10:45 +07:00
Julien Veyssier
a295529576
censor app config values for all integration apps
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-03-04 13:06:37 +07:00
Joas Schilling
1e27aed4dc
Censor more configs
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-01 21:08:16 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Christoph Wurst
8b64e92b92
Bump doctrine/dbal from 2.12.0 to 3.0.0
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-08 11:45:19 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Roeland Jago Douma
c02e6fcae2
fix appconfig tests
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-12-07 15:44:04 +07:00
Roeland Jago Douma
db82d27239
Fix updates of NULL appconfig values
...
The comparisson of NULL is a bit special.
So we need to handle this a tad beter else it might not replace NULL
values. or allow you to set NULL values on updates.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-10-21 10:04:06 +07:00
Morris Jobke
cce716f9f3
Clear cached app config while waiting for the SCSSCache to finish processing the file
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-10-16 13:28:00 +07:00
Joas Schilling
2e4b3cebc6
Exclude the Bridge Bot password as well
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-08-20 10:28:35 +07:00
Christoph Wurst
cb057829f7
Update license headers for 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 13:54:22 +07:00
Christoph Wurst
5bf3d1bb38
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
Joas Schilling
b6c78eb9d4
Filter more configs
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-08-19 16:32:20 +07:00
Arthur Schiwon
78201bcb72
treat sensitive config keys by pattern
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-07-26 13:31:14 +07:00
michaelletzgus
05b8eb140c
using isset()
...
using isset() instead of array_key_exists()
2018-02-05 10:50:32 +07:00
michaelletzgus
cfa694ea73
Fix undefined index problem
...
Nextcloud 13RC4, error in logfile, triggered by "occ config:list":
Invalid argument supplied for foreach() at lib/private/AppConfig.php#297
PHP Undefined index: workflowengine at lib/private/AppConfig.php#297
Fix: Check if index exists in array before using it.
2018-02-04 15:59:23 +07:00
Roeland Jago Douma
1e7b20f615
Remove IAppConfig::setValue
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-17 21:41:57 +07:00
Roeland Jago Douma
09f8a755ec
Remove IAppConfig::getValue
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-17 21:41:56 +07:00
Roeland Jago Douma
ee2617d88c
Simple IAppConfig deprecations
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-17 21:03:04 +07:00
Joas Schilling
30b9262a5a
Make sure the spreed TURN server secret stays a secret
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-01-17 11:29:10 +07:00
Joas Schilling
ce7836378c
Filter out sensitive appconfig values
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-01-11 11:42:36 +07:00