Omit private key from session output

This commit is contained in:
Jeff Mitchell committed 2020-09-20 21:23:38 -04:00
1 parent 4669c95999
commit 5370111336
3 files changed
+9 -1

No files matched your search

+4
View File
@@ -11,6 +11,7 @@ import (
"google.golang.org/protobuf/types/known/wrapperspb"
"github.com/hashicorp/boundary/internal/gen/controller/protooptions"
"github.com/hashicorp/boundary/sdk/strutil"
"github.com/iancoleman/strcase"
)
@@ -41,6 +42,9 @@ func parsePBs() {
in.generatedStructure.name = string(desc.Name())
for i := 0; i < desc.Fields().Len(); i++ {
fd := desc.Fields().Get(i)
if strutil.StrListContains(in.fieldFilter, string(fd.Name())) {
continue
}
fi := fieldInfo{
Name: strcase.ToCamel(string(fd.Name())),
ProtoName: string(fd.Name()),