From 5f965260879352439b29d82dabc9cc96e554983c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=BCller=2C=20Dominik?= Date: Wed, 6 Dec 2017 10:47:27 +0100 Subject: [PATCH] add allowed_names to cert-response --- builtin/credential/cert/path_certs.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/builtin/credential/cert/path_certs.go b/builtin/credential/cert/path_certs.go index fc5254f2891e..85266a74e03a 100644 --- a/builtin/credential/cert/path_certs.go +++ b/builtin/credential/cert/path_certs.go @@ -131,10 +131,11 @@ func (b *backend) pathCertRead( return &logical.Response{ Data: map[string]interface{}{ - "certificate": cert.Certificate, - "display_name": cert.DisplayName, - "policies": cert.Policies, - "ttl": duration / time.Second, + "certificate": cert.Certificate, + "display_name": cert.DisplayName, + "policies": cert.Policies, + "ttl": duration / time.Second, + "allowed_names": cert.AllowedNames, }, }, nil }