sdk icon indicating copy to clipboard operation
sdk copied to clipboard

getSecret with 'path' argument returns cached value for different path

Open db-hui opened this issue 10 months ago • 0 comments

Steps to reproduce:

  • create a project with two folders /path_1 and /path_2
  • add MY_SECRET to both folders, but give them different values value_1 and value_2
  • run getSecret while specifying /path_1 in the first call and /path_2 in the second call

getSecret yields the same value for both calls, sometimes value_1, sometimes value_2.

listSecrets lists correct values when specifying path.

My assumption is that keys with similar names but different values should be able to exist in different folders (paths)?

It looks like Infisical's internal cache is not taking path into account?

Please let me know if you need any additional info.

db-hui avatar Apr 23 '24 08:04 db-hui