-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make extension have a static ID so it can be whitelisted #3674
Conversation
Hmm can we embed an Easter egg like “cypressio” inside the id
…Sent from my iPhone
On Mar 8, 2019, at 16:55, Zach Bloomquist ***@***.***> wrote:
Fixes #1239
This PR makes the extension have a static ID so it can be whitelisted.
The extension ID for Cypress is: caljajdfkjjjdehjdoimjkkakekklcck
You can view, comment on, or merge this pull request online at:
#3674
Commit Summary
extension: add static key to manifest.json
File Changes
M packages/extension/app/manifest.json (1)
M packages/extension/test/unit/extension_spec.coffee (12)
Patch Links:
https://github.com/cypress-io/cypress/pull/3674.patch
https://github.com/cypress-io/cypress/pull/3674.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@bahmutov it's funny you asked... I wrote a shell script to bruteforce extension IDs to do just that, then I realized you can only use characters from A to P (shifted hexadecimal): https://gist.github.com/flotwig/37121c884d2f19712935eb1bc9a55efe Too bad. This ID does begin with "c" though. I'm open to other ideas that only use characters between A and P. |
I knew you were one step ahead. Yeah, but still people manage to hide eggs in hex code
…Sent from my iPhone
On Mar 8, 2019, at 19:18, Zach Bloomquist ***@***.***> wrote:
@bahmutov it's funny you asked... I wrote a shell script to bruteforce extension IDs to do just that, then I realized you can only use characters from A to P (shifted hexadecimal):
https://gist.github.com/flotwig/37121c884d2f19712935eb1bc9a55efe
Too bad. It does begin with "c" though. I'm open to other ideas that only use characters between A and P.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just curious why this needs to happen? since we build the extension locally and pass it in via command line arguments - in what scenario would a user need this to be whitelisted? |
@brian-mann There's a Chrome policy that sets a whitelist of permitted extension IDs, apparently it has been causing problems with loading the extension: #1239 (comment) |
Can we instead accept this via a command line flag? I don’t think we want to embed the ID directly in the manifest for reasons. Then people could generate their own extension id and we’d load the extension with this in the manifest. |
@brian-mann This is also helpful in situations where the user's company blocks extensions by id as detailed here: #2494 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. @jennifer-shehane we need to add this to the docs.
I think we should also accept the extension ID via CLI flags but that can be a separate PR.
🎶super caljajdfkjjjdehjdoimjkkakekklcck expialidocious 🎶 |
Hi @brian-mann could you elaborate more on the fact it's build locally? Is the extension built on users machine during the install process (and Chrome is provided with a location to the unpacked extension- or is there a CRX file involved)? My company does not allow whitelisting by ID and instead we must package an approved CRX file which can then be installed to users machines. |
@jaredrada There is no Is your organization using the |
Thanks for the quick reply. Will have to look into that route or alternatively see if you'll add support for running in Chrome w/o using the extension as mentioned in #2494 (comment) as it appears most of the engineering was done for headless Chrome.
|
@flotwig @jaredrada / @brian-mann / @jennifer-shehane So, our company blocks all extension and selectively whitelists fe extension. I have the latest Cypress installed and IT has whitelisted the extension ID for Cypress is: caljajdfkjjjdehjdoimjkkakekklcck. When using WINDOWS "admin" account the static extension id is available and tests get executed in chrome browser. However when using a windows local-user (non admin) the extension is not available ('cy' icon is not present in the browser and doesn't show up under extensions)and standard error page is displayed. The company policy prevents from users having an elevated or admin-like account so the tester's can't really run the tests. Any suggestions / workarounds? I've already tried deleting the everything under "cy" folder from "View App Data" and restarted Cypress but that has not helped. Here are the logs:
|
Fixes #3673
Fixes #1239
This PR makes the extension have a static ID so it can be whitelisted.
The extension ID for Cypress is:
caljajdfkjjjdehjdoimjkkakekklcck