Skip to content

Commit

Permalink
revert rake task change
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Sep 19, 2024
1 parent 98e39b5 commit 9192a7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/vault.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "json"

# Define Rake tasks
namespace :vault do
desc "Setup Vault engines and CAs for dev and test"
desc "Setup PKI root and intermediate certificates"
task :setup do
unless Rails.env.development?
raise "This task should only be used in development"
Expand Down Expand Up @@ -32,8 +32,8 @@ end
def ensure_root_cert
enable_pki("pki", "87600h")

# Generate root certificate
root_cert = Vault.logical.write("pki/root/generate/internal",
# Generate root certificate
root_cert = Vault.logical.write("pki/root/generate/internal",
common_name: "astral.internal",
issuer_name: "root-2024",
ttl: "87600h").data[:certificate]
Expand Down

0 comments on commit 9192a7e

Please sign in to comment.