tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gitlab: 8.16.6 -> 8.17.4 for CVE-2017-0882
Franz Pletz
8 years ago
29f57ac4
37c31c63
+99
-104
4 changed files
expand all
collapse all
unified
split
pkgs
applications
version-management
gitlab
Gemfile
Gemfile.lock
default.nix
gemset.nix
+9
-8
pkgs/applications/version-management/gitlab/Gemfile
···
7
7
gem 'responders', '~> 2.0'
8
8
9
9
gem 'sprockets', '~> 3.7.0'
10
10
-
gem 'sprockets-es6', '~> 0.9.2'
11
10
12
11
# Default values for AR models
13
12
gem 'default_value_for', '~> 3.0.0'
···
36
35
gem 'omniauth_crowd', '~> 2.2.0'
37
36
gem 'omniauth-authentiq', '~> 0.2.0'
38
37
gem 'rack-oauth2', '~> 1.2.1'
39
39
-
gem 'jwt'
38
38
+
gem 'jwt', '~> 1.5.6'
40
39
41
40
# Spam and anti-bot protection
42
41
gem 'recaptcha', '~> 3.0', require: 'recaptcha/rails'
···
47
46
gem 'rqrcode-rails3', '~> 0.1.7'
48
47
gem 'attr_encrypted', '~> 3.0.0'
49
48
gem 'u2f', '~> 0.2.1'
49
49
+
50
50
+
# GitLab Pages
51
51
+
gem 'validates_hostname', '~> 1.0.6'
50
52
51
53
# Browser detection
52
54
gem 'browser', '~> 2.2'
···
109
111
gem 'creole', '~> 0.5.0'
110
112
gem 'wikicloth', '0.8.1'
111
113
gem 'asciidoctor', '~> 1.5.2'
112
112
-
gem 'asciidoctor-plantuml', '0.0.6'
114
114
+
gem 'asciidoctor-plantuml', '0.0.7'
113
115
gem 'rouge', '~> 2.0'
114
116
gem 'truncato', '~> 0.7.8'
115
117
···
219
221
gem 'chronic', '~> 0.10.2'
220
222
gem 'chronic_duration', '~> 0.10.6'
221
223
224
224
+
gem 'webpack-rails', '~> 0.9.9'
225
225
+
gem 'rack-proxy', '~> 0.6.0'
226
226
+
222
227
gem 'sass-rails', '~> 5.0.6'
223
228
gem 'coffee-rails', '~> 4.1.0'
224
229
gem 'uglifier', '~> 2.7.2'
225
225
-
gem 'gitlab-turbolinks-classic', '~> 2.5', '>= 2.5.6'
226
230
227
231
gem 'addressable', '~> 2.3.8'
228
232
gem 'bootstrap-sass', '~> 3.3.0'
···
280
284
gem 'rspec-retry', '~> 0.4.5'
281
285
gem 'spinach-rails', '~> 0.2.1'
282
286
gem 'spinach-rerun-reporter', '~> 0.0.2'
287
287
+
gem 'rspec_profiling'
283
288
284
289
# Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
285
290
gem 'minitest', '~> 5.7.0'
···
291
296
gem 'capybara-screenshot', '~> 1.0.0'
292
297
gem 'poltergeist', '~> 1.9.0'
293
298
294
294
-
gem 'teaspoon', '~> 1.1.0'
295
295
-
gem 'teaspoon-jasmine', '~> 2.2.0'
296
296
-
297
299
gem 'spring', '~> 1.7.0'
298
300
gem 'spring-commands-rspec', '~> 1.0.4'
299
301
gem 'spring-commands-spinach', '~> 1.1.0'
300
300
-
gem 'spring-commands-teaspoon', '~> 0.0.2'
301
302
302
303
gem 'rubocop', '~> 0.46.0', require: false
303
304
gem 'rubocop-rspec', '~> 1.9.1', require: false
+24
-28
pkgs/applications/version-management/gitlab/Gemfile.lock
···
56
56
faraday_middleware-multi_json (~> 0.0)
57
57
oauth2 (~> 1.0)
58
58
asciidoctor (1.5.3)
59
59
-
asciidoctor-plantuml (0.0.6)
59
59
+
asciidoctor-plantuml (0.0.7)
60
60
asciidoctor (~> 1.5)
61
61
ast (2.3.0)
62
62
attr_encrypted (3.0.3)
···
74
74
descendants_tracker (~> 0.0.4)
75
75
ice_nine (~> 0.11.0)
76
76
thread_safe (~> 0.3, >= 0.3.1)
77
77
-
babel-source (5.8.35)
78
78
-
babel-transpiler (0.7.0)
79
79
-
babel-source (>= 4.0, < 6)
80
80
-
execjs (~> 2.0)
81
77
babosa (1.0.2)
82
78
base32 (0.3.2)
83
79
bcrypt (3.1.11)
···
268
264
mime-types (>= 1.16, < 3)
269
265
posix-spawn (~> 0.3)
270
266
gitlab-markup (1.5.1)
271
271
-
gitlab-turbolinks-classic (2.5.6)
272
272
-
coffee-rails
273
267
gitlab_omniauth-ldap (1.2.1)
274
268
net-ldap (~> 0.9)
275
269
omniauth (~> 1.0)
···
381
375
json (1.8.3)
382
376
json-schema (2.6.2)
383
377
addressable (~> 2.3.8)
384
384
-
jwt (1.5.4)
378
378
+
jwt (1.5.6)
385
379
kaminari (0.17.0)
386
380
actionpack (>= 3.0.0)
387
381
activesupport (>= 3.0.0)
···
550
544
rack (>= 1.1)
551
545
rack-protection (1.5.3)
552
546
rack
547
547
+
rack-proxy (0.6.0)
548
548
+
rack
553
549
rack-test (0.6.3)
554
550
rack (>= 1.0)
555
551
rails (4.2.7.1)
···
644
640
rspec-retry (0.4.5)
645
641
rspec-core
646
642
rspec-support (3.5.0)
643
643
+
rspec_profiling (0.0.4)
644
644
+
activerecord
645
645
+
pg
646
646
+
rails
647
647
+
sqlite3
647
648
rubocop (0.46.0)
648
649
parser (>= 2.3.1.1, < 3.0)
649
650
powerpack (~> 0.1)
···
662
663
sexp_processor (~> 4.1)
663
664
rubyntlm (0.5.2)
664
665
rubypants (0.2.0)
665
665
-
rubyzip (1.2.0)
666
666
+
rubyzip (1.2.1)
666
667
rufus-scheduler (3.1.10)
667
668
rugged (0.24.0)
668
669
safe_yaml (1.0.4)
···
732
733
spring (>= 0.9.1)
733
734
spring-commands-spinach (1.1.0)
734
735
spring (>= 0.9.1)
735
735
-
spring-commands-teaspoon (0.0.2)
736
736
-
spring (>= 0.9.1)
737
736
sprockets (3.7.0)
738
737
concurrent-ruby (~> 1.0)
739
738
rack (> 1, < 3)
740
740
-
sprockets-es6 (0.9.2)
741
741
-
babel-source (>= 5.8.11)
742
742
-
babel-transpiler
743
743
-
sprockets (>= 3.0.0)
744
739
sprockets-rails (3.1.1)
745
740
actionpack (>= 4.0)
746
741
activesupport (>= 4.0)
747
742
sprockets (>= 3.0.0)
743
743
+
sqlite3 (1.3.11)
748
744
stackprof (0.2.10)
749
745
state_machines (0.4.0)
750
746
state_machines-activemodel (0.4.0)
···
757
753
sys-filesystem (1.1.6)
758
754
ffi
759
755
sysexits (1.2.0)
760
760
-
teaspoon (1.1.5)
761
761
-
railties (>= 3.2.5, < 6)
762
762
-
teaspoon-jasmine (2.2.0)
763
763
-
teaspoon (>= 1.0.0)
764
756
temple (0.7.7)
765
757
test_after_commit (1.1.0)
766
758
activerecord (>= 3.2)
···
795
787
get_process_mem (~> 0)
796
788
unicorn (>= 4, < 6)
797
789
uniform_notifier (1.10.0)
790
790
+
validates_hostname (1.0.6)
791
791
+
activerecord (>= 3.0)
792
792
+
activesupport (>= 3.0)
798
793
version_sorter (2.1.0)
799
794
virtus (1.0.5)
800
795
axiom-types (~> 0.1)
···
812
807
webmock (1.21.0)
813
808
addressable (>= 2.3.6)
814
809
crack (>= 0.3.2)
810
810
+
webpack-rails (0.9.9)
811
811
+
rails (>= 3.2.0)
815
812
websocket-driver (0.6.3)
816
813
websocket-extensions (>= 0.1.0)
817
814
websocket-extensions (0.1.2)
···
838
835
allocations (~> 1.0)
839
836
asana (~> 0.4.0)
840
837
asciidoctor (~> 1.5.2)
841
841
-
asciidoctor-plantuml (= 0.0.6)
838
838
+
asciidoctor-plantuml (= 0.0.7)
842
839
attr_encrypted (~> 3.0.0)
843
840
awesome_print (~> 1.2.0)
844
841
babosa (~> 1.0.2)
···
888
885
github-linguist (~> 4.7.0)
889
886
gitlab-flowdock-git-hook (~> 1.0.1)
890
887
gitlab-markup (~> 1.5.1)
891
891
-
gitlab-turbolinks-classic (~> 2.5, >= 2.5.6)
892
888
gitlab_omniauth-ldap (~> 1.2.1)
893
889
gollum-lib (~> 4.2)
894
890
gollum-rugged_adapter (~> 0.4.2)
···
909
905
jquery-rails (~> 4.1.0)
910
906
jquery-ui-rails (~> 5.0.0)
911
907
json-schema (~> 2.6.2)
912
912
-
jwt
908
908
+
jwt (~> 1.5.6)
913
909
kaminari (~> 0.17.0)
914
910
knapsack (~> 1.11.0)
915
911
kubeclient (~> 2.2.0)
···
952
948
rack-attack (~> 4.4.1)
953
949
rack-cors (~> 0.4.0)
954
950
rack-oauth2 (~> 1.2.1)
951
951
+
rack-proxy (~> 0.6.0)
955
952
rails (= 4.2.7.1)
956
953
rails-deprecated_sanitizer (~> 1.0.3)
957
954
rainbow (~> 2.1.0)
···
968
965
rqrcode-rails3 (~> 0.1.7)
969
966
rspec-rails (~> 3.5.0)
970
967
rspec-retry (~> 0.4.5)
968
968
+
rspec_profiling
971
969
rubocop (~> 0.46.0)
972
970
rubocop-rspec (~> 1.9.1)
973
971
ruby-fogbugz (~> 0.2.1)
···
992
990
spring (~> 1.7.0)
993
991
spring-commands-rspec (~> 1.0.4)
994
992
spring-commands-spinach (~> 1.1.0)
995
995
-
spring-commands-teaspoon (~> 0.0.2)
996
993
sprockets (~> 3.7.0)
997
997
-
sprockets-es6 (~> 0.9.2)
998
994
stackprof (~> 0.2.10)
999
995
state_machines-activerecord (~> 0.4.0)
1000
996
sys-filesystem (~> 1.1.6)
1001
1001
-
teaspoon (~> 1.1.0)
1002
1002
-
teaspoon-jasmine (~> 2.2.0)
1003
1003
-
test_after_commit (~> 0.4.2)
997
997
+
test_after_commit (~> 1.1)
1004
998
thin (~> 1.7.0)
1005
999
timecop (~> 0.8.0)
1006
1000
truncato (~> 0.7.8)
···
1010
1004
unf (~> 0.1.4)
1011
1005
unicorn (~> 5.1.0)
1012
1006
unicorn-worker-killer (~> 0.4.4)
1007
1007
+
validates_hostname (~> 1.0.6)
1013
1008
version_sorter (~> 2.1.0)
1014
1009
virtus (~> 1.0.1)
1015
1010
vmstat (~> 2.3.0)
1016
1011
web-console (~> 2.0)
1017
1012
webmock (~> 1.21.0)
1013
1013
+
webpack-rails (~> 0.9.9)
1018
1014
wikicloth (= 0.8.1)
1019
1015
1020
1016
BUNDLED WITH
1021
1021
-
1.13.7
1017
1017
+
1.14.5
+22
-8
pkgs/applications/version-management/gitlab/default.nix
···
1
1
-
{ stdenv, lib, bundler, fetchFromGitHub, bundlerEnv, libiconv, ruby
2
2
-
, tzdata, git, nodejs, procps
1
1
+
{ stdenv, lib, bundler, fetchurl, fetchFromGitHub, bundlerEnv, libiconv, ruby
2
2
+
, tzdata, git, nodejs, procps, dpkg
3
3
}:
4
4
5
5
/* When updating the Gemfile add `gem "activerecord-nulldb-adapter"`
···
18
18
};
19
19
};
20
20
21
21
+
version = "8.17.4";
22
22
+
23
23
+
gitlabDeb = fetchurl {
24
24
+
url = "https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/jessie/gitlab-ce_${version}-ce.0_amd64.deb/download";
25
25
+
sha256 = "1fd6y9lyavzsm2ac10sip01dnvcd73ymcn2rqdljr4sq4f222mry";
26
26
+
};
27
27
+
21
28
in
22
29
23
30
stdenv.mkDerivation rec {
24
31
name = "gitlab-${version}";
25
25
-
version = "8.16.6";
26
32
27
27
-
buildInputs = [ env ruby bundler tzdata git nodejs procps ];
33
33
+
buildInputs = [
34
34
+
env ruby bundler tzdata git nodejs procps dpkg
35
35
+
];
28
36
29
37
src = fetchFromGitHub {
30
38
owner = "gitlabhq";
31
39
repo = "gitlabhq";
32
40
rev = "v${version}";
33
33
-
sha256 = "03rzms2frwx4c09l2rig1amlxj965s2iq421i52j8wj2khb7pd7g";
41
41
+
sha256 = "1yrbbf55pz7863xngl2mxwj9w4imdlqvmqywd1zpnswdsjqxa5xj";
34
42
};
35
43
36
44
patches = [
···
64
72
65
73
buildPhase = ''
66
74
mv config/gitlab.yml.example config/gitlab.yml
67
67
-
GITLAB_DATABASE_ADAPTER=nulldb \
68
68
-
SKIP_STORAGE_VALIDATION=true \
69
69
-
rake assets:precompile RAILS_ENV=production
75
75
+
76
76
+
dpkg -x ${gitlabDeb} .
77
77
+
mv -v opt/gitlab/embedded/service/gitlab-rails/public/assets public
78
78
+
rm -rf opt
79
79
+
80
80
+
export GITLAB_DATABASE_ADAPTER=nulldb
81
81
+
export SKIP_STORAGE_VALIDATION=true
82
82
+
rake assets:precompile RAILS_ENV=production
83
83
+
70
84
mv config/gitlab.yml config/gitlab.yml.example
71
85
rm config/secrets.yml
72
86
mv config config.dist
+44
-60
pkgs/applications/version-management/gitlab/gemset.nix
···
146
146
asciidoctor-plantuml = {
147
147
source = {
148
148
remotes = ["https://rubygems.org"];
149
149
-
sha256 = "0rd8yh0by5sxhg1c3cb1mzkp4jp3j8v6vzbyv1mx492s9ml451fx";
149
149
+
sha256 = "00ax9r822n4ykl6jizaxp03wqzknr7nn20mmqjpiwajy9j0zvr88";
150
150
type = "gem";
151
151
};
152
152
-
version = "0.0.6";
152
152
+
version = "0.0.7";
153
153
};
154
154
ast = {
155
155
source = {
···
206
206
type = "gem";
207
207
};
208
208
version = "0.1.1";
209
209
-
};
210
210
-
babel-source = {
211
211
-
source = {
212
212
-
remotes = ["https://rubygems.org"];
213
213
-
sha256 = "1ncq8h82k6hypzfb5dk7z95mmcdwnhsxmc53xz17m1nbklm25vvr";
214
214
-
type = "gem";
215
215
-
};
216
216
-
version = "5.8.35";
217
217
-
};
218
218
-
babel-transpiler = {
219
219
-
source = {
220
220
-
remotes = ["https://rubygems.org"];
221
221
-
sha256 = "0w0minwxj56w96xps1msm6n75fs0y7r1vqcr9zlsn74fksnz81jc";
222
222
-
type = "gem";
223
223
-
};
224
224
-
version = "0.7.0";
225
209
};
226
210
babosa = {
227
211
source = {
···
944
928
};
945
929
version = "1.5.1";
946
930
};
947
947
-
gitlab-turbolinks-classic = {
948
948
-
source = {
949
949
-
remotes = ["https://rubygems.org"];
950
950
-
sha256 = "1zfqwa1pahhcz1yxvwigg94bck2zsqk2jsrc0wdcybhr0iwi5jra";
951
951
-
type = "gem";
952
952
-
};
953
953
-
version = "2.5.6";
954
954
-
};
955
931
gitlab_omniauth-ldap = {
956
932
source = {
957
933
remotes = ["https://rubygems.org"];
···
1235
1211
jwt = {
1236
1212
source = {
1237
1213
remotes = ["https://rubygems.org"];
1238
1238
-
sha256 = "0s5llb4mhpy0phzbrc4jd2jd2b91h1axy4bhci7g1bdz1w2m3a2i";
1214
1214
+
sha256 = "124zz1142bi2if7hl5pcrcamwchv4icyr5kaal9m2q6wqbdl6aw4";
1239
1215
type = "gem";
1240
1216
};
1241
1241
-
version = "1.5.4";
1217
1217
+
version = "1.5.6";
1242
1218
};
1243
1219
kaminari = {
1244
1220
source = {
···
1848
1824
};
1849
1825
version = "1.5.3";
1850
1826
};
1827
1827
+
rack-proxy = {
1828
1828
+
source = {
1829
1829
+
remotes = ["https://rubygems.org"];
1830
1830
+
sha256 = "1bpbcb9ch94ha2q7gdri88ry7ch0z6ian289kah9ayxyqg19j6f4";
1831
1831
+
type = "gem";
1832
1832
+
};
1833
1833
+
version = "0.6.0";
1834
1834
+
};
1851
1835
rack-test = {
1852
1836
source = {
1853
1837
remotes = ["https://rubygems.org"];
···
2152
2136
};
2153
2137
version = "3.5.0";
2154
2138
};
2139
2139
+
rspec_profiling = {
2140
2140
+
source = {
2141
2141
+
remotes = ["https://rubygems.org"];
2142
2142
+
sha256 = "01qrs189r0q08ys8vax269ff858q9ypsc94n1d700m9da44zi3wg";
2143
2143
+
type = "gem";
2144
2144
+
};
2145
2145
+
version = "0.0.4";
2146
2146
+
};
2155
2147
rubocop = {
2156
2148
source = {
2157
2149
remotes = ["https://rubygems.org"];
···
2227
2219
rubyzip = {
2228
2220
source = {
2229
2221
remotes = ["https://rubygems.org"];
2230
2230
-
sha256 = "10a9p1m68lpn8pwqp972lv61140flvahm3g9yzbxzjks2z3qlb2s";
2222
2222
+
sha256 = "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz";
2231
2223
type = "gem";
2232
2224
};
2233
2233
-
version = "1.2.0";
2225
2225
+
version = "1.2.1";
2234
2226
};
2235
2227
rufus-scheduler = {
2236
2228
source = {
···
2464
2456
};
2465
2457
version = "1.1.0";
2466
2458
};
2467
2467
-
spring-commands-teaspoon = {
2468
2468
-
source = {
2469
2469
-
remotes = ["https://rubygems.org"];
2470
2470
-
sha256 = "1g7n4m2s9d0frh7y1xibzpphqajfnx4fvgfc66nh545dd91w2nqz";
2471
2471
-
type = "gem";
2472
2472
-
};
2473
2473
-
version = "0.0.2";
2474
2474
-
};
2475
2459
sprockets = {
2476
2460
source = {
2477
2461
remotes = ["https://rubygems.org"];
···
2480
2464
};
2481
2465
version = "3.7.0";
2482
2466
};
2483
2483
-
sprockets-es6 = {
2467
2467
+
sprockets-rails = {
2484
2468
source = {
2485
2469
remotes = ["https://rubygems.org"];
2486
2486
-
sha256 = "0508h3vnjz08c64k11za6cqnbvvifka9pmdrycamzzjd4dmf10y3";
2470
2470
+
sha256 = "1sak0as7ka964f6zjb1w8hkvfkkbf55kpcyvh7k6nyrb6pqnwmnf";
2487
2471
type = "gem";
2488
2472
};
2489
2489
-
version = "0.9.2";
2473
2473
+
version = "3.1.1";
2490
2474
};
2491
2491
-
sprockets-rails = {
2475
2475
+
sqlite3 = {
2492
2476
source = {
2493
2477
remotes = ["https://rubygems.org"];
2494
2494
-
sha256 = "1sak0as7ka964f6zjb1w8hkvfkkbf55kpcyvh7k6nyrb6pqnwmnf";
2478
2478
+
sha256 = "19r06wglnm6479ffj9dl0fa4p5j2wi6dj7k6k3d0rbx7036cv3ny";
2495
2479
type = "gem";
2496
2480
};
2497
2497
-
version = "3.1.1";
2481
2481
+
version = "1.3.11";
2498
2482
};
2499
2483
stackprof = {
2500
2484
source = {
···
2551
2535
type = "gem";
2552
2536
};
2553
2537
version = "1.2.0";
2554
2554
-
};
2555
2555
-
teaspoon = {
2556
2556
-
source = {
2557
2557
-
remotes = ["https://rubygems.org"];
2558
2558
-
sha256 = "1xz5f1w8jm2fg1g194kf17gh36imd7sgs9cx0adqx1l22p7jrkvv";
2559
2559
-
type = "gem";
2560
2560
-
};
2561
2561
-
version = "1.1.5";
2562
2562
-
};
2563
2563
-
teaspoon-jasmine = {
2564
2564
-
source = {
2565
2565
-
remotes = ["https://rubygems.org"];
2566
2566
-
sha256 = "00wygrv1jm4aj15p1ab9d5fdrj6y83kv26xgp52mx4lp78h2ms9q";
2567
2567
-
type = "gem";
2568
2568
-
};
2569
2569
-
version = "2.2.0";
2570
2538
};
2571
2539
temple = {
2572
2540
source = {
···
2728
2696
};
2729
2697
version = "1.10.0";
2730
2698
};
2699
2699
+
validates_hostname = {
2700
2700
+
source = {
2701
2701
+
remotes = ["https://rubygems.org"];
2702
2702
+
sha256 = "04p1l0v98j4ffvaks1ig9mygx5grpbpdgz7haq3mygva9iy8ykja";
2703
2703
+
type = "gem";
2704
2704
+
};
2705
2705
+
version = "1.0.6";
2706
2706
+
};
2731
2707
version_sorter = {
2732
2708
source = {
2733
2709
remotes = ["https://rubygems.org"];
···
2775
2751
type = "gem";
2776
2752
};
2777
2753
version = "1.21.0";
2754
2754
+
};
2755
2755
+
webpack-rails = {
2756
2756
+
source = {
2757
2757
+
remotes = ["https://rubygems.org"];
2758
2758
+
sha256 = "02jxkpdbi48yhcgldgl5jxnhnad83rdgpkkcwh8w1h6iyg04d42j";
2759
2759
+
type = "gem";
2760
2760
+
};
2761
2761
+
version = "0.9.9";
2778
2762
};
2779
2763
websocket-driver = {
2780
2764
source = {