browser-ext-github-monaco icon indicating copy to clipboard operation
browser-ext-github-monaco copied to clipboard

Support for on premise github instances

Open hanny24 opened this issue 4 years ago • 6 comments

It would be nice to support on premise instances of Github as well. Perhaps some sort of configuration option that allows users to list all URL patterns?

Thanks!

hanny24 avatar Feb 11 '21 18:02 hanny24

I fear that this will be difficult, as browser extensions need to list every site they want to access for security reasons. I could publish a second browser extension with access to * though. This would mean that it potentially could read online banking credentials...

I'm very concerned about security and I'm open for suggestions! I don't want to get an heart attack if I accidentally install a malicious npm package that somehow manages to read my Google dev account credentials.

hediet avatar Feb 11 '21 19:02 hediet

@hediet No to *.

There is a known vulnerability in Google Chrome plug-ins around that, which allows for a Confused Deputy Attack. Paper was published in 2018. Google has no solution for it really

jzabroski avatar Feb 11 '21 20:02 jzabroski

@jzabroski thanks! Do you have a link to the paper?

hediet avatar Feb 11 '21 21:02 hediet

OK, I did not know that. I guess I'll modify & build the extension locally. Thank you anyway. Feel free to close the issue.

hanny24 avatar Feb 12 '21 07:02 hanny24

For the Firefox extension, I know of other extensions (for example Refined Github) that manage to request the right permissions at runtime, so this should be achievable.

This seems to be relevant: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/permissions/request

outadoc avatar Feb 22 '21 13:02 outadoc

Hi! I've opened a PR to add support for this: https://github.com/hediet/browser-ext-github-monaco/pull/26

I'm no web developer (and unfamiliar with the tooling), so feedback is welcome 👍

outadoc avatar Mar 05 '21 13:03 outadoc