-
Notifications
You must be signed in to change notification settings - Fork 747
fix(amazonq): remove the depedency of the CDN js script. #7587
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
Conversation
1. update the commonAuthViewProvider to use the locally bundled vue.js, instead of to load the vue.js from CDN. 2. this going to resolve the customer request that When customer is trying to login to IDC via Q they are hitting a URL which is not part of the whitelist urls as per [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/firewall.html)
|
| </head> | ||
| <body> | ||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.4/vue.global.prod.min.js"></script> | ||
| <script src="${vueScript.toString()}"></script> |
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.
does the version (3.4.4) matter? If the version changes, would it break?
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.
I don't think so, did local tested with the generated vsix for the amazon Q sign in and sign out, didn't see any issue for the login ux with vue.js file in [3.3.4 which is used in the toolkit package](
aws-toolkit-vscode/packages/core/package.json
Line 576 in bfdb0eb
| "vue": "^3.3.4", |
|
|
||
| // Vue.js for webviews | ||
| { | ||
| target: path.join('../../node_modules', 'vue', 'dist', 'vue.global.prod.js'), |
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.
please test both Q and toolkit
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.

Problem
Customers complain about need to whitelist the
cdnjs.cloudflare.comwhich doesn't listed in the https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/firewall.htmlSolution
update the commonAuthViewProvider to use the locally bundled vue.js, instead of to load the vue.js from CDN.
verified the amazon Q auth view still working as expected after this change.

feature/xbranches will not be squash-merged at release time.