Skip to content

Commit

Permalink
Merge pull request #26 from planetscale/iheanyi/add-ttl-flag-to-command
Browse files Browse the repository at this point in the history
Add TTL to password
  • Loading branch information
iheanyi authored May 28, 2024
2 parents 29efc18 + a3e31be commit 03030d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/planetscale_rails/tasks/psdb.rake
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace :psdb do

short_hash = SecureRandom.hex(2)[0, 4]
password_name = "planetscale-rails-#{short_hash}"
command = "pscale password create #{database} #{branch} #{password_name} -f json #{ENV["SERVICE_TOKEN_CONFIG"]}"
command = "pscale password create #{database} #{branch} #{password_name} -f json --ttl 10m #{ENV["SERVICE_TOKEN_CONFIG"]}"

output = `#{command}`

Expand Down

0 comments on commit 03030d2

Please sign in to comment.