-
Notifications
You must be signed in to change notification settings - Fork 82
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
Allow origins conf changes #1486
Allow origins conf changes #1486
Conversation
Glue sec conf
Hi @noah-paige here is the initial PR for allow-origins config driven change |
@mourya-33 can you run |
Fixed the formatting Noah |
deploy/stacks/backend_stack.py
Outdated
@@ -96,6 +97,7 @@ def __init__( | |||
reauth_apis=reauth_config.get('reauth_apis', None) if reauth_config else None, | |||
prod_sizing=prod_sizing, | |||
tooling_account_id=tooling_account_id, | |||
allowed_origins=allowed_origins, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to pass this param anymore to ParamStoreStack
- to remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
deploy/stacks/param_store_stack.py
Outdated
@@ -25,6 +25,7 @@ def __init__( | |||
reauth_apis=None, | |||
prod_sizing=False, | |||
tooling_account_id='', | |||
allowed_origins='*', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - approving thanks @mourya-33
### Feature or Bugfix <!-- please choose --> - Documentation ### Detail - Add docs on configurable CloudWatch log retention - Add docs on allowed origin configuration - Update docs on cdkproxy code walkthrough ### Relates - #1527 - #1486 ### Security Please answer the questions below briefly where applicable, or write `N/A`. Based on [OWASP 10](https://owasp.org/Top10/en/). - Does this PR introduce or modify any input fields or queries - this includes fetching data from storage outside the application (e.g. a database, an S3 bucket)? - Is the input sanitized? - What precautions are you taking before deserializing the data you consume? - Is injection prevented by parametrizing queries? - Have you ensured no `eval` or similar functions are used? - Does this PR introduce any functionality or component that requires authorization? - How have you ensured it respects the existing AuthN/AuthZ mechanisms? - Are you logging failed auth attempts? - Are you using or adding any cryptographic features? - Do you use a standard proven implementations? - Are the used keys controlled by the customer? Where are they stored? - Are you introducing any new policies/roles/users? - Have you used the least-privilege principle? How? By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Feature or Bugfix
Detail
This PR is to remove wildcards from origins as reported in #1000 by using a configuration parameter from cdk.json. This will allow the users to set a custom origin (default is *)
Relates
Security
Please answer the questions below briefly where applicable, or write
N/A
. Based onOWASP 10.
fetching data from storage outside the application (e.g. a database, an S3 bucket)? N/A
eval
or similar functions are used? N/ABy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.