Skip to content

Commit

Permalink
Fix resolve error due to nil pointer (#716)
Browse files Browse the repository at this point in the history
Fail gracefully if secret key is not available in secret manager.
  • Loading branch information
sourishkrout authored Dec 11, 2024
1 parent 034be8e commit 69760fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/owl/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ func init() {
result, err := gcpsm.AccessSecretVersion(p.Context, accessRequest)
if err != nil {
verr := NewResolutionFailedError(
&SetVarItem{Var: v.Var, Value: v.Value, Spec: specOpSet.specs[v.Var.Key].Spec},
&SetVarItem{Var: v.Var, Value: v.Value, Spec: resolveOpSet.specs[v.Var.Key].Spec},
v.Var.Key,
err,
)
Expand Down

0 comments on commit 69760fe

Please sign in to comment.