entitlements-app 0.3.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/deploy-entitlements +1 -0
- data/lib/entitlements/data/groups/calculated/text.rb +1 -1
- data/lib/entitlements/data/groups/calculated/yaml.rb +2 -2
- data/lib/entitlements/data/people/yaml.rb +1 -1
- data/lib/entitlements/extras/ldap_group/rules/ldap_group.rb +1 -1
- data/lib/entitlements/service/ldap.rb +1 -1
- data/lib/entitlements/util/override.rb +1 -1
- data/lib/entitlements/util/util.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +67 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edd2af5e265395fe5de06640cfc7c3579b53d433d2f0744905f4c3f73546438c
|
4
|
+
data.tar.gz: afdb53966f6b2187abb7c306972cc6d25128e263004bd5c280bc5574cccb0cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae84ff7606cac9ede726dabd0a61c1bd7c9124a4f2133c6c3bd0ec353056df88d1ef7d11eda2e4a0dc3ef51c15624cce74b6dc72cacc9ee9958c9be42b1fe5a
|
7
|
+
data.tar.gz: f034f7180ecd035136ee136181c0ca9f060884fa6f5d9fd2f1b834a4d415e0e944144fc7a4ac3b67a80fd919dc2cf7ac171dc20fa7cea03d5d09cc15f7974dcf
|
data/bin/deploy-entitlements
CHANGED
@@ -6,6 +6,7 @@ require "ruby_version_check"
|
|
6
6
|
|
7
7
|
# Note that contracts.ruby has two specific ruby-version specific libraries, which we have vendored into lib/
|
8
8
|
if RubyVersionCheck.ruby_version2?
|
9
|
+
puts "WARNING: Ruby 2.x is deprecated and will be removed in a future release. Please upgrade to Ruby 3.x."
|
9
10
|
$LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby2/lib")))
|
10
11
|
else
|
11
12
|
$LOAD_PATH.unshift(File.expand_path(File.join(__dir__, "../lib/contracts-ruby3/lib")))
|
@@ -275,7 +275,7 @@ module Entitlements
|
|
275
275
|
raw_key, operator, val = Regexp.last_match(1), Regexp.last_match(2), Regexp.last_match(3)
|
276
276
|
|
277
277
|
key = if filter_keywords.include?(raw_key)
|
278
|
-
|
278
|
+
"filter_#{raw_key}"
|
279
279
|
elsif MODIFIERS.include?(raw_key)
|
280
280
|
"modifier_#{raw_key}"
|
281
281
|
else
|
@@ -68,7 +68,7 @@ module Entitlements
|
|
68
68
|
end
|
69
69
|
|
70
70
|
values = if val.is_a?(String)
|
71
|
-
|
71
|
+
[val]
|
72
72
|
elsif val.is_a?(Array)
|
73
73
|
val
|
74
74
|
else
|
@@ -164,7 +164,7 @@ module Entitlements
|
|
164
164
|
Contract C::None => C::HashOf[String => C::Any]
|
165
165
|
def parsed_data
|
166
166
|
@parsed_data ||= if RubyVersionCheck.ruby_version2?
|
167
|
-
|
167
|
+
::YAML.load(File.read(filename)).to_h
|
168
168
|
else
|
169
169
|
::YAML.load(File.read(filename), permitted_classes: [Date]).to_h
|
170
170
|
end
|
@@ -27,7 +27,7 @@ module Entitlements
|
|
27
27
|
entry = ldap.read(value)
|
28
28
|
unless entry
|
29
29
|
message = if filename
|
30
|
-
|
30
|
+
"Failed to read ldap_group = #{value} (referenced in #{filename})"
|
31
31
|
else
|
32
32
|
# :nocov:
|
33
33
|
"Failed to read ldap_group = #{value}"
|
@@ -383,7 +383,7 @@ module Entitlements
|
|
383
383
|
Contract Net::LDAP::Entry => C::ArrayOf[String]
|
384
384
|
def self.member_array(entry)
|
385
385
|
members = if entry[:objectclass].include?("groupOfUniqueNames")
|
386
|
-
|
386
|
+
entry[:uniquemember]
|
387
387
|
elsif entry[:objectclass].include?("groupOfNames")
|
388
388
|
entry[:member]
|
389
389
|
elsif entry[:objectclass].include?("posixGroup")
|
@@ -26,7 +26,7 @@ module Entitlements
|
|
26
26
|
end
|
27
27
|
|
28
28
|
file = if plugin["file"] !~ %r{/}
|
29
|
-
|
29
|
+
File.expand_path(File.join("../plugins", plugin["file"]), File.dirname(__FILE__))
|
30
30
|
elsif plugin["file"].start_with?("/")
|
31
31
|
plugin["file"]
|
32
32
|
else
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,49 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: entitlements-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc. Security Ops
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: '1.3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.3.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1
|
32
|
+
version: 1.3.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: faraday
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '2.0'
|
34
|
-
- - "<="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 2.7.10
|
37
40
|
type: :runtime
|
38
41
|
prerelease: false
|
39
42
|
version_requirements: !ruby/object:Gem::Requirement
|
40
43
|
requirements:
|
41
|
-
- - "
|
44
|
+
- - "~>"
|
42
45
|
- !ruby/object:Gem::Version
|
43
46
|
version: '2.0'
|
44
|
-
- - "<="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 2.7.10
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: net-ldap
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,16 +76,16 @@ dependencies:
|
|
76
76
|
name: optimist
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 3.
|
81
|
+
version: '3.1'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 3.
|
88
|
+
version: '3.1'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: debug
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,32 +104,24 @@ dependencies:
|
|
104
104
|
name: rake
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 13.0.6
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - '='
|
107
|
+
- - "~>"
|
115
108
|
- !ruby/object:Gem::Version
|
116
|
-
version: 13.
|
117
|
-
-
|
118
|
-
name: rspec
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - '='
|
109
|
+
version: '13.2'
|
110
|
+
- - ">="
|
122
111
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
112
|
+
version: 13.2.1
|
124
113
|
type: :development
|
125
114
|
prerelease: false
|
126
115
|
version_requirements: !ruby/object:Gem::Requirement
|
127
116
|
requirements:
|
128
|
-
- -
|
117
|
+
- - "~>"
|
129
118
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
119
|
+
version: '13.2'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 13.2.1
|
131
123
|
- !ruby/object:Gem::Dependency
|
132
|
-
name: rspec
|
124
|
+
name: rspec
|
133
125
|
requirement: !ruby/object:Gem::Requirement
|
134
126
|
requirements:
|
135
127
|
- - '='
|
@@ -146,44 +138,44 @@ dependencies:
|
|
146
138
|
name: rubocop
|
147
139
|
requirement: !ruby/object:Gem::Requirement
|
148
140
|
requirements:
|
149
|
-
- -
|
141
|
+
- - "~>"
|
150
142
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.
|
143
|
+
version: '1.64'
|
152
144
|
type: :development
|
153
145
|
prerelease: false
|
154
146
|
version_requirements: !ruby/object:Gem::Requirement
|
155
147
|
requirements:
|
156
|
-
- -
|
148
|
+
- - "~>"
|
157
149
|
- !ruby/object:Gem::Version
|
158
|
-
version: 1.
|
150
|
+
version: '1.64'
|
159
151
|
- !ruby/object:Gem::Dependency
|
160
152
|
name: rubocop-github
|
161
153
|
requirement: !ruby/object:Gem::Requirement
|
162
154
|
requirements:
|
163
|
-
- -
|
155
|
+
- - "~>"
|
164
156
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
157
|
+
version: '0.20'
|
166
158
|
type: :development
|
167
159
|
prerelease: false
|
168
160
|
version_requirements: !ruby/object:Gem::Requirement
|
169
161
|
requirements:
|
170
|
-
- -
|
162
|
+
- - "~>"
|
171
163
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
164
|
+
version: '0.20'
|
173
165
|
- !ruby/object:Gem::Dependency
|
174
166
|
name: rubocop-performance
|
175
167
|
requirement: !ruby/object:Gem::Requirement
|
176
168
|
requirements:
|
177
|
-
- -
|
169
|
+
- - "~>"
|
178
170
|
- !ruby/object:Gem::Version
|
179
|
-
version: 1.
|
171
|
+
version: '1.21'
|
180
172
|
type: :development
|
181
173
|
prerelease: false
|
182
174
|
version_requirements: !ruby/object:Gem::Requirement
|
183
175
|
requirements:
|
184
|
-
- -
|
176
|
+
- - "~>"
|
185
177
|
- !ruby/object:Gem::Version
|
186
|
-
version: 1.
|
178
|
+
version: '1.21'
|
187
179
|
- !ruby/object:Gem::Dependency
|
188
180
|
name: rugged
|
189
181
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,58 +200,70 @@ dependencies:
|
|
208
200
|
name: simplecov
|
209
201
|
requirement: !ruby/object:Gem::Requirement
|
210
202
|
requirements:
|
211
|
-
- -
|
203
|
+
- - "~>"
|
212
204
|
- !ruby/object:Gem::Version
|
213
|
-
version: 0.
|
205
|
+
version: 0.22.0
|
214
206
|
type: :development
|
215
207
|
prerelease: false
|
216
208
|
version_requirements: !ruby/object:Gem::Requirement
|
217
209
|
requirements:
|
218
|
-
- -
|
210
|
+
- - "~>"
|
219
211
|
- !ruby/object:Gem::Version
|
220
|
-
version: 0.
|
212
|
+
version: 0.22.0
|
221
213
|
- !ruby/object:Gem::Dependency
|
222
214
|
name: simplecov-erb
|
223
215
|
requirement: !ruby/object:Gem::Requirement
|
224
216
|
requirements:
|
225
|
-
- -
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '1.0'
|
220
|
+
- - ">="
|
226
221
|
- !ruby/object:Gem::Version
|
227
222
|
version: 1.0.1
|
228
223
|
type: :development
|
229
224
|
prerelease: false
|
230
225
|
version_requirements: !ruby/object:Gem::Requirement
|
231
226
|
requirements:
|
232
|
-
- -
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '1.0'
|
230
|
+
- - ">="
|
233
231
|
- !ruby/object:Gem::Version
|
234
232
|
version: 1.0.1
|
235
233
|
- !ruby/object:Gem::Dependency
|
236
234
|
name: vcr
|
237
235
|
requirement: !ruby/object:Gem::Requirement
|
238
236
|
requirements:
|
239
|
-
- -
|
237
|
+
- - "~>"
|
240
238
|
- !ruby/object:Gem::Version
|
241
|
-
version:
|
239
|
+
version: '6.2'
|
242
240
|
type: :development
|
243
241
|
prerelease: false
|
244
242
|
version_requirements: !ruby/object:Gem::Requirement
|
245
243
|
requirements:
|
246
|
-
- -
|
244
|
+
- - "~>"
|
247
245
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
246
|
+
version: '6.2'
|
249
247
|
- !ruby/object:Gem::Dependency
|
250
248
|
name: webmock
|
251
249
|
requirement: !ruby/object:Gem::Requirement
|
252
250
|
requirements:
|
253
|
-
- -
|
251
|
+
- - "~>"
|
254
252
|
- !ruby/object:Gem::Version
|
255
|
-
version: 3.
|
253
|
+
version: '3.23'
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: 3.23.1
|
256
257
|
type: :development
|
257
258
|
prerelease: false
|
258
259
|
version_requirements: !ruby/object:Gem::Requirement
|
259
260
|
requirements:
|
260
|
-
- -
|
261
|
+
- - "~>"
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '3.23'
|
264
|
+
- - ">="
|
261
265
|
- !ruby/object:Gem::Version
|
262
|
-
version: 3.
|
266
|
+
version: 3.23.1
|
263
267
|
description: The Ruby Gem that Powers Entitlements - GitHub's Identity and Access
|
264
268
|
Management System
|
265
269
|
email: opensource+entitlements-app@github.com
|
@@ -502,7 +506,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
502
506
|
requirements:
|
503
507
|
- - ">="
|
504
508
|
- !ruby/object:Gem::Version
|
505
|
-
version:
|
509
|
+
version: 3.0.0
|
506
510
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
507
511
|
requirements:
|
508
512
|
- - ">="
|