Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Initial import of fetching a secret #2

Merged
merged 34 commits into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0f81669
Initial import
Dec 18, 2018
e3534ad
rolled key
Dec 18, 2018
c9d73fa
Working version of fetching secret
Dec 19, 2018
f4e0ddb
Removal of older project
Dec 19, 2018
14d9c09
Add jenkins pipeline
Dec 19, 2018
f8a178e
Variable updates / readme notes
Dec 19, 2018
8c50a50
I got issues
Dec 20, 2018
9cfab4c
Sigh, roll this.
Dec 20, 2018
5dd6a56
Working gcs-object test
Dec 21, 2018
4f0a322
Whole bunch of linting and make support
Dec 21, 2018
db59a93
Working makefile with integration tests that run all 3 sets
Dec 22, 2018
1da2603
Partial readme update
Dec 22, 2018
d1be798
Documentation update
Dec 26, 2018
43069e5
Doc update
Dec 26, 2018
46e1778
Remove URL
Dec 26, 2018
cb49156
Slightly better error handling in python docfiles
Dec 26, 2018
a0528cd
Add infra readme
Dec 26, 2018
99c82ee
Add env check
Dec 26, 2018
0435237
Makefile check
Dec 26, 2018
06fe55b
Readme cleanup
Dec 26, 2018
cb1aa6a
Remove notes that were left in, and commit lock file
Dec 27, 2018
01ea9bf
Force type to string for clarity
Dec 27, 2018
18b7e1b
README cleanup
Dec 27, 2018
93e0d4d
more readme cleanup
Dec 27, 2018
6ca27fa
Move infra to root, into helpers, and update docs
Dec 27, 2018
94465f7
Auto format
Dec 27, 2018
9897ccd
Move modules to subdir
Dec 28, 2018
37a407e
Updated makefile and docker build to use dockerfiles from GKE repo
Dec 28, 2018
1d28cf5
READme update
Dec 28, 2018
51a7d7a
Remove old dockerfile
Dec 28, 2018
77631e6
Remove pinned inspec version
Jan 4, 2019
6869951
Update README.md
morgante Jan 4, 2019
c880db6
Update README.md
morgante Jan 4, 2019
9cda67c
Merge upstream and small changes
Jan 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**/.terraform/**
**tfstate*
**/*.pem
**/account.json
**/credentials
.DS_Store
.kitchen
.terraform
.terraform.tfstate.d
*.zip
# JetBrains - PyCharm, IntelliJ, etc.
.idea/
__pycache__/
*.iml
*.json
# Python
*.pyc
19 changes: 19 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
driver:
name: terraform

provisioner:
name: terraform

platforms:
- name: gcp

verifier:
name: terraform
systems:
- name: fetch-secret
backend: local

suites:
- name: "fetch-secret"
driver:
root_module_directory: test/fixtures/fetch-secret
21 changes: 21 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

ruby "~> 2.5"

