Skip to content

Comments

Add search operation model for JSONB#71

Merged
jheysel-r7 merged 2 commits intorapid7:masterfrom
cdelafuente-r7:feat/model/search/operation/jsonb
Mar 25, 2025
Merged

Add search operation model for JSONB#71
jheysel-r7 merged 2 commits intorapid7:masterfrom
cdelafuente-r7:feat/model/search/operation/jsonb

Conversation

@cdelafuente-r7
Copy link
Contributor

This adds Metasploit::Model::Search::Operation::Jsonb to be able to search within a JSONB.

It transforms the search value to a valid JSON if it contains a colon (e.g. key:value). It returns the String if not. Also, the first colon is used as a delimiter between the key and the value. Any subsequent colon will be part of the value. It also handles double/single quotes to escape any colon that are not suppose to be a delimiter between the key and the value.

group :development, :test do
# Temporary, remove once the Rails 7.1 update is complete
# see: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
gem 'concurrent-ruby', '1.3.4'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jheysel-r7 jheysel-r7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @cdelafuente-r7!

@jheysel-r7 jheysel-r7 self-assigned this Mar 25, 2025
@jheysel-r7 jheysel-r7 moved this from Todo to In Progress in Metasploit Kanban Mar 25, 2025
@jheysel-r7 jheysel-r7 merged commit 64ab72b into rapid7:master Mar 25, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Metasploit Kanban Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants