-
Notifications
You must be signed in to change notification settings - Fork 527
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
Remove the dependency on alicdn.com
#187
Comments
@tiffon can we just embed the dependencies? |
I'll check it out. |
I strongly concur - every installation is effectively advertising it's control points to that CDN. |
There is no reference to that path in this repository, also, who publishes the docker images?
|
It's interesting that an application intended to monitor the core of one's networks is embedding a beacon hosted on a Chinese CDN. |
And surprised this hasn't gotten more attention. |
@tiffon - any feedback ? |
Ah - b7a3e74 - "Use Ant Design instead of Semantic UI" - looks like you're in for a penny - in for a pound with that dependency... Always be auditing.. |
So the issue has been brought up in ant-design in 2018 - they were not responsive (surprise) and a workaround was suggested - ant-design/ant-design#11063. Really, I'd have to ask, do you really want to be cooking this into the middle of your network? |
@bryanhuntesl You down-voted local-iconfont, which is basically hosting the font locally. Can you elaborate on why that's not a valid solution? We're also looking into using |
Command injection vulnerability in that package's deps. Is it possible to fork ant-design and remove the CSS that loads the fonts from the PRC CDN ?
https://www.npmjs.com/advisories/146 Overview Affected versions of growl do not properly sanitize input prior to passing it into a shell command, allowing for arbitrary command execution. Update to version 1.10.2 or later. |
@bryanhuntesl I see, thanks. Rather than forking antd, I think it's easier to serve the fonts (without the local-iconfont package) from |
What exactly does local-iconfont package do? I thought it's built-time only tool that will package fonts as static assets. |
The fonts are static assets. We can simply copy them into our Regarding what |
From https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont:
So this issue could be resolved by upgrading current dependency (that is 3.8.0) or removing it completely (#520). |
@clippit would you like to give it a try? |
@jpkrohling [email protected] is pretty old but current |
Resolves #187 Despite the concerns in the original ticket, it does not seem to affect the bundle size, because SVG icons are inlined, so the full font file is not added to the bundle. ``` $ du -h cmd/query/app/ui/actual/ 3.8M cmd/query/app/ui/actual/ ``` Signed-off-by: Yuri Shkuro <[email protected]>
Jaeger might be deployed on a restricted network, so, depending on resources from
alicdn.com
should be avoided.The text was updated successfully, but these errors were encountered: