NASA-PDS / planetary-data-cloud

PDS Cloud Migration documentation, issue, tracking and simple tools for assisting in the PDS hybrid cloud study and migration efforts.
Apache License 2.0
0 stars 0 forks source link

Improve the Cognito service in production, as a PDS SSO #111

Open tloubrieu-jpl opened 2 months ago

tloubrieu-jpl commented 2 months ago

💡 Description

⚔️ Parent Epic / Related Tickets

No response

sjoshi-jpl commented 2 months ago

Per discussion with @ramesh-maddegoda and @tloubrieu-jpl, following is the corse of action for this ticket in Prod :

  1. We will have a single user pool in Production (the one that is already created for nucleus dum). This user pool will be re-used for all applications going forward and does not need to be renamed to a generic user pool since that will mean we'll need to re-create users and passwords.
  2. We will have a generic API Gateway called pds-api-prod (right now there's one already created for nucleus dum) and then eventually we will merge nucleus dum configuration as part of that gateway.
  3. Lambdas for nuclus and registry will remain separate.
ramesh-maddegoda commented 1 month ago

I created a Cognito App client to redirect users after password reset in PDS MCP Dev. Then configured invitation messages to use that client app. I did this in MCP Dev, before configuring this in PDS MCP Prod. Please see the screenshots below.

Screenshot 2024-07-30 at 5 05 06 PM copy Screenshot 2024-07-30 at 5 07 51 PM Screenshot 2024-07-30 at 5 08 12 PM Screenshot 2024-07-30 at 5 08 21 PM
tloubrieu-jpl commented 1 month ago

Ramesh is updating the terraform, in the DUM repository.

ramesh-maddegoda commented 2 weeks ago

Created a pull request https://github.com/NASA-PDS/pds-mcp-infra/pull/10

tloubrieu-jpl commented 2 weeks ago

Everything is configured in the terraform script which needs to be run twice.

nutjob4life commented 1 week ago

Cognito is the recommended approach vs using AWS accounts for people outside JPL

Load balancer rules need to be troubleshooted

Redirection to Airflow UI isn't working; attempting fix (going to some Cognito URL) Small gap!