WIP: 🕸️ Bug / Support AWS OpenSearch Auth#1081
Conversation
There was a problem hiding this comment.
until we migrate this codebase to use pnpm, please refrain from using the library or committing this file
thanks
There was a problem hiding this comment.
Sorry this was created by mistake, removed
There was a problem hiding this comment.
please exclude the modules/graphql-router/src/admin files out of this and all PRs
thanks
There was a problem hiding this comment.
There are a lot of distracting Type errors in this folder, maybe we can remove it or gitignore? I'm often using Type errors to validate that my new changes haven't broken anything, but frequently end up impacting code in /admin
Suggested gitignore change:
https://github.com/overture-stack/arranger/pull/1081/changes#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
I will revert the changes in this file, but that's the context / source of repeat issues
| enableDebug, | ||
| enableDebug: !!enableDebug, |
There was a problem hiding this comment.
how is this change necessary?
There was a problem hiding this comment.
This is a Type error, enableDebug at line 58 is boolean | undefined, and getIndexMapping expects only a boolean.
We had to leverage enableDebug to troubleshoot in HCMI Dev.
| ...clientConfig, | ||
| clientType, | ||
| ...AwsSigv4Signer({ | ||
| region: 'us-east-1', |
There was a problem hiding this comment.
hard coding this would limit the library's usefulness to a specific subset of users who would otherwise choose a different mirror/server location
There was a problem hiding this comment.
Yes this should be dynamic, I'm not sure yet what other features also may need to be included.
This is still in draft until I can validate what other changes will need to be made to work with the context of HCMI. The AWS-ArrangerSearchClient config still needs improvement, this is only set up for testing.
Summary
Adds AWS SDK Client Auth support for OpenSearch client
Issues
nci-hcmi-catalog/portal#1145
Description of Changes
Adds AWS SDK for
Readiness Checklist
.env.schemafile and documented in the README