NASA-PDS / software-issues-repo

Issue tracking repository as a centralized entry point for general PDS software bugs and feature requests.
Apache License 2.0
0 stars 0 forks source link

B13.0 Deployment Build and Updates #40

Closed jordanpadams closed 1 year ago

jordanpadams commented 1 year ago

(for now we still use validate on gamma for production actitities related to NSSDCA)

jordanpadams commented 1 year ago

blocked by not being ready, but keeping in sprint backlog so we are all aware of it's existence

ramesh-maddegoda commented 1 year ago

The deployment activities specific to the Cognito authentication of doi-ui and doi-service

doi-ui - Cognito Specific deployment activities

To deploy that doi-ui AWS cloud, we have make sure (request relevant Sys Admin team) to,

  1. Create 2 Cognito user groups in that user pool called,
    • PDS_Viewer
    • PDS_Admin
  2. Share the Cognito client ID of the Cognito App client which is used by doi-ui with our team
  3. Share the Cognito domain name with our team
  4. Update the config file: https://github.com/NASA-PDS/doi-ui/blob/main/public/config.js before deployment with the and
  5. Deploy doi-ui
  6. Add our users (JPL SSO users) to the above created 2 user groups PDS_Viewer and PDS_Admin as appropriate. (the user should try to login to the doi-ui once before adding the user, so there will be a JPL SSO user record in Cognito pool)
  7. In Cognito user pool, click on the user name and then add user to new user groups (PDS_Viewer and/or PDS_Admin).
  8. After that, ask users to access doi-ui with JPL SSO (should be successful)

doi-service - Cognito Specific deployment activities

  1. The required configs are documented in https://github.com/NASA-PDS/doi-service README. We should update the following section of the doi-service configurations with,
    • AWS Region <aws-region>
    • Cognito user pool ID <userpoolID>
[API_AUTHENTICATION]
# Add the issuer of the oauth tokens, for cognito https://cognito-idp.<aws-region>.amazonaws.com/<userpoolID>
jwt_issuer =
# Add the entire content of the JSON file at https://cognito-idp.<aws-region>.amazonaws.com/<userpoolID>/.well-known/jwks.json
json_web_key_set =
jwt_lifetime_seconds = 3600
jwt_algorithm = RS256 
ramesh-maddegoda commented 1 year ago

Updated the deployment wiki pages.

(1) doi-ui cognito deployment (wiki): https://wiki.jpl.nasa.gov/pages/viewpage.action?pageId=668962936 (2) doi-service cognito deployment(wiki): https://wiki.jpl.nasa.gov/pages/viewpage.action?pageId=668962954

tloubrieu-jpl commented 1 year ago

Thanks @ramesh-maddegoda Should the new pages be eventually integrated with the existing deployment procedures for the doi service and ui and should they replace them ?

ramesh-maddegoda commented 1 year ago

Thanks @ramesh-maddegoda Should the new pages be eventually integrated with the existing deployment procedures for the doi service and ui and should they replace them ?

@tloubrieu-jpl , the wiki pages were only for Cognito specific deployment configs. I think those should be eventually be part of a doi deployment document.

tloubrieu-jpl commented 1 year ago

Thanks @ramesh-maddegoda , we can validate with @c-suh and the rest of the group that it should be integrated with in the standard deployment pages at a next stand up /break out and then do it.

c-suh commented 1 year ago

Discipline LDD and page updates to be released this Friday on December 2nd. @jordanpadams, @viviant100, and @tloubrieu-jpl anything for the "TBD components to deploy" (from the middle of the description above)?

c-suh commented 1 year ago

Hit a snag with "No space left on device" and have opened a ticket with the SAs. Will work on other steps, i.e. updating site pages for documents, while this is worked out.

c-suh commented 1 year ago

@viviant100 the LDDs have been released at https://pds.nasa.gov/datastandards/dictionaries/ and all documents but one have been updated at https://pds.nasa.gov/datastandards/documents/. The last document is the webhelp version of all data dictionaries, which Steve generates once I release the LDDs and send him certain files. I sent those files to him today after releasing the LDDs and will upload them once he has them ready!

c-suh commented 1 year ago

@viviant100 (apologies I forgot to update this yesterday) the last of the webhelp files have been uploaded and all tasks for "Discipline LDD Release" and "Webpage Updated" are complete!

viviant100 commented 1 year ago

thanks @c-suh!

jimmie commented 1 year ago

I am planning on placing the update CloudFront function and updating load balancer routing rules this evening (Monday, 12/12) during off hours. This will enable updates to the service to be transparent to users and DNs.

Resharding will occur this week (week of 12/12).

jimmie commented 1 year ago

A DSIO ticket has been created to have the documentation redirect rule added to the load balancer: https://itsd-jira.jpl.nasa.gov/servicedesk/customer/portal/16/DSIO-3114 since we mere mortals cannot manually create rules (only through terraform).

tloubrieu-jpl commented 1 year ago

The preparation of a stable release for DOI is blocked by ticket https://github.com/NASA-PDS/doi-ui/issues/178

tloubrieu-jpl commented 1 year ago

These tasks have been removed before of other bugs found on the doi-service/ui:

In production:

c-suh commented 1 year ago

Registry Manager v4.5.4, Standalone Harvest v3.7.4, and Validate v3.3.1 are deployed on gamma and awaiting tests from RChen.

jordanpadams commented 1 year ago

I think we can call this good and re-open if we run into any issues

jimmie commented 1 year ago

Closing per Jordan's comment