Closed fndiri closed 11 months ago
Looks like flyctl lost the available-everywhere --json
flag a few months ago. Only secrets list
supports --json
now.
The plugin doesn't parse output from the flyctl secrets set
as JSON, so so removing --json
from secrets_args.extend
should fix it.
Thanks for the clarification. I removed the --json
flag in secrets_args.extend
(in a local clone of the plugin) in __init__.py
from
secrets_args.extend(["-a", app, "--json"])
to secrets_args.extend(["-a", app])
and it works :-).
@simonw : Will you change it in the main-branch?
BTW: Getting a better understanding of datasette and the plugin-system: Its really a great product!
Testing this with:
datasette publish fly \
fixtures.db \
--app datasette-publish-fly-issue-29 \
--install datasette-auth-passwords \
--plugin-secret datasette-auth-passwords root_password_hash 'pbkdf2_sha256$480000$9ce99372d1fa079f770d4e2245bcf335$zJjskTDc6M8sxmEUYZBr/EC0e730Q9pzcF8RJB43c/c='
(That's a password of "password").
That worked: https://datasette-publish-fly-issue-29.fly.dev/
Deploying an app with
works and I can access the data.
But using the script with
--install ...
and--plugin-secret ...
flags, e.g.this error shows up:
Is there a change in the
flyctl secret ...
command?