puppetserver-ca 2.3.6 → 2.4.0

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: 752967f94498efd749219a41bd66937700a3d9118847ab4bdccb3029abe993d9
4
- data.tar.gz: 3207d8be773911373ceec30ad9153416ff869060aec1dc9288340bd2bc2bb3d1
3
+ metadata.gz: 6df60141ee08a19cc170166263abff7028ee6085bf833981efad3458cef5ce26
4
+ data.tar.gz: 4da9da0d545605f13bd0dfa2a6272a301dfe46251d0277663e8d09e6d3f65a29
5
5
  SHA512:
6
- metadata.gz: a60ee59b29cee51967a5a2e56bfd953d04826e09366e83a4246e6ab1f4965e47c41216975cef7e57f37d0506a94a12bcf9d09b78ec9cf13ef94c0377e3ba2292
7
- data.tar.gz: 44a29a8098048df7a1d6db75400194c567371ae8bdda5f791872e2db23b58bb7c68d075fd3863f09abbddbc50501cbab4b31fe4910f32384506832a44697bceb
6
+ metadata.gz: 15891316786fa4fcd63c3f86ac2f66051841fb3e680fe63e5d0d6ceb025241cc5c122ae1f3b2819c9b1063f7c1a166efd1ebd010b35921fb2c6f3fef2917da88
7
+ data.tar.gz: fee93fa98f038ab7eb660fe55ca466874221cb980e5794c8d32c7561a2dfa069cdc003046799b89ef99b0f6b7bc97b58928e788b1e057f5ef68362bd864c16c7
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: Snyk Monitor
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ jobs:
8
+ snyk_monitor:
9
+ if: ${{ github.repository_owner == 'puppetlabs' }}
10
+ runs-on: ubuntu-latest
11
+ name: Snyk Monitor
12
+ steps:
13
+ - name: Checkout current PR
14
+ uses: actions/checkout@v2
15
+ - name: Setup Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: 2.7
19
+ - name: Install dependencies
20
+ run: bundle install --jobs 3 --retry 3
21
+ - name: Extract branch name
22
+ shell: bash
23
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
24
+ id: extract_branch
25
+ - name: Run Snyk to check for vulnerabilities
26
+ uses: snyk/actions/ruby@master
27
+ env:
28
+ SNYK_TOKEN: ${{ secrets.SNYK_FOSS_KEY }}
29
+ with:
30
+ command: monitor
31
+ args: --org=puppet-foss --project-name=${{ github.repository }}#${{ steps.extract_branch.outputs.branch }}
@@ -63,14 +63,14 @@ module Puppetserver
63
63
  # and if neither exist we generate a new key. This logic is necessary for
64
64
  # proper bootstrapping for certain server workflows.
65
65
  def create_private_key(keylength, private_path = '', public_path = '')
66
- if File.exists?(private_path) && File.exists?(public_path)
66
+ if File.exist?(private_path) && File.exist?(public_path)
67
67
  return OpenSSL::PKey.read(File.read(private_path))
68
- elsif !File.exists?(private_path) && !File.exists?(public_path)
68
+ elsif !File.exist?(private_path) && !File.exist?(public_path)
69
69
  return OpenSSL::PKey::RSA.new(keylength)
70
- elsif !File.exists?(private_path) && File.exists?(public_path)
70
+ elsif !File.exist?(private_path) && File.exist?(public_path)
71
71
  @errors << "Missing private key to match public key at #{public_path}"
72
72
  return nil
73
- elsif File.exists?(private_path) && !File.exists?(public_path)
73
+ elsif File.exist?(private_path) && !File.exist?(public_path)
74
74
  @errors << "Missing public key to match private key at #{private_path}"
75
75
  return nil
76
76
  end
@@ -1,5 +1,5 @@
1
1
  module Puppetserver
2
2
  module Ca
3
- VERSION = "2.3.6"
3
+ VERSION = "2.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetserver-ca
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-11 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter
@@ -80,6 +80,7 @@ executables:
80
80
  extensions: []
81
81
  extra_rdoc_files: []
82
82
  files:
83
+ - ".github/workflows/snyk.yaml"
83
84
  - ".gitignore"
84
85
  - ".rspec"
85
86
  - ".travis.yml"