Pass request headers when making application config calls#6164
Merged
kavilla merged 7 commits intoopensearch-project:mainfrom Mar 19, 2024
Merged
Pass request headers when making application config calls#6164kavilla merged 7 commits intoopensearch-project:mainfrom
kavilla merged 7 commits intoopensearch-project:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6164 +/- ##
==========================================
+ Coverage 67.21% 67.24% +0.02%
==========================================
Files 3344 3344
Lines 64792 64796 +4
Branches 10427 10427
==========================================
+ Hits 43552 43572 +20
+ Misses 18697 18683 -14
+ Partials 2543 2541 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
yujin-emma
reviewed
Mar 15, 2024
xinruiba
reviewed
Mar 15, 2024
93dcf8a to
34703ce
Compare
Member
Author
|
The failed test https://github.com/opensearch-project/OpenSearch-Dashboards/actions/runs/8331507596/job/22798565980?pr=6164 is not related to my changes. |
kavilla
previously approved these changes
Mar 18, 2024
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
Signed-off-by: Tianle Huang <tianleh@amazon.com>
kavilla
approved these changes
Mar 18, 2024
Member
kavilla
left a comment
There was a problem hiding this comment.
Cypress test likely to fail unrelated
bandinib-amzn
approved these changes
Mar 19, 2024
Member
|
Re-running failed CI |
ZilongX
approved these changes
Mar 19, 2024
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Mar 19, 2024
Application config plugin allows external plugin to register a different storage other than the default OpenSearch. The external plugin may need some additional information about the request headers when handling the requests. * Allow extra information in the application config calls Signed-off-by: Tianle Huang <tianleh@amazon.com> * only expose headers Signed-off-by: Tianle Huang <tianleh@amazon.com> * update jsdoc Signed-off-by: Tianle Huang <tianleh@amazon.com> * add more logs Signed-off-by: Tianle Huang <tianleh@amazon.com> * update change log Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit bfab07c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
kavilla
pushed a commit
that referenced
this pull request
Mar 19, 2024
) Application config plugin allows external plugin to register a different storage other than the default OpenSearch. The external plugin may need some additional information about the request headers when handling the requests. * Allow extra information in the application config calls Signed-off-by: Tianle Huang <tianleh@amazon.com> * only expose headers Signed-off-by: Tianle Huang <tianleh@amazon.com> * update jsdoc Signed-off-by: Tianle Huang <tianleh@amazon.com> * add more logs Signed-off-by: Tianle Huang <tianleh@amazon.com> * update change log Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> (cherry picked from commit bfab07c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Application config plugin allows external plugin to register a different storage other than the default OpenSearch. The external plugin may need some additional information about the request headers when handling the requests.
Issues Resolved
Screenshot
Testing the changes
Update the csp rules.
call
response
Confirm on UI that the new value is used.
Check API calls to all configs
curl 'http://localhost:5601/api/appconfig'response
Check API to get only csp rules.
response
Delete
Response
Get all again
response
verify that default csp with frame ancestors is used.
Check List
yarn test:jestyarn test:jest_integration