Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

feat: add "enableMultiTenancy" CFN parameter #382

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

carvantes
Copy link
Contributor

@carvantes carvantes commented Jul 8, 2021

This allows to deploy fwoa with:

serverless deploy --enableMultiTenancy true

This deploys fwoa with multi-tenancy enabled with sensible defaults for multiTenancyConfig.

Notably, we build a regex so that the SMARTHandler matches aud claims that look like <apiUrl> or <apiUrl>/tenant/<tenantId>

Related PRs:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@rsmayda rsmayda left a comment

Choose a reason for hiding this comment

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

Looks good, not approving at this moment until awslabs/fhir-works-on-aws-authz-smart#43 is merged in

@carvantes carvantes merged commit 13b4c14 into feat-smart-multitenancy Jul 9, 2021
@carvantes carvantes deleted the dev-smart-enable-mt branch July 9, 2021 17:18
carvantes added a commit that referenced this pull request Aug 24, 2021
* feat: update lambda state machine to accommodate tenantId (#367)

* feat: add "enableMultiTenancy" CFN parameter (#382)

* fix: pass enableMultiTenancy to ES

* fix: remove _id, _tenantId from bulk export results

* feat: Group export scripts (#389)

* chore: script generating patient compartment search params

* feat: update Glue script for group export

* Upload patient compartment jsons to S3

* fix: allow more concurrent export jobs for multi-tenant deployments (#397)

* feat: add ES hard delete config value (#398)

* docs: add multi-tenancy docs (#400)

* fix: pass enableMultiTenancy flag to s3DataService

* test: add multi-tenancy integ tests (#387)

* test: integ tests for Group export (#393)

* chore: upgrade dependencies

* add public multi-tenant routes

* add system/read and user/delete permissions to defaults

* test: fix tests for smart multi-tenancy

* test: update gh actions to also test multi-tenant environment

* docs: update bulk export docs to mention group export

Co-authored-by: Yanyu Zheng <yz2690@columbia.edu>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants