Skip to content

Commit

Permalink
Merge pull request #14 from mitre/refactor
Browse files Browse the repository at this point in the history
Refactor serverless inspec to be more accessible to users
  • Loading branch information
jkufro authored Aug 26, 2021
2 parents ba6981a + c5d67cf commit f81948e
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 568 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.tar
.DS_Store
.DS_Store
.byebug_history
473 changes: 224 additions & 249 deletions README.md

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 2 additions & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ RUN yum install -y gcc make gcc-c++ git unzip &&\
git init &&\
# Install gem dependencies with bundler
bundle install --path vendor/bundle/ &&\
# Install k8s train plugin
inspec plugin install train-kubernetes &&\
# Install the AWS CLI
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" &&\
unzip awscliv2.zip &&\
Expand Down
2 changes: 2 additions & 0 deletions src/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source 'https://rubygems.org'

gem 'aws-sdk-lambda', '~> 1'
gem 'aws-sdk-s3', '~> 1'
gem 'aws-sdk-secretsmanager', '~> 1'
gem 'aws-sdk-ssm', '~> 1'

# net-ssh requires the following gems for ed25519 support:
Expand All @@ -13,3 +14,4 @@ gem 'ed25519', '>= 1.2', '< 2.0'
gem 'inspec'
gem 'inspec-bin'
gem 'train-awsssm'
gem 'train-kubernetes', '>=0.1.6'
49 changes: 49 additions & 0 deletions src/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,32 @@ GEM
multi_json
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dry-configurable (0.12.1)
concurrent-ruby (~> 1.0)
dry-core (~> 0.5, >= 0.5.0)
dry-container (0.8.0)
concurrent-ruby (~> 1.0)
dry-configurable (~> 0.1, >= 0.1.3)
dry-core (0.7.1)
concurrent-ruby (~> 1.0)
dry-equalizer (0.3.0)
dry-inflector (0.2.1)
dry-logic (0.6.1)
concurrent-ruby (~> 1.0)
dry-core (~> 0.2)
dry-equalizer (~> 0.2)
dry-struct (0.5.1)
dry-core (~> 0.4, >= 0.4.3)
dry-equalizer (~> 0.2)
dry-types (~> 0.13)
ice_nine (~> 0.11)
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)
ed25519 (1.2.4)
erubi (1.10.0)
excon (0.85.0)
Expand Down Expand Up @@ -285,12 +311,14 @@ GEM
ffi (>= 1.0.1)
gyoku (1.3.1)
builder (>= 2.1.2)
hashdiff (1.0.1)
hashie (4.1.0)
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
inifile (3.0.0)
inspec (4.41.2)
faraday_middleware (>= 0.12.2, < 1.1)
Expand Down Expand Up @@ -327,7 +355,19 @@ GEM
tty-table (~> 0.10)
jmespath (1.4.0)
json (2.5.1)
jsonpath (0.9.9)
multi_json
to_regexp (~> 0.2.1)
jwt (2.2.3)
k8s-ruby (0.10.5)
dry-struct (~> 0.5.0)
dry-types (~> 0.13.0)
excon (~> 0.71)
hashdiff (~> 1.0.0)
jsonpath (~> 0.9.5)
recursive-open-struct (~> 1.1.0)
yajl-ruby (~> 1.4.0)
yaml-safe_load_stream (~> 0.1)
license-acceptance (2.1.13)
pastel (~> 0.7)
tomlrb (>= 1.2, < 3.0)
Expand Down Expand Up @@ -372,6 +412,7 @@ GEM
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
recursive-open-struct (1.1.3)
representable (3.1.1)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
Expand Down Expand Up @@ -411,6 +452,7 @@ GEM
strings-ansi (0.2.0)
thor (1.1.0)
timeliness (0.3.10)
to_regexp (0.2.1)
tomlrb (1.3.0)
trailblazer-option (0.1.1)
train (3.8.1)
Expand Down Expand Up @@ -500,6 +542,9 @@ GEM
net-scp (>= 1.2, < 4.0)
net-ssh (>= 2.9, < 7.0)
train-habitat (0.2.22)
train-kubernetes (0.1.6)
k8s-ruby (~> 0.10)
train (~> 3.0)
train-winrm (0.2.12)
winrm (>= 2.3.6, < 3.0)
winrm-elevated (~> 1.2.2)
Expand Down Expand Up @@ -549,6 +594,8 @@ GEM
rubyzip (~> 2.0)
winrm (~> 2.0)
wisper (2.0.1)
yajl-ruby (1.4.1)
yaml-safe_load_stream (0.1.1)
zeitwerk (2.4.2)

PLATFORMS
Expand All @@ -557,12 +604,14 @@ PLATFORMS
DEPENDENCIES
aws-sdk-lambda (~> 1)
aws-sdk-s3 (~> 1)
aws-sdk-secretsmanager (~> 1)
aws-sdk-ssm (~> 1)
bcrypt_pbkdf (>= 1.0, < 2.0)
ed25519 (>= 1.2, < 2.0)
inspec
inspec-bin
train-awsssm
train-kubernetes (>= 0.1.6)

BUNDLED WITH
2.2.11
Loading

0 comments on commit f81948e

Please sign in to comment.