bad flag syntax while inserting certificate as secret #555
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
on abra 0.9, we were deploying our own certificates to traefik as secrets:
but now the same command throws this:
we think it's because it takes the certificate header as the start of a flag, and fails because it's missing the data.
i see now there's a
-f
flag, is this an appropiate replacement? as in it will take the data argument as a file name and insert its contents?so the actual bug would be that secret data can't start with "-"
@fauno I believe passing
--
will tell the underlying CLI lib to ignore anything after it and just take it as-is, e.g.abra app secret insert traefik.$domain ssl_cert v1 -- <your command>
. I think this is an unforseen bug from the CLI handling library itself 😱 Sorry your commands / scripts are broken... looking at #417, I think the--file/-f
is the flag you want. Is that working?Yes, it worked and we're already patching the scripts, no urgency there! I prefer the
-f
flag than interspersingcat
on a command actually.OK, nice! I will update the migration docs and make sure this is documented as an approach also.
Thanks for reporting!