You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@AndrewCopeland I believe that you're right - I don't see why variable retrieval should ever allow fetching a non-variable so I think this issue is valid. I think makeFullId may have some edge cases where it may be needed that will need to be considered (I can't think of any right now though) but for secret fetching it definitely seems erroneous.
Summary
client.RetrieveSecret fails to retrieve secret if secretID contains a colon.
Steps to Reproduce
Steps to reproduce the behavior:
some/secret:goes/here
client.RetrieveSecret("some/secret:goes/here")
Expected Results
A clear and concise description of what you expected to happen.
Actual Results (including error logs, if applicable)
404
Reproducible
Version/Tag number
all
Environment setup
does apply
Additional Information
When retrieving the full ID of the variable, if it contains a ':' then it assumes the first part is the resource
variable, group, policy
.The
makeFullId
is the problem.https://github.com/cyberark/conjur-api-go/blob/master/conjurapi/router_v5.go#L149
As you can see it splits the secret ID and assumes the first part if the
kind
and the second part is theid
.conjur-api-go/conjurapi/client.go
Lines 157 to 166 in 6d8c9c1
The text was updated successfully, but these errors were encountered: