entitlements-app 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0b8393072130c2348f10560cc2ed829d9045936f8b238e4a9c230e8396a7aeb
4
- data.tar.gz: 36ccfa87f131a77dccb415e70d3b352e46d5948166a94b01c1707823ba8c5002
3
+ metadata.gz: b7cea3aa0ef3960d6f87d69f2787fe66006f924dc4fbc8189f97fed39b747dea
4
+ data.tar.gz: a2596bb68a63682d3b638f130fa6821165abf4fda761824e3f9eee46df44d8bf
5
5
  SHA512:
6
- metadata.gz: f19f0f0e6cb381725a2f2594751c4971dd18207c9b22965fe8bdc83170b99d199d101a85a6bdb051f0a8e47fc4560bf52a081ea19f52669e5eb1d72c358c1a47
7
- data.tar.gz: 514f5adbd9e7bebbaeb7a8901e2a764736ae2b64905bc0b8aabe32843913f23e38ae898a66490ea60adee0aece5699087f49492293371309745746dbb08420c0
6
+ metadata.gz: 2de7a3eb73698992dd55594eb268dac79025343c1379669ba99cecfa656473e53717247e2491191dfec680c4d77192c5dd38bf5ad844ed2e35a0b66fe4e8401b
7
+ data.tar.gz: 8b3ff285532ad51b6b159fac48ce272d57159ef27c1d66ac1a447f3b3275d59e517fcece9907bfabddaeafc5a529ad6119aec86d83c54ba3cf507a3f7244b6d2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -213,6 +213,7 @@ module Entitlements
213
213
  # Returns true if expired, false if not expired.
214
214
  Contract C::Or[nil, String], String => C::Or[nil, C::Bool]
215
215
  def expired?(expiration, context)
216
+ return false if Entitlements.config.fetch("ignore_expirations", false)
216
217
  return false if expiration.nil? || expiration.strip.empty?
217
218
  if expiration =~ /\A(\d{4})-(\d{2})-(\d{2})\z/
218
219
  year, month, day = Regexp.last_match(1).to_i, Regexp.last_match(2).to_i, Regexp.last_match(3).to_i
@@ -22,6 +22,7 @@ module Entitlements
22
22
  # Return true if we made any changes, false otherwise.
23
23
  Contract C::SetOf[Entitlements::Models::Person] => C::Bool
24
24
  def modify(result)
25
+ return false if Entitlements.config.fetch("ignore_expirations", false)
25
26
  # If group is already empty, we have nothing to consider modifying, regardless
26
27
  # of expiration date. Just return false right away.
27
28
  if result.empty?
@@ -239,8 +239,6 @@ module Entitlements
239
239
  verify_mode: @disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
240
240
  }
241
241
  }
242
- else
243
- ldap_options[:encryption] = { method: nil }
244
242
  end
245
243
 
246
244
  if @ca_file && ldap_options[:encryption].key?(:tls_options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entitlements-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc. Security Ops
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2023-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -482,7 +482,7 @@ homepage: https://github.com/github/entitlements-app
482
482
  licenses:
483
483
  - MIT
484
484
  metadata: {}
485
- post_install_message:
485
+ post_install_message:
486
486
  rdoc_options: []
487
487
  require_paths:
488
488
  - lib
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
498
  version: '0'
499
499
  requirements: []
500
500
  rubygems_version: 3.3.7
501
- signing_key:
501
+ signing_key:
502
502
  specification_version: 4
503
503
  summary: git-managed LDAP group configurations
504
504
  test_files: []