rake_secrets 0.1.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: af937c9a5fbea99d7a4aaca80b06798d815c10756179009fcc11ac30b7806958
4
+ data.tar.gz: b76e39b7f89e8c6ca0a8144ddb7cdcd415809edd7c1f53d0b8d6110cc3260ccd
5
+ SHA512:
6
+ metadata.gz: 316029e4aee29d648f671009258c0de6e922c1f12288b848a974552e4ca46aabe7c5e62956c76d257d86352181af376eb49771d1855908fa2aa3d9618479fa7d
7
+ data.tar.gz: 6e380a6ee636e0d4ae291feed8df07236e6da769eff0effe7dcf3bf86714084c6794d6e9e44bd541af92fc23838f907951c8eee767f8cd2d2a875fbfe2bbcfe5
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at maintainers@infrablocks.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in rake_git.gemspec
6
+ gemspec
7
+
8
+ gem 'activesupport'
9
+ gem 'bundler'
10
+ gem 'gem-release'
11
+ gem 'memfs'
12
+ gem 'rake'
13
+ gem 'rake_circle_ci'
14
+ gem 'rake_git'
15
+ gem 'rake_git_crypt'
16
+ gem 'rake_github'
17
+ gem 'rake_gpg'
18
+ gem 'rake_ssh'
19
+ gem 'rspec'
20
+ gem 'rubocop'
21
+ gem 'rubocop-rake'
22
+ gem 'rubocop-rspec'
23
+ gem 'simplecov'
data/Gemfile.lock ADDED
@@ -0,0 +1,164 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rake_secrets (0.1.0.pre.1)
5
+ colored2 (~> 3.1)
6
+ rake_factory (= 0.32.0.pre.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.4.2)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ addressable (2.8.1)
17
+ public_suffix (>= 2.0.2, < 6.0)
18
+ ast (2.4.2)
19
+ colored2 (3.1.2)
20
+ concurrent-ruby (1.2.0)
21
+ diff-lcs (1.5.0)
22
+ docile (1.4.0)
23
+ excon (0.99.0)
24
+ faraday (2.7.4)
25
+ faraday-net_http (>= 2.0, < 3.1)
26
+ ruby2_keywords (>= 0.0.4)
27
+ faraday-net_http (3.0.2)
28
+ gem-release (2.2.2)
29
+ git (1.13.2)
30
+ addressable (~> 2.8)
31
+ rchardet (~> 1.8)
32
+ hamster (3.0.0)
33
+ concurrent-ruby (~> 1.0)
34
+ i18n (1.12.0)
35
+ concurrent-ruby (~> 1.0)
36
+ immutable-struct (2.4.1)
37
+ json (2.6.3)
38
+ lino (3.1.0)
39
+ hamster (~> 3.0)
40
+ open4 (~> 1.3)
41
+ memfs (1.0.0)
42
+ minitest (5.17.0)
43
+ octokit (6.0.1)
44
+ faraday (>= 1, < 3)
45
+ sawyer (~> 0.9)
46
+ open4 (1.3.4)
47
+ parallel (1.22.1)
48
+ parser (3.2.0.0)
49
+ ast (~> 2.4.1)
50
+ public_suffix (5.0.1)
51
+ rainbow (3.1.1)
52
+ rake (13.0.6)
53
+ rake_circle_ci (0.11.0)
54
+ colored2 (~> 3.1)
55
+ excon (~> 0.72)
56
+ rake_factory (~> 0.23)
57
+ sshkey (~> 2.0)
58
+ rake_factory (0.32.0.pre.2)
59
+ activesupport (>= 4)
60
+ rake (~> 13.0)
61
+ rake_git (0.1.0.pre.4)
62
+ colored2 (~> 3.1)
63
+ git (~> 1.13, >= 1.13.2)
64
+ rake_factory (= 0.32.0.pre.2)
65
+ rake_git_crypt (0.1.0.pre.26)
66
+ colored2 (~> 3.1)
67
+ rake_factory (= 0.32.0.pre.2)
68
+ ruby_git_crypt (= 0.1.0.pre.2)
69
+ ruby_gpg2 (~> 0.6)
70
+ rake_github (0.11.0)
71
+ colored2 (~> 3.1)
72
+ octokit (>= 4.16, < 7.0)
73
+ rake_factory (~> 0.23)
74
+ sshkey (~> 2.0)
75
+ rake_gpg (0.18.0)
76
+ rake_factory (~> 0.23)
77
+ ruby_gpg2 (~> 0.6)
78
+ rake_ssh (0.8.0)
79
+ colored2 (~> 3.1)
80
+ rake_factory (~> 0.23)
81
+ sshkey (~> 2.0)
82
+ rchardet (1.8.0)
83
+ regexp_parser (2.6.2)
84
+ rexml (3.2.5)
85
+ rspec (3.12.0)
86
+ rspec-core (~> 3.12.0)
87
+ rspec-expectations (~> 3.12.0)
88
+ rspec-mocks (~> 3.12.0)
89
+ rspec-core (3.12.1)
90
+ rspec-support (~> 3.12.0)
91
+ rspec-expectations (3.12.2)
92
+ diff-lcs (>= 1.2.0, < 2.0)
93
+ rspec-support (~> 3.12.0)
94
+ rspec-mocks (3.12.3)
95
+ diff-lcs (>= 1.2.0, < 2.0)
96
+ rspec-support (~> 3.12.0)
97
+ rspec-support (3.12.0)
98
+ rubocop (1.44.1)
99
+ json (~> 2.3)
100
+ parallel (~> 1.10)
101
+ parser (>= 3.2.0.0)
102
+ rainbow (>= 2.2.2, < 4.0)
103
+ regexp_parser (>= 1.8, < 3.0)
104
+ rexml (>= 3.2.5, < 4.0)
105
+ rubocop-ast (>= 1.24.1, < 2.0)
106
+ ruby-progressbar (~> 1.7)
107
+ unicode-display_width (>= 2.4.0, < 3.0)
108
+ rubocop-ast (1.24.1)
109
+ parser (>= 3.1.1.0)
110
+ rubocop-capybara (2.17.0)
111
+ rubocop (~> 1.41)
112
+ rubocop-rake (0.6.0)
113
+ rubocop (~> 1.0)
114
+ rubocop-rspec (2.18.1)
115
+ rubocop (~> 1.33)
116
+ rubocop-capybara (~> 2.17)
117
+ ruby-progressbar (1.11.0)
118
+ ruby2_keywords (0.0.5)
119
+ ruby_git_crypt (0.1.0.pre.2)
120
+ immutable-struct (~> 2.4)
121
+ lino (~> 3.0)
122
+ ruby_gpg2 (0.10.0)
123
+ lino (~> 3.0)
124
+ sawyer (0.9.2)
125
+ addressable (>= 2.3.5)
126
+ faraday (>= 0.17.3, < 3)
127
+ simplecov (0.22.0)
128
+ docile (~> 1.1)
129
+ simplecov-html (~> 0.11)
130
+ simplecov_json_formatter (~> 0.1)
131
+ simplecov-html (0.12.3)
132
+ simplecov_json_formatter (0.1.4)
133
+ sshkey (2.0.0)
134
+ tzinfo (2.0.6)
135
+ concurrent-ruby (~> 1.0)
136
+ unicode-display_width (2.4.2)
137
+
138
+ PLATFORMS
139
+ arm64-darwin-21
140
+ x86_64-darwin-19
141
+ x86_64-darwin-21
142
+ x86_64-linux
143
+
144
+ DEPENDENCIES
145
+ activesupport
146
+ bundler
147
+ gem-release
148
+ memfs
149
+ rake
150
+ rake_circle_ci
151
+ rake_git
152
+ rake_git_crypt
153
+ rake_github
154
+ rake_gpg
155
+ rake_secrets!
156
+ rake_ssh
157
+ rspec
158
+ rubocop
159
+ rubocop-rake
160
+ rubocop-rspec
161
+ simplecov
162
+
163
+ BUNDLED WITH
164
+ 2.4.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 InfraBlocks Maintainers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # RakeSecrets
2
+
3
+ Rake tasks for managing secrets.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'rake_secrets'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install rake_secrets
20
+
21
+ ## Usage
22
+
23
+ TODO: Write docs.
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
28
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
29
+ prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To
32
+ release a new version, update the version number in `version.rb`, and then run
33
+ `bundle exec rake release`, which will create a git tag for the version, push
34
+ git commits and tags, and push the `.gem` file to
35
+ [rubygems.org](https://rubygems.org).
36
+
37
+ ### Managing CircleCI keys
38
+
39
+ To encrypt a GPG key for use by CircleCI:
40
+
41
+ ```bash
42
+ openssl aes-256-cbc \
43
+ -e \
44
+ -md sha1 \
45
+ -in ./config/secrets/ci/gpg.private \
46
+ -out ./.circleci/gpg.private.enc \
47
+ -k "<passphrase>"
48
+ ```
49
+
50
+ To check decryption is working correctly:
51
+
52
+ ```bash
53
+ openssl aes-256-cbc \
54
+ -d \
55
+ -md sha1 \
56
+ -in ./.circleci/gpg.private.enc \
57
+ -k "<passphrase>"
58
+ ```
59
+
60
+ ## Contributing
61
+
62
+ Bug reports and pull requests are welcome on GitHub at
63
+ https://github.com/infrablocks/rake_secrets. This project is intended to be a
64
+ safe, welcoming space for collaboration, and contributors are expected to
65
+ adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
66
+ conduct.
67
+
68
+ ## License
69
+
70
+ The gem is available as open source under the terms of the
71
+ [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,179 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'yaml'
4
+ require 'rake_circle_ci'
5
+ require 'rake_git'
6
+ require 'rake_git_crypt'
7
+ require 'rake_github'
8
+ require 'rake_ssh'
9
+ require 'rake_gpg'
10
+ require 'securerandom'
11
+ require 'rspec/core/rake_task'
12
+ require 'rubocop/rake_task'
13
+
14
+ task default: %i[
15
+ library:fix
16
+ test:unit
17
+ ]
18
+
19
+ RakeGitCrypt.define_standard_tasks(
20
+ namespace: :git_crypt,
21
+
22
+ provision_secrets_task_name: :'secrets:provision',
23
+ destroy_secrets_task_name: :'secrets:destroy',
24
+
25
+ install_commit_task_name: :'git:commit',
26
+ uninstall_commit_task_name: :'git:commit',
27
+
28
+ gpg_user_key_paths: %w[
29
+ config/gpg
30
+ config/secrets/ci/gpg.public
31
+ ]
32
+ )
33
+
34
+ namespace :git do
35
+ RakeGit.define_commit_task(
36
+ argument_names: [:message]
37
+ ) do |t, args|
38
+ t.message = args.message
39
+ end
40
+ end
41
+
42
+ namespace :encryption do
43
+ namespace :directory do
44
+ desc 'Ensure CI secrets directory exists.'
45
+ task :ensure do
46
+ FileUtils.mkdir_p('config/secrets/ci')
47
+ end
48
+ end
49
+
50
+ namespace :passphrase do
51
+ desc 'Generate encryption passphrase used by CI.'
52
+ task generate: ['directory:ensure'] do
53
+ File.write('config/secrets/ci/encryption.passphrase',
54
+ SecureRandom.base64(36))
55
+ end
56
+ end
57
+ end
58
+
59
+ namespace :keys do
60
+ namespace :deploy do
61
+ RakeSSH.define_key_tasks(
62
+ path: 'config/secrets/ci/',
63
+ comment: 'maintainers@infrablocks.io'
64
+ )
65
+ end
66
+
67
+ namespace :gpg do
68
+ RakeGPG.define_generate_key_task(
69
+ output_directory: 'config/secrets/ci',
70
+ name_prefix: 'gpg',
71
+ owner_name: 'InfraBlocks Maintainers',
72
+ owner_email: 'maintainers@infrablocks.io',
73
+ owner_comment: 'rake_secrets CI Key'
74
+ )
75
+ end
76
+ end
77
+
78
+ namespace :secrets do
79
+ desc 'Generate all generatable secrets.'
80
+ task generate: %w[
81
+ encryption:passphrase:generate
82
+ keys:deploy:generate
83
+ keys:gpg:generate
84
+ ]
85
+
86
+ desc 'Provision all secrets.'
87
+ task provision: [:generate]
88
+
89
+ desc 'Delete all secrets.'
90
+ task :destroy do
91
+ rm_rf 'config/secrets'
92
+ end
93
+
94
+ desc 'Rotate all secrets.'
95
+ task rotate: [:'git_crypt:reinstall']
96
+ end
97
+
98
+ RuboCop::RakeTask.new
99
+
100
+ namespace :library do
101
+ desc 'Run all checks of the library'
102
+ task check: [:rubocop]
103
+
104
+ desc 'Attempt to automatically fix issues with the library'
105
+ task fix: [:'rubocop:autocorrect_all']
106
+ end
107
+
108
+ namespace :test do
109
+ RSpec::Core::RakeTask.new(:unit)
110
+ end
111
+
112
+ RakeCircleCI.define_project_tasks(
113
+ namespace: :circle_ci,
114
+ project_slug: 'github/infrablocks/rake_secrets'
115
+ ) do |t|
116
+ circle_ci_config =
117
+ YAML.load_file('config/secrets/circle_ci/config.yaml')
118
+
119
+ t.api_token = circle_ci_config['circle_ci_api_token']
120
+ t.environment_variables = {
121
+ ENCRYPTION_PASSPHRASE:
122
+ File.read('config/secrets/ci/encryption.passphrase')
123
+ .chomp
124
+ }
125
+ t.checkout_keys = []
126
+ t.ssh_keys = [
127
+ {
128
+ hostname: 'github.com',
129
+ private_key: File.read('config/secrets/ci/ssh.private')
130
+ }
131
+ ]
132
+ end
133
+
134
+ RakeGithub.define_repository_tasks(
135
+ namespace: :github,
136
+ repository: 'infrablocks/rake_secrets'
137
+ ) do |t, args|
138
+ github_config =
139
+ YAML.load_file('config/secrets/github/config.yaml')
140
+
141
+ t.access_token = github_config['github_personal_access_token']
142
+ t.deploy_keys = [
143
+ {
144
+ title: 'CircleCI',
145
+ public_key: File.read('config/secrets/ci/ssh.public')
146
+ }
147
+ ]
148
+ t.branch_name = args.branch_name
149
+ t.commit_message = args.commit_message
150
+ end
151
+
152
+ namespace :pipeline do
153
+ desc 'Prepare CircleCI Pipeline'
154
+ task prepare: %i[
155
+ circle_ci:env_vars:ensure
156
+ circle_ci:checkout_keys:ensure
157
+ circle_ci:ssh_keys:ensure
158
+ github:deploy_keys:ensure
159
+ ]
160
+ end
161
+
162
+ namespace :version do
163
+ desc 'Bump version for specified type (pre, major, minor, patch)'
164
+ task :bump, [:type] do |_, args|
165
+ bump_version_for(args.type)
166
+ end
167
+ end
168
+
169
+ desc 'Release gem'
170
+ task :release do
171
+ sh 'gem release --tag --push'
172
+ end
173
+
174
+ def bump_version_for(version_type)
175
+ sh "gem bump --version #{version_type} " \
176
+ '&& bundle install ' \
177
+ '&& export LAST_MESSAGE="$(git log -1 --pretty=%B)" ' \
178
+ '&& git commit -a --amend -m "${LAST_MESSAGE} [ci skip]"'
179
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'rake_secrets'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RakeSecrets
4
+ module Mixins
5
+ module Support
6
+ def task_by_name(task, name)
7
+ task.application.lookup(name, task.scope)
8
+ end
9
+
10
+ def task_defined?(task, name)
11
+ !task_by_name(task, name).nil?
12
+ end
13
+
14
+ def ensure_task_with_name_available(task, name)
15
+ raise_task_undefined(name) unless task_defined?(task, name)
16
+ end
17
+
18
+ def invoke_task_with_name(task, name, args)
19
+ ensure_task_with_name_available(task, name)
20
+ task_by_name(task, name).invoke(*args)
21
+ end
22
+
23
+ def reenable_task_with_name(task, name)
24
+ ensure_task_with_name_available(task, name)
25
+ task_by_name(task, name).reenable
26
+ end
27
+
28
+ def invoke_and_reenable_task_with_name(task, name, args)
29
+ invoke_task_with_name(task, name, args)
30
+ reenable_task_with_name(task, name)
31
+ end
32
+
33
+ def raise_task_undefined(name)
34
+ raise(
35
+ RakeFactory::DependencyTaskMissing,
36
+ "The task with name #{name} does not exist."
37
+ )
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake_factory'
4
+
5
+ module RakeSecrets
6
+ module Tasks
7
+ class Placeholder < RakeFactory::Task
8
+ default_name :placeholder
9
+ default_description 'Create a placeholder secrets for testing access etc.'
10
+
11
+ action do
12
+ puts('Creating placeholder secret...')
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'tasks/placeholder'
4
+
5
+ module RakeSecrets
6
+ module Tasks
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RakeSecrets
4
+ VERSION = '0.1.0.pre.1'
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake_secrets/tasks'
4
+ require 'rake_secrets/version'
5
+
6
+ module RakeSecrets
7
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'rake_secrets/version'
6
+
7
+ files = %w[
8
+ bin
9
+ lib
10
+ CODE_OF_CONDUCT.md
11
+ rake_secrets.gemspec
12
+ Gemfile
13
+ LICENSE.txt
14
+ Rakefile
15
+ README.md
16
+ ]
17
+
18
+ Gem::Specification.new do |spec|
19
+ spec.name = 'rake_secrets'
20
+ spec.version = RakeSecrets::VERSION
21
+ spec.authors = ['InfraBlocks Maintainers']
22
+ spec.email = ['maintainers@infrablocks.io']
23
+
24
+ spec.summary = 'Rake tasks for managing secrets.'
25
+ spec.description =
26
+ 'Allows managing the full secrets lifecycle with configurable backends.'
27
+ spec.homepage = 'https://github.com/infrablocks/rake_secrets'
28
+ spec.license = 'MIT'
29
+
30
+ spec.files = `git ls-files -z`.split("\x0").select do |f|
31
+ f.match(/^(#{files.map { |g| Regexp.escape(g) }.join('|')})/)
32
+ end
33
+ spec.bindir = 'exe'
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ['lib']
36
+
37
+ spec.required_ruby_version = '>= 2.7'
38
+
39
+ spec.add_dependency 'colored2', '~> 3.1'
40
+ spec.add_dependency 'rake_factory', '0.32.0.pre.2'
41
+
42
+ spec.metadata['rubygems_mfa_required'] = 'false'
43
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rake_secrets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.1
5
+ platform: ruby
6
+ authors:
7
+ - InfraBlocks Maintainers
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colored2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake_factory
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.32.0.pre.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.32.0.pre.2
41
+ description: Allows managing the full secrets lifecycle with configurable backends.
42
+ email:
43
+ - maintainers@infrablocks.io
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - CODE_OF_CONDUCT.md
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - bin/console
55
+ - bin/setup
56
+ - lib/rake_secrets.rb
57
+ - lib/rake_secrets/mixins/support.rb
58
+ - lib/rake_secrets/tasks.rb
59
+ - lib/rake_secrets/tasks/placeholder.rb
60
+ - lib/rake_secrets/version.rb
61
+ - rake_secrets.gemspec
62
+ homepage: https://github.com/infrablocks/rake_secrets
63
+ licenses:
64
+ - MIT
65
+ metadata:
66
+ rubygems_mfa_required: 'false'
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '2.7'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">"
79
+ - !ruby/object:Gem::Version
80
+ version: 1.3.1
81
+ requirements: []
82
+ rubygems_version: 3.1.6
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Rake tasks for managing secrets.
86
+ test_files: []