source 'https://rubygems.org/' do
gem "kitchen-terraform", "~> 4.0"
gem "kubeclient", "~> 4.0"
gem "rest-client", "~> 2.0"
end
311 changes: 311 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
aws-sdk (2.11.197)
aws-sdk-resources (= 2.11.197)
aws-sdk-core (2.11.197)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-resources (2.11.197)
aws-sdk-core (= 2.11.197)
aws-sigv4 (1.0.3)
azure_graph_rbac (0.17.0)
ms_rest_azure (~> 0.11.0)
azure_mgmt_key_vault (0.17.2)
ms_rest_azure (~> 0.11.0)
azure_mgmt_resources (0.17.2)
ms_rest_azure (~> 0.11.0)
builder (3.2.3)
coderay (1.1.2)
concurrent-ruby (1.1.4)
declarative (0.0.10)
declarative-option (0.1.0)
diff-lcs (1.3)
docker-api (1.34.2)
excon (>= 0.47.0)
multi_json
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
dry-configurable (0.7.0)
concurrent-ruby (~> 1.0)
dry-container (0.6.0)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1, >= 0.1.3)
dry-core (0.4.7)
concurrent-ruby (~> 1.0)
dry-equalizer (0.2.1)
dry-inflector (0.1.2)
dry-logic (0.4.2)
dry-container (~> 0.2, >= 0.2.6)
dry-core (~> 0.2)
dry-equalizer (~> 0.2)
dry-types (0.13.4)
concurrent-ruby (~> 1.0)
dry-container (~> 0.3)
dry-core (~> 0.4, >= 0.4.4)
dry-equalizer (~> 0.2)
dry-inflector (~> 0.1, >= 0.1.2)
dry-logic (~> 0.4, >= 0.4.2)
dry-validation (0.12.2)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1, >= 0.1.3)
dry-core (~> 0.2, >= 0.2.1)
dry-equalizer (~> 0.2)
dry-logic (~> 0.4, >= 0.4.0)
dry-types (~> 0.13.1)
equatable (0.5.0)
erubis (2.7.0)
excon (0.62.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
faraday-cookie_jar (0.0.6)
faraday (>= 0.7.4)
http-cookie (~> 1.0.0)
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
ffi (1.9.25)
google-api-client (0.23.9)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
httpclient (>= 2.8.1, < 3.0)
mime-types (~> 3.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.9)
googleauth (0.6.7)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.7)
gssapi (1.2.0)
ffi (>= 1.0.1)
gyoku (1.3.1)
builder (>= 2.1.2)
hashie (3.6.0)
htmlentities (4.3.4)
http (3.3.0)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
http-form_data (2.1.1)
http_parser.rb (0.6.0)
httpclient (2.8.3)
inifile (3.0.0)
inspec (3.1.3)
addressable (~> 2.4)
faraday (>= 0.9.0)
faraday_middleware (~> 0.12.2)
hashie (~> 3.4)
htmlentities
json (>= 1.8, < 3.0)
method_source (~> 0.8)
mixlib-log
multipart-post
parallel (~> 1.9)
parslet (~> 1.5)
pry (~> 0)
rspec (~> 3)
rspec-its (~> 1.2)
rubyzip (~> 1.2, >= 1.2.2)
semverse
sslshake (~> 1.2)
term-ansicolor
thor (~> 0.20)
tomlrb (~> 1.2)
train (~> 1.5, >= 1.5.11)
tty-prompt (~> 0.17)
tty-table (~> 0.10)
jmespath (1.4.0)
json (2.1.0)
jwt (2.1.0)
kitchen-terraform (4.1.1)
dry-types (~> 0.9)
dry-validation (~> 0.10)
inspec (~> 3.0)
mixlib-shellout (~> 2.2)
test-kitchen (~> 1.23)
kubeclient (4.2.1)
http (~> 3.0)
recursive-open-struct (~> 1.0, >= 1.0.4)
rest-client (~> 2.0)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
memoist (0.16.0)
method_source (0.9.2)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
mixlib-install (3.11.5)
mixlib-shellout
mixlib-versioning
thor
mixlib-log (2.0.9)
mixlib-shellout (2.4.4)
mixlib-versioning (1.2.7)
ms_rest (0.7.3)
concurrent-ruby (~> 1.0)
faraday (~> 0.9)
timeliness (~> 0.3)
ms_rest_azure (0.11.0)
concurrent-ruby (~> 1.0)
faraday (~> 0.9)
faraday-cookie_jar (~> 0.0.6)
ms_rest (~> 0.7.2)
multi_json (1.13.1)
multipart-post (2.0.0)
necromancer (0.4.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.2.0)
net-ssh-gateway (1.3.0)
net-ssh (>= 2.6.5)
netrc (0.11.0)
nori (2.6.0)
os (1.0.0)
parallel (1.12.1)
parslet (1.8.2)
pastel (0.7.2)
equatable (~> 0.5.0)
tty-color (~> 0.4.0)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.0.3)
recursive-open-struct (1.1.0)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
retriable (3.1.2)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-its (1.2.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.8.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubyntlm (0.6.2)
rubyzip (1.2.2)
semverse (3.0.0)
signet (0.11.0)
addressable (~> 2.3)
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sslshake (1.2.0)
strings (0.1.4)
strings-ansi (~> 0.1.0)
unicode-display_width (~> 1.4.0)
unicode_utils (~> 1.4.0)
strings-ansi (0.1.0)
term-ansicolor (1.7.0)
tins (~> 1.0)
test-kitchen (1.23.5)
mixlib-install (~> 3.6)
mixlib-shellout (>= 1.2, < 3.0)
net-scp (~> 1.1)
net-ssh (>= 2.9, < 5.0)
net-ssh-gateway (~> 1.2)
thor (~> 0.19)
winrm (~> 2.0)
winrm-elevated (~> 1.0)
winrm-fs (~> 1.1)
thor (0.20.3)
timeliness (0.3.8)
timers (4.2.0)
tins (1.20.2)
tomlrb (1.2.8)
train (1.6.3)
aws-sdk (~> 2)
azure_graph_rbac (~> 0.16)
azure_mgmt_key_vault (~> 0.17)
azure_mgmt_resources (~> 0.15)
docker-api (~> 1.26)
google-api-client (~> 0.23.9)
googleauth (~> 0.6.6)
inifile
json (>= 1.8, < 3.0)
mixlib-shellout (~> 2.0)
net-scp (~> 1.2)
net-ssh (>= 2.9, < 6.0)
winrm (~> 2.0)
winrm-fs (~> 1.0)
tty-color (0.4.3)
tty-cursor (0.6.0)
tty-prompt (0.18.0)
necromancer (~> 0.4.0)
pastel (~> 0.7.0)
timers (~> 4.0)
tty-cursor (~> 0.6.0)
tty-reader (~> 0.5.0)
tty-reader (0.5.0)
tty-cursor (~> 0.6.0)
tty-screen (~> 0.6.4)
wisper (~> 2.0.0)
tty-screen (0.6.5)
tty-table (0.10.0)
equatable (~> 0.5.0)
necromancer (~> 0.4.0)
pastel (~> 0.7.2)
strings (~> 0.1.0)
tty-screen (~> 0.6.4)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)
unicode-display_width (1.4.1)
unicode_utils (1.4.0)
winrm (2.3.1)
builder (>= 2.1.2)
erubis (~> 2.7)
gssapi (~> 1.2)
gyoku (~> 1.0)
httpclient (~> 2.2, >= 2.2.0.2)
logging (>= 1.6.1, < 3.0)
nori (~> 2.0)
rubyntlm (~> 0.6.0, >= 0.6.1)
winrm-elevated (1.1.1)
winrm (~> 2.0)
winrm-fs (~> 1.0)
winrm-fs (1.3.2)
erubis (~> 2.7)
logging (>= 1.6.1, < 3.0)
rubyzip (~> 1.1)
winrm (~> 2.0)
wisper (2.0.0)

PLATFORMS
ruby

DEPENDENCIES
kitchen-terraform (~> 4.0)!
kubeclient (~> 4.0)!
rest-client (~> 2.0)!

RUBY VERSION
ruby 2.5.1p57

BUNDLED WITH
1.17.3
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -198,4 +199,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
Loading