Skip to content

Commit

Permalink
Add TTL to password
Browse files Browse the repository at this point in the history
  • Loading branch information
iheanyi committed May 28, 2024
1 parent 29efc18 commit a3e31be
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 a3e31be

Please sign in to comment.