You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I only remove signature.json from my theme app and after a rescan I get no more warnings. I think something has been already done about it? /cc @phisch
The thing is, we do want signature checking for apps (themes) from the marketplace, but not for custom themes.
A few months ago we talked about a blacklist in the config.php, I can't find that discussion right now but i think we talked about possible security issues here, which where debunked by the fact that a hacker could un-patch the integrity check eitherway. So adding the possibility to add apps to an integrity blacklist in config.php would be a good option here. That way apps/themes are still checked, but you could disable the check for a custom theme/app you have for your owncloud only.
@DeepDiver1975@PVince81 any thoughts on this? I would probably go that way if you guys have no concerns about this!
Yes, signature checking for the marketplace is literally the only thing that makes sense. You could revert the switch from themes/ to the apps/ directory for themes and just limit signature checking to the apps/ dir or even to the moment an app gets installed.
If you want further integrity checking for the whole webdir, unsigned checksums will be sufficient.
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
or have a config.php option "ignore-theme-signature => true" and then ignore signature of any theme app. That's probably the best because then the admin can decide whether they setup a local theme or whether they download the theme from the marketplace, in the latter case the signature is important.
Either "ignore-theme-signature => true" or ignore-app-signature.[appname] => true" would be fine. The second solution would allow to exclude particular apps from the check, e.g. during development when some code is "official" and other not (unsigned)
@VicDeo so if the app is listed in this config key but has a signature, then the signature will still be checked. So if a signature file is there but there is a violation, the violation will still be reported.
That should work!
Hm, I tried a test with a zip download of the stable10 branch, it required a make/compose before occ update was possible and now I see many reference errors when trying to login. Sorry, I am doing my first test from unstable code and I am not a fluent php developer... Can you give me a hint what is missing? Any docs to read?
Activity
DeepDiver1975 commentedon Sep 25, 2017
or at least allow unsigned hashes - see owncloud/appstore-issues#105 (comment)
svengit commentedon Sep 25, 2017
#23186 would probably be sufficient to solve this.
michaelstingl commentedon Sep 25, 2017
Currently I only remove
signature.jsonfrom my theme app and after a rescan I get no more warnings. I think something has been already done about it? /cc @phischsvengit commentedon Sep 26, 2017
This did not work in Owncloud 10.0.2 a few days ago. The integrity checker complained about a missing signature
michaelstingl commentedon Sep 26, 2017
With "currently" I meant 10.0.3. Sorry for being not precise.
phisch commentedon Sep 26, 2017
The thing is, we do want signature checking for apps (themes) from the marketplace, but not for custom themes.
A few months ago we talked about a blacklist in the config.php, I can't find that discussion right now but i think we talked about possible security issues here, which where debunked by the fact that a hacker could un-patch the integrity check eitherway. So adding the possibility to add apps to an integrity blacklist in config.php would be a good option here. That way apps/themes are still checked, but you could disable the check for a custom theme/app you have for your owncloud only.
@DeepDiver1975 @PVince81 any thoughts on this? I would probably go that way if you guys have no concerns about this!
svengit commentedon Sep 27, 2017
Yes, signature checking for the marketplace is literally the only thing that makes sense. You could revert the switch from themes/ to the apps/ directory for themes and just limit signature checking to the apps/ dir or even to the moment an app gets installed.
If you want further integrity checking for the whole webdir, unsigned checksums will be sufficient.
PVince81 commentedon Oct 9, 2017
@Peter-Prochaska thoughts ?
peterprochaska commentedon Oct 10, 2017
I like the idea with the blacklist for own apps/themes in config.php. But not for complete folders.
ownclouders commentedon Dec 19, 2017
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.33 remaining items
PVince81 commentedon Mar 16, 2018
or have a config.php option "ignore-theme-signature => true" and then ignore signature of any theme app. That's probably the best because then the admin can decide whether they setup a local theme or whether they download the theme from the marketplace, in the latter case the signature is important.
thommierother commentedon Mar 16, 2018
Either "ignore-theme-signature => true" or ignore-app-signature.[appname] => true" would be fine. The second solution would allow to exclude particular apps from the check, e.g. during development when some code is "official" and other not (unsigned)
PVince81 commentedon Mar 16, 2018
ok fair enough, let's go with something like "ignore-app-signature => ['app1', 'app2']", etc
we will refuse any bug report or support request that excludes official apps this way as it could hide custom modifications that could break ownCloud
PVince81 commentedon Mar 16, 2018
@VicDeo please find a format that fits well with the latest trend for existing key format in config.php ^
VicDeo commentedon Mar 16, 2018
@PVince81
ignore-app-signaturesounds bad ;)I prefer
ignore-missing-app-signaturePVince81 commentedon Mar 16, 2018
@VicDeo so if the app is listed in this config key but has a signature, then the signature will still be checked. So if a signature file is there but there is a violation, the violation will still be reported.
That should work!
PVince81 commentedon Mar 26, 2018
please test with #30891
thommierother commentedon Mar 27, 2018
Hm, I tried a test with a zip download of the stable10 branch, it required a make/compose before occ update was possible and now I see many reference errors when trying to login. Sorry, I am doing my first test from unstable code and I am not a fluent php developer... Can you give me a hint what is missing? Any docs to read?
VicDeo commentedon Mar 27, 2018
@thommierother zipped branch is not proper way to go.
You need just these two files
https://github.com/owncloud/core/raw/632cbba864e2cf4a32366a85fe631dcc8005a084/lib/private/IntegrityCheck/Checker.php
https://github.com/owncloud/core/raw/632cbba864e2cf4a32366a85fe631dcc8005a084/lib/private/IntegrityCheck/Exceptions/MissingSignatureException.php
and the following line in config.php
'integrity.ignore.missing.app.signature' => ['apptheme-name'],VicDeo commentedon Mar 27, 2018
alternatively you can try a daily build https://download.owncloud.org/community/owncloud-daily-stable10.zip
thommierother commentedon Mar 27, 2018
@VicDeo: you're right, I am stupid ... Test with daily build worked, all fine ;-).
lock commentedon Jul 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.