Skip to content

Commit

Permalink
Made yaml always secret property
Browse files Browse the repository at this point in the history
  • Loading branch information
IaroslavTitov committed May 21, 2024
1 parent 48dece1 commit a64c382
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions provider/pkg/provider/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (i *PulumiServiceEnvironmentInput) ToPropertyMap() (resource.PropertyMap, e
if err != nil {
return nil, err
}
propertyMap["yaml"] = resource.NewAssetProperty(yamlAsset)
propertyMap["yaml"] = resource.MakeSecret(resource.NewAssetProperty(yamlAsset))

return propertyMap, nil
}
Expand Down Expand Up @@ -163,7 +163,9 @@ func (st *PulumiServiceEnvironmentResource) Create(req *pulumirpc.CreateRequest)
}
outputProperties, err := plugin.MarshalProperties(
propertyMap,
plugin.MarshalOptions{},
plugin.MarshalOptions{
KeepSecrets: true,
},
)
if err != nil {
return nil, err
Expand Down Expand Up @@ -214,7 +216,9 @@ func (st *PulumiServiceEnvironmentResource) Update(req *pulumirpc.UpdateRequest)
}
outputProperties, err := plugin.MarshalProperties(
propertyMap,
plugin.MarshalOptions{},
plugin.MarshalOptions{
KeepSecrets: true,
},
)
if err != nil {
return nil, err
Expand Down Expand Up @@ -248,7 +252,9 @@ func (st *PulumiServiceEnvironmentResource) Read(req *pulumirpc.ReadRequest) (*p
}
properties, err := plugin.MarshalProperties(
propertyMap,
plugin.MarshalOptions{},
plugin.MarshalOptions{
KeepSecrets: true,
},
)
if err != nil {
return nil, err
Expand Down

0 comments on commit a64c382

Please sign in to comment.