Make audiences compatible with the old version.
This commit is contained in:
parent
efc2180c4a
commit
2cb6bd880b
1 changed files with 14 additions and 6 deletions
|
@ -197,17 +197,25 @@ func (c *Config) getAudiences() provisioner.Audiences {
|
||||||
|
|
||||||
for _, name := range c.DNSNames {
|
for _, name := range c.DNSNames {
|
||||||
audiences.Sign = append(audiences.Sign,
|
audiences.Sign = append(audiences.Sign,
|
||||||
fmt.Sprintf("https://%s/sign", name), fmt.Sprintf("https://%s/1.0/sign", name))
|
fmt.Sprintf("https://%s/1.0/sign", name),
|
||||||
|
fmt.Sprintf("https://%s/sign", name))
|
||||||
audiences.Revoke = append(audiences.Revoke,
|
audiences.Revoke = append(audiences.Revoke,
|
||||||
fmt.Sprintf("https://%s/revoke", name), fmt.Sprintf("https://%s/1.0/revoke", name))
|
fmt.Sprintf("https://%s/1.0/revoke", name),
|
||||||
|
fmt.Sprintf("https://%s/revoke", name))
|
||||||
audiences.SSHSign = append(audiences.SSHSign,
|
audiences.SSHSign = append(audiences.SSHSign,
|
||||||
fmt.Sprintf("https://%s/ssh/sign", name), fmt.Sprintf("https://%s/1.0/ssh/sign", name))
|
fmt.Sprintf("https://%s/1.0/ssh/sign", name),
|
||||||
|
fmt.Sprintf("https://%s/ssh/sign", name),
|
||||||
|
fmt.Sprintf("https://%s/1.0/sign", name),
|
||||||
|
fmt.Sprintf("https://%s/sign", name))
|
||||||
audiences.SSHRevoke = append(audiences.SSHRevoke,
|
audiences.SSHRevoke = append(audiences.SSHRevoke,
|
||||||
fmt.Sprintf("https://%s/ssh/revoke", name), fmt.Sprintf("https://%s/1.0/ssh/revoke", name))
|
fmt.Sprintf("https://%s/1.0/ssh/revoke", name),
|
||||||
|
fmt.Sprintf("https://%s/ssh/revoke", name))
|
||||||
audiences.SSHRenew = append(audiences.SSHRenew,
|
audiences.SSHRenew = append(audiences.SSHRenew,
|
||||||
fmt.Sprintf("https://%s/ssh/renew", name), fmt.Sprintf("https://%s/1.0/ssh/renew", name))
|
fmt.Sprintf("https://%s/1.0/ssh/renew", name),
|
||||||
|
fmt.Sprintf("https://%s/ssh/renew", name))
|
||||||
audiences.SSHRekey = append(audiences.SSHRekey,
|
audiences.SSHRekey = append(audiences.SSHRekey,
|
||||||
fmt.Sprintf("https://%s/ssh/rekey", name), fmt.Sprintf("https://%s/1.0/ssh/rekey", name))
|
fmt.Sprintf("https://%s/1.0/ssh/rekey", name),
|
||||||
|
fmt.Sprintf("https://%s/ssh/rekey", name))
|
||||||
}
|
}
|
||||||
|
|
||||||
return audiences
|
return audiences
|
||||||
|
|
Loading…
Reference in a new issue