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

Authentication setup for Control Panel v3 and Data Labs API #2231

Closed
1 of 3 tasks
Tracked by #1710
julialawrence opened this issue Nov 6, 2023 · 5 comments
Closed
1 of 3 tasks
Tracked by #1710

Authentication setup for Control Panel v3 and Data Labs API #2231

julialawrence opened this issue Nov 6, 2023 · 5 comments
Assignees
Labels
data-platform-apps-and-tools This issue is owned by Data Platform Apps and Tools enhancement enhancing an existing feature

Comments

@julialawrence
Copy link
Contributor

julialawrence commented Nov 6, 2023

User Story

As a data platform developer
We have unanswered questions
That need to be answered for us to develop the new control panel

Value / Purpose

No response

Proposal

Auth0 setup

  • Setup new Auth0 client for new control panel
  • Setup control panel with AAD connection
  • Register data labs API on auth0

Outstanding Questions

  • What iAM Identity provider do we need to create to enable this? (MP restricts
    the permissions on Idp provider)

Additional Information

Link to overall control panel diagram can be found in slack discussion
Further flow diagram here

No response

Definition of Done

  • Use Terraform to setup new client for Control Panel in Auth0
  • Use Terraform to enable Azure AD connection with new Control Panel
  • Questions from lined document resolved
@michaeljcollinsuk
Copy link
Contributor

Confirmed that we will use new Auth0 tenant that has been setup in terraform

@michaeljcollinsuk michaeljcollinsuk changed the title ❓ Answer Outstanding Questions on Authentication (Internal) Authentication setup for Control Panel v3 and Data Labs API Nov 7, 2023
@michaeljcollinsuk
Copy link
Contributor

Reference for creating new component in terraform in the tech docs

@jacobwoffenden
Copy link
Member

jacobwoffenden commented Nov 7, 2023

New Auth0 tenants have been created:

  • ministryofjustice-data-platform
  • ministryofjustice-data-platform-development

My suggestion is:

  • Create a new machine-to-machine application in the new tenant(s) (same as 2OHxsZFxxRgcpZDkBHpXvgyNd0D6Ue0d in alpha-analytics-moj)
  • Upload application credentials to AWS Secret Manager in analytical-platform-management-production eu-west-2 auth0/${tenant_name}/${secret_id}`
  • Create a new Terraform component terraform/auth0/${tenant_name}

The above was done during #1742

@jacobwoffenden jacobwoffenden moved this from 🧐 To Do to 💨 In Progress in Analytical Platform Nov 14, 2023
@jacobwoffenden jacobwoffenden self-assigned this Nov 14, 2023
@jacobwoffenden jacobwoffenden moved this from 💨 In Progress to ✋ Blocked in Analytical Platform Nov 14, 2023
@jacobwoffenden
Copy link
Member

Moving to blocked as Entra ID and client cannot be tested as we are dependent on deploying to an environment to test

@michaeljcollinsuk
Copy link
Contributor

Testing with Entra ID become unblocked, which allowed us to drop using Auth0 as a middleware. Therefore we implemented authentication with Entra ID directly, this was merged in ministryofjustice/analytical-platform-ui#35

@github-project-automation github-project-automation bot moved this from ✋ Blocked to ✨ Done ✨ in Analytical Platform Dec 1, 2023
@jacobwoffenden jacobwoffenden moved this to 🎉 Done in Analytical Platform Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-platform-apps-and-tools This issue is owned by Data Platform Apps and Tools enhancement enhancing an existing feature
Projects
Archived in project
Development

No branches or pull requests

3 participants