rubygems

对 SolarWinds 事件更深的思考:如何防御供应链攻击

旧城冷巷雨未停 提交于 2021-01-15 13:10:57
简介: 消灭企业安全体系中“隐秘的角落” ———— APT攻击愈演愈烈,与SolarWinds相关的安全反思已持续半月,阿里云安全带来了面向供应链攻击特征属性的全面攻防观察,以飨从业者。 ———— 后期精彩的APT内网对抗往往依赖于「先从外部撕开」一道口子,对于黑客而言, 脆弱的供应链无异于一块「新大陆」,成为击穿「关键基础设施」的最佳切入点。 应用开发方式变革引入供应链风险 随着企业上云,传统的网络边界正在逐渐消失,尤其是突如其来的疫情,更是让几乎所有企业都不得不进行远程办公,员工开始从家庭网络、咖啡厅与企业网络建立连接, 企业的IT架构正在从「有边界」向「无限边界」发生转变。 受益于开源软件与成熟的三方产品和服务(COTS)的优势,国内互联网、金融行业快速发展。在COTS模式下,企业可以快速采购到能够满足当前业务需要的生产工具、软件或硬件产品,从而节省成本和时间。 开源软件的蓬勃发展改变了应用开发形态,现代应用的开发人员不再首选自研,而是会看当前业界是否已有成熟的框架或解决方案。 Synopsys公司发布的《2020年开源安全和风险分析OSSRA报告》中指出,当前超过90%的现代应用融入了开源组件,平均每个应用包含超过124个开源组件,其中49%的开源组件存在高危漏洞。 从政府服务到金融机构每个组织都依靠软件来为客户提供服务。嵌入式软件不再仅仅局限于计算机

制作nginx的rpm包:

陌路散爱 提交于 2021-01-10 13:20:42
准备镜像源 rpm -ivh epel-release-latest-7.noarch.rpm // 安装扩展源 cd /etc/yum.repos.d/ mv backup /CentOS7-Base-163.repo./ yum clean all && yum makecache yum install -y ruby rubygems ruby-devel gem update --system // 升级 rubygems 版本 / 此图片为报错 gem install rubygems-update -v 2.3.0 // 报错什么版本就升级到什么版本 gem update --system // 再次升级 gem sources -l // 查看已存在的镜像源 gem sources -a http://mirrors.aliyun.com/rubygems/ // 将阿里云镜像源加入 gem sources --remove https://rubygems.org/ // 将国外镜像源移除 gem sources -l // 查看镜像源是否移入 gem install fpm // 安装 FAM 工具 tar xf nginx-1.14.2.tar.gz -C /usr/src/ cd /usr/src/nginx-1.14.2/ yum -y install

NoMethodError: undefined method `spec' for nil:NilClass - active_utils, factory_girl and more gems failing

你离开我真会死。 提交于 2020-12-30 07:59:22
问题 Out of nowhere, and without changing anything, I've started getting this error (and so did other people on the team). This is happening for some gems (the ones specifying a git branch) and is only happening when we recreate the environment (in vagrant). We didn't change anything. Any ideas? More info follows: Using active_utils (2.0.0) from git://github.com/Shopify/active_utils.git (at v2.0.0) NoMethodError: undefined method `spec' for nil:NilClass An error occurred while installing active

Ruby Bundler Authentication Error

ε祈祈猫儿з 提交于 2020-12-30 06:23:04
问题 I'm getting a strange error from bundler that I haven't seen before. On bundle install I get: Please CGI escape your usernames and passwords before setting them for authentication This only happens on one repo, and I suspect it has something to do with gem sources from github for a couple of gems in that gemfile. Worth noting, these gets are being pulling from git://github.com/ , rather than SSH. Not sure if this might be what is causing the problem. Couldn't find any information on this in

Ruby Bundler Authentication Error

岁酱吖の 提交于 2020-12-30 06:22:49
问题 I'm getting a strange error from bundler that I haven't seen before. On bundle install I get: Please CGI escape your usernames and passwords before setting them for authentication This only happens on one repo, and I suspect it has something to do with gem sources from github for a couple of gems in that gemfile. Worth noting, these gets are being pulling from git://github.com/ , rather than SSH. Not sure if this might be what is causing the problem. Couldn't find any information on this in

Ruby Bundler Authentication Error

爷,独闯天下 提交于 2020-12-30 06:22:47
问题 I'm getting a strange error from bundler that I haven't seen before. On bundle install I get: Please CGI escape your usernames and passwords before setting them for authentication This only happens on one repo, and I suspect it has something to do with gem sources from github for a couple of gems in that gemfile. Worth noting, these gets are being pulling from git://github.com/ , rather than SSH. Not sure if this might be what is causing the problem. Couldn't find any information on this in

Ruby Bundler Authentication Error

橙三吉。 提交于 2020-12-30 06:22:05
问题 I'm getting a strange error from bundler that I haven't seen before. On bundle install I get: Please CGI escape your usernames and passwords before setting them for authentication This only happens on one repo, and I suspect it has something to do with gem sources from github for a couple of gems in that gemfile. Worth noting, these gets are being pulling from git://github.com/ , rather than SSH. Not sure if this might be what is causing the problem. Couldn't find any information on this in

Unable to install cocoa pods

混江龙づ霸主 提交于 2020-12-08 16:02:03
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf

Unable to install cocoa pods

自古美人都是妖i 提交于 2020-12-08 15:54:07
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf

Unable to install cocoa pods

。_饼干妹妹 提交于 2020-12-08 15:52:31
问题 I want to install cocoapods on MacOS to run the pod command. But on doing sudo gem install cocoa-pods I get the following: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c /usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb checking for ffi.h... *** extconf