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 AAD app for external connections #324

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

tanya-borisova
Copy link
Member

What is being addressed

Adds a new AAD app, flowehr-external-${suffix}, that is used to connect FlowEHR with downstream systems.

The specific way we want to use this app is to assign it roles to resources in TRE workspaces, so that Databricks Pipelines can use credentials from this one single app, rather than having to manipulate credential per each workspace and resource.

How is this addressed

  • Added a new AAD app, flowehr_external_connection, added corresponding service principal and a secret
  • Create secrets in Databricks for this app
  • Push the secrets to keyvault
  • Refactor all AAD apps in Transform to live in auth.tf file

Copy link
Member

@damoodamoo damoodamoo left a comment

Choose a reason for hiding this comment

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

like it, refactoring is neater too 👍

@damoodamoo
Copy link
Member

/test

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/6071183535 (with refid 0667af66)

(in response to this comment from @damoodamoo)

1 similar comment
@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/6071183535 (with refid 0667af66)

(in response to this comment from @damoodamoo)

@tanya-borisova
Copy link
Member Author

/test-destroy-env

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

/test-destroy-env is not recognised as a valid command.

You can use the following commands:
    /test - deploy any modified modules and destroy
    /test-all - deploy everything (ignoring path filters) and destroy
    /test-force-approve - force approval of the PR tests (i.e. skip the deployment checks)
    /destroy - delete the PR environment (e.g. to enable testing a deployment from a clean start after previous tests)
    /destroy-no-terraform - delete the PR environment without terraform
    /help - show this help

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

/destroy

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

Destroying environment (with refid 0667af66)

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

/test

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/6072118095 (with refid 0667af66)

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

/destroy-no-terraform

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

Destroying environment no terraform (with refid 0667af66). :warning: This will leave orphaned resources

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

/test

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/6073232663 (with refid 0667af66)

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

tanya-borisova commented Sep 4, 2023

/test-force-approve

I didn't manage to run tests in the environment unfortunately, but I can confirm that it works in my dev environment

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 7055d04)

(in response to this comment from @tanya-borisova)

Copy link
Member

@jjgriff93 jjgriff93 left a comment

Choose a reason for hiding this comment

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

Looks great!

infrastructure/transform/secrets.tf Show resolved Hide resolved
Co-authored-by: James Griffin <me@JamesGriff.in>
@tanya-borisova
Copy link
Member Author

/test

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/6086972839 (with refid 0667af66)

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Member Author

/test-force-approve (as above)

@jjgriff93
Copy link
Member

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 526b011)

(in response to this comment from @tanya-borisova)

@tanya-borisova tanya-borisova merged commit ace752b into main Sep 5, 2023
2 checks passed
@tanya-borisova tanya-borisova deleted the tborisova/add-aad-app-for-external-connections branch September 5, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants