Auth-policy allowed signers, string array doesn't work?

Hi, i try to add two jwt signers to a new auth-policy. One is working fine, but when i try a second, i got an error. I try all of this commands:

$ sudo ziti edge create auth-policy siemensX --primary-ext-jwt-allowed --primary-ext-jwt-allowed-signers ["29ikTMKKxy1XlLhdFgtiRf","2HRQlEbG3OdneXPlcA9V9h"]
error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}
$ sudo ziti edge create auth-policy siemensX --primary-ext-jwt-allowed --primary-ext-jwt-allowed-signers "29ikTMKKxy1XlLhdFgtiRf","2HRQlEbG3OdneXPlcA9V9h"
error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}
$ sudo ziti edge create auth-policy siemensX --primary-ext-jwt-allowed --primary-ext-jwt-allowed-signers '29ikTMKKxy1XlLhdFgtiRf','2HRQlEbG3OdneXPlcA9V9h'
error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}
$ sudo ziti edge create auth-policy siemensX --primary-ext-jwt-allowed --primary-ext-jwt-allowed-signers ['29ikTMKKxy1XlLhdFgtiRf','2HRQlEbG3OdneXPlcA9V9h']
error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 404): {}
$ sudo ziti edge create auth-policy siemensX --primary-ext-jwt-allowed --primary-ext-jwt-allowed-signers '29ikTMKKxy1XlLhdFgtiRf'
2i4i27n55WfoZTmfsYz6xq
$

how can a add the signers as string array there?
Thanks
Robin

It should be possible to provide multiple values via multiple flags.

--primary-ext-jwt-allowed-signers 29ikTMKKxy1XlLhdFgtiRf \
--primary-ext-jwt-allowed-signers 2HRQlEbG3OdneXPlcA9V9h
2 Likes

so easy :wink: Thanks a lot, it works fine!

1 Like