question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEAT] Please document that selector are using JSONata

See original GitHub issue

Is your feature request related to a problem? Please describe. I’m using a kv2 store, with a key that had a dash: foo-bar. This produced errors that we difficult to resolve: Unable to retrieve result for data.data.foo-bar. No match data was found. Double check your Key or Selector.

Upon reading the source code, I found references to JSONata; reading their docs, I found that I could escape things with backquotes, and this resolved the issue.

Describe the solution you’d like Please add in the relevant section in the README that the selector syntax is using JSONata.

Describe alternatives you’ve considered I guess ripping the library out and doing something home-grown is fine too? But that seems like a lot of work, and the actual problem is just documenting it (which would have to be done either way).

Additional context

uses: hashicorp/vault-action@v2.0.1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
doowbcommented, Apr 21, 2021

In case this is helpful to anyone else that needs to retrieve the entire JSON object from the secret, you can use $.$ as the selector:

secrets: secret/path/to/my-secret $.$ | MY_SECRET;

Just using $ or * might have worked with jsonata, but the selector is quoted here when it doesn’t contain a .. It would be nice to be able to just do . or * to get the entire object, but I think that would be a separate feature request and I’m not sure where it would fit.

3reactions
benkeilcommented, Jul 29, 2022

after one year, any progress here? how could such a basic feature not be included from the first day?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSONata Documentation · JSONata
JSONata is a lightweight query and transformation language for JSON data. Inspired by the 'location path' semantics of XPath 3.1, it allows sophisticated ......
Read more >
JSONata in 5 minutes - YouTube
First look at the JSONata query and transformation language for JSON data.https://github.com/ jsonata -js/jsonatahttp:// jsonata.org.
Read more >
hashicorp - Bountysource
Please describe. Currently we use GitLabCI and we export all keys of some paths in a json file. The arborescence in Vault is...
Read more >
Json regex replace - Caritas Castellaneta
To review, open the file in an editor that reveals hidden Unicode characters. ... Jun 16, 2017 · Please consider replace the Null...
Read more >
PReS Connect User Guide - Resource Center
Please be aware: The key word depend must be followed immediately by ... System: Select the database type to use for thePReS Connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found