hybrid_platforms_conductor 33.8.0 → 33.8.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: 6cd97aeaa58547169eee76dd4605b3ee08b9188c718bbef6d3757186d7a6dfdc
4
- data.tar.gz: e054326d38480c3480578b44e78c10f481e82b750486f5c1c8007ee2491731da
3
+ metadata.gz: 825b299003fe2fa6b3ec566bab9e42dcc45a7e320756977398a40ed571affd4a
4
+ data.tar.gz: c7fd81b8e969e7f422ef471c1463f92d5a3ffd4f1203f6d9bcbf06dfe7d8b115
5
5
  SHA512:
6
- metadata.gz: d63c0cf64b6c5163ed7c1f6cb0c927c325d18c21dbf286b5dce91578f4fa5b4a1e6119b41ac877be20812b475306b3f7ab444474e482ebe36c0735b90c7ae9b7
7
- data.tar.gz: 23cdf3242c78e993c3df565f1123eea67c5aca527218122e22a0ed1fcacfbf33adf3396aaebbdeb82666cbdf3e7ace44ecfd4a1c453e0fe8d38fc7d4064c7b89
6
+ metadata.gz: f1fd8c7beb855136184ae08b06e1cef38a155cec4c4d006a96c593ac05d21064eaa2277089f1cf4cf37aec015d93d7726cb8fcc1d6f549f1f36fdd2814096f95
7
+ data.tar.gz: f877c9d45503be56bb36ee8cac5745722a9badf69aa614d1e7650cc41a40e943c12b228603c720831ef20cb4df5d56082e068566b5f2bd210ce0d226589722e2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v33.8.1](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.8.0...v33.8.1) (2021-08-05 17:11:39)
2
+
3
+ ### Patches
4
+
5
+ * [[Hotfix] Added test checking that test keys are not deployed in production for security](https://github.com/sweet-delights/hybrid-platforms-conductor/commit/f2e5bcc59b595592bf0a2b4f63c92966f10902ef)
6
+
1
7
  # [v33.8.0](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.7.4...v33.8.0) (2021-08-04 15:55:54)
2
8
 
3
9
  ## Global changes
@@ -1,5 +1,5 @@
1
1
  module HybridPlatformsConductor
2
2
 
3
- VERSION = '33.8.0'
3
+ VERSION = '33.8.1'
4
4
 
5
5
  end
@@ -330,7 +330,7 @@ describe HybridPlatformsConductor::HpcPlugins::PlatformHandler::ServerlessChef d
330
330
  end
331
331
  end
332
332
 
333
- it 'packages the repository with a testadmin public key' do
333
+ it 'packages the repository with a testadmin public key in local mode' do
334
334
  with_serverless_chef_platforms('hpc_test') do |platform, repository|
335
335
  File.write("#{ENV['hpc_platforms']}/testadmin.key.pub", 'ssh-rsa 12345 testadmin@test.com')
336
336
  with_packaging_mocked(
@@ -349,6 +349,21 @@ describe HybridPlatformsConductor::HpcPlugins::PlatformHandler::ServerlessChef d
349
349
  end
350
350
  end
351
351
 
352
+ it 'does not package the repository with a testadmin public key in prod mode' do
353
+ with_serverless_chef_platforms('hpc_test') do |platform, repository|
354
+ File.write("#{ENV['hpc_platforms']}/testadmin.key.pub", 'ssh-rsa 12345 testadmin@test.com')
355
+ with_packaging_mocked(
356
+ repository,
357
+ cookbook_metadata: {
358
+ 'hpc_test-1234' => {}
359
+ }
360
+ ) do
361
+ platform.package(services: { 'node' => %w[test_policy] }, secrets: {}, local_environment: false)
362
+ expect(Dir.glob("#{repository}/dist/prod/test_policy/cookbook_artifacts/hpc_test-*/files/default/testadmin.key.pub")).to eq []
363
+ end
364
+ end
365
+ end
366
+
352
367
  end
353
368
 
354
369
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybrid_platforms_conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 33.8.0
4
+ version: 33.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-04 00:00:00.000000000 Z
11
+ date: 2021-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: range_operators