Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registry-155 - Registry multi-tenancy #302

Closed
wants to merge 2 commits into from
Closed

registry-155 - Registry multi-tenancy #302

wants to merge 2 commits into from

Conversation

jimmie
Copy link
Contributor

@jimmie jimmie commented Mar 29, 2023

πŸ—’οΈ Summary

Enable registry multi-tenancy : co-located documents from various nodes within a single Opensearch domain. Provide support for a 'node=' query parameter to all API endpoints which filters documents having 'ops:Harvest_Info/ops:node_name' equal to that value.

Also included is the modified CloudFront function which now passes an HTTP header 'x-request-version' that identifies the API version. This should be consumed by the EC2 Load Balancer rules to direct to the appropriate service (currently ECS/Fargate) endpoint/listener.

THIS PR SHOULD NOT BE MERGED AT THIS POINT IN TIME but is provided to ensure that all bases wrt the service code have been considered.

refs NASA-PDS/registry#155
refs #304

public static void addNodeFilter(BoolQueryBuilder boolQuery, String node) {
log.debug("addNodeFilter: " + node);

if (node == null || node.trim() == "") return;
Copy link

Choose a reason for hiding this comment

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

45% of developers fix this issue

opt.semgrep.java.lang.correctness.no-string-eqeq.no-string-eqeq: Strings should not be compared with ==.
This is a reference comparison operator.
Use .equals() instead.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[β€‰πŸ™ Not relevant ] - [β€‰πŸ˜• Won't fix ] - [β€‰πŸ˜‘ Not critical, will fix ] - [β€‰πŸ™‚ Critical, will fix ] - [β€‰πŸ˜Š Critical, fixing now ]

@jordanpadams jordanpadams marked this pull request as draft April 3, 2023 16:13
@jordanpadams
Copy link
Member

converted PR to Draft since it should not be merged yet

@jordanpadams
Copy link
Member

Closing this PR as we move to a different architectural approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants