Posts: 2,572
Joined: Aug 2012
Reputation:
217
I like that proposal a lot more than the other alternatives.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
2017-09-07, 06:51
(This post was last modified: 2017-09-07, 06:52 by Martijn.)
We already tried the beta repo once and it did NOT work. It was complete mess and we just killed it in the end. So I'm against even trying again.
Posts: 8,056
Joined: Feb 2013
Reputation:
1,574
I know past beta repos have had their problems, but this would have very limited access and only be for addons where overriding official was absolutely essential. I understand the hesitance, but at least this way there would be centralised control over what addons can override.
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
I'd +1 that.
No clue why the previous attempt failed, but I suspect that if it becomes a *must* due to restrictions on non-official repos, it might work this time.
Posts: 207
Joined: Feb 2013
Reputation:
6
L0RE
Senior Member
Posts: 207
I think a Whitelist of Repos for an addon in the addons.xml would be better .
There is always an exception that would fit an an Official Dev Repo.. Most Flexible,with the best possible Security.
It would even allow Addon developer. Forbitting superreo mirroring the addon
Posts: 8,056
Joined: Feb 2013
Reputation:
1,574
Whitelist won't work. Any setting stored locally won't work because malicious repos or wizards can simply overwrite the setting and install their own junk. Plus there would be no centralised control over what is in beta repos which kinda defeats the purpose.
Posts: 207
Joined: Feb 2013
Reputation:
6
L0RE
Senior Member
Posts: 207
2017-09-07, 23:21
(This post was last modified: 2017-09-07, 23:28 by L0RE.)
@juralmunkey: the whitelisting is in the repo.xml . When kodi finds a new version from an 3party repo it checks the whitelist against the repo.xml from kodi.tv, not the file in the addon, so no overwriting could be done.This would be a solution for the problem. It would stay compatible with older kodi version, because repo.xml would be ignored
So no damage could be done
Posts: 6,255
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,255
a small modification to a python/xml file is dead simple for an add-on to do. Overwrite Kodi binaries not, as you can't replace a binary currently being executed, can you?
Posts: 6,255
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,255
without elevated privileges you usually can't mess with any file inside "Program Files". Also, on Android, the binary is readonly. And yes, it will never be a 100% secure
Posts: 1,332
Joined: Jan 2016
Reputation:
54
May I am speaking out of place or repeating something already stated as I just read bit and pieces of this on going discussion.But if it is security you want then that is not what your going to get as long as u allow outside add-ons to be installed into Kodi ... If you did lock down the repos to only allow offical add-ons whose code was been reviewed then at that point would could begin to truly improve the security. But even with that someone will find a way to "get root".
Python is a awesome language and there is a lot a script can do to ones PC not just Kodi ... You can how ever use Kodi as the interpreter to deploy malicious scripts.
With that maybe it is time for a Kodi add-on repo.... That's locked down but still with a few steps you can unlock developer mode .. with that if you install beta repos or add-ons it will disable install from offical repo...but in the flip side you turn off developer mode and it force a update to all add-on from the official repo.
And have plenty of pop ups telling someone they are on there own in developer mode.
Posts: 207
Joined: Feb 2013
Reputation:
6
L0RE
Senior Member
Posts: 207
@snitchell6879
"That's locked down but still with a few steps you can unlock developer mode .. with that if you install beta repos or add-ons it will disable install from offical repo...but in the flip side you turn off developer mode and it force a update to all add-on from the official repo"
When you do so you cant develope an addon with an offical module as dependency. So developer must fork all modules they use like the request module... i think that would make more chaos .....
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I was thinking that the official repo would be available ... Developer mode would just let you overwrite the official add-ons if they have the same I'd. Either way I am using Leia now and I you update a add-on you can choice where to update it from I haven't used a beta repo but I will test it out. Most things I just manual install and just enable in the add-ons lol. I don't use repos yet.