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

Add geospatial ip2geo to the demo configuration system indices and roles #3051

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

heemin32
Copy link
Contributor

Description

Adds 2 ip2geo related roles to the plugin: read only and fully access.
Adds ip2geo system index to demo scripts as well.

Issues Resolved

N/A

Testing

N/A

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #3051 (8186b4f) into main (2f69a10) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #3051      +/-   ##
============================================
- Coverage     62.43%   62.37%   -0.06%     
+ Complexity     3352     3348       -4     
============================================
  Files           254      254              
  Lines         19741    19741              
  Branches       3334     3334              
============================================
- Hits          12325    12314      -11     
- Misses         5787     5793       +6     
- Partials       1629     1634       +5     

see 3 files with indirect coverage changes

@@ -315,7 +315,7 @@ echo plugins.security.enable_snapshot_restore_privilege: true >> "%OPENSEARCH_CO
echo plugins.security.check_snapshot_restore_write_privileges: true >> "%OPENSEARCH_CONF_FILE%"
echo plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"] >> "%OPENSEARCH_CONF_FILE%"
echo plugins.security.system_indices.enabled: true >> "%OPENSEARCH_CONF_FILE%"
echo plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins-ml-connector", ".plugins-ml-model-group", ".plugins-ml-model", ".plugins-ml-task", ".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opensearch-notifications-*", ".opensearch-notebooks", ".opensearch-observability", ".ql-datasources", ".opendistro-asynchronous-search-response*", ".replication-metadata-store", ".opensearch-knn-models"] >> "%OPENSEARCH_CONF_FILE%"
echo plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins-ml-connector", ".plugins-ml-model-group", ".plugins-ml-model", ".plugins-ml-task", ".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opensearch-notifications-*", ".opensearch-notebooks", ".opensearch-observability", ".ql-datasources", ".opendistro-asynchronous-search-response*", ".replication-metadata-store", ".opensearch-knn-models", ".geospatial.ip2geo.data.*"] >> "%OPENSEARCH_CONF_FILE%"
Copy link
Member

Choose a reason for hiding this comment

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

Curious, is there any reason why you are using . as a delimiter in the system index name? In all other cases in this list, plugins use hyphens. While its possible to use dot separation, would hyphen be better for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense. Let me update it.

@cwperks
Copy link
Member

cwperks commented Jul 27, 2023

@heemin32 Is this change targeting 2.10?

@cwperks cwperks added the backport 2.x backport to 2.x branch label Jul 27, 2023
@heemin32
Copy link
Contributor Author

@heemin32 Is this change targeting 2.10?

Yes

@davidlago davidlago added the v2.10.0 Issues targeting release v2.10.0 label Jul 27, 2023
@heemin32 heemin32 requested a review from cwperks July 27, 2023 21:08
@cwperks
Copy link
Member

cwperks commented Jul 31, 2023

@heemin32 Can you rebase this PR with main? There were some recent build fixing PRs merged.

@heemin32
Copy link
Contributor Author

@heemin32 Can you rebase this PR with main? There were some recent build fixing PRs merged.

Thanks! Rebased.

@cwperks
Copy link
Member

cwperks commented Aug 1, 2023

Can another maintainer please review this PR?

@peternied peternied merged commit 634e3af into opensearch-project:main Aug 1, 2023
54 of 55 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 1, 2023
### Description
Adds 2 ip2geo related roles to the plugin: read only and fully access.
Adds ip2geo system index to demo scripts as well.

Signed-off-by: Heemin Kim <[email protected]>
(cherry picked from commit 634e3af)
cwperks added a commit that referenced this pull request Aug 1, 2023
…y plugin (#3081)

Backport 634e3af from #3051

Co-authored-by: Heemin Kim <[email protected]>
Co-authored-by: Craig Perkins <[email protected]>
@peternied peternied changed the title Integrate geospatial ip2geo functionality with security plugin Add geospatial ip2geo to the demo configuration system indices and roles Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch v2.10.0 Issues targeting release v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants