CDCgov / trusted-intermediary

Bringing together healthcare providers by reducing the connection burden.
Apache License 2.0
11 stars 5 forks source link

SFTP Production Setup #1153

Closed somesylvie closed 1 month ago

somesylvie commented 4 months ago

Story

As a partner, so that I can use the Intermediary, I need the infrastructure, code, and secrets in production.

Acceptance Criteria

Tasks

Research

Engineering

Edit: as of 8/21, we've decided to use the ca-phl org that's been created and is in staging already (and is ETOR/TI specific), rather than doing anything with the covid-specific ca-dph that already existed

No longer blocked by CADPH API key setup:

Definition of Done

Research Questions

Decisions

Notes

jherrflexion commented 3 months ago

Notion doc: https://www.notion.so/flexion-cdc-ti/Prod-Setup-c44be771f74242069909ae16c3a77039

somesylvie commented 3 months ago

Code is merged, but unable to deploy because someone changed permissions for our github deployer. We're blocked on deploying to staging and prod, and thus also blocked from updating the keyvault secrets until this is resolved

scleary1cs commented 2 months ago

Looks like we have the information to reset the "third" SFTP account password:

Please have them go to https://selfservice.cdph.ca.gov Click "Reset Password" on the left-hand side Enter the username TESTFlexionUCSDSS01, leave domain as External Partner, enter characters and click Continue Follow the steps to create a new password. Please have them bookmark this site. Passwords expire after 90 days.

@somesylvie can we pair on this? Want to make sure this gets captured in Keybase.

scleary1cs commented 2 months ago

TESTFlexionUCSDSS01 password has been reset and added to keybase.

scleary1cs commented 2 months ago

keybase://team/cdc_ti/secrets_to_access_partner_services/CA/cdph-sftp-nonprod-credentials.txt

scleary1cs commented 2 months ago

New keys sent to Sumitha:

Sumitha, We've posted updated keys in RSA format. Please let us know if they work for you/Lauren.

Path to the files for each account: /Home/CDPH-SIS-Staging/HIE-Staging/UCSD

scleary1cs commented 2 months ago

Follow up poke sent to Sumitha on 08/23/24 at 2:40 PM EDT.

scleary1cs commented 2 months ago

Update request on UCSD - Secure Keys for SFTP sent to Jamie Matterson. Jamie will follow up with Sumitha regarding updated key pairs.

scleary1cs commented 2 months ago

Looks like the SSH keys are all set: Hi Shawn, I got confirmation from ITSD that the keys were added successfully to the respective service accounts. We should be all set. Thanks Sumitha

scleary1cs commented 2 months ago

Sumitha/Jamie, We are seeing some odd behavior. We are able to log in to both production and staging accounts using the keys we shared, another key, and also no key. We were only expecting logins to work with the correct keys. Can you verify these security settings have been turned on? Best, Shawn

scleary1cs commented 2 months ago

From Sumitha:

Sambathkumar, Sumitha@CDPH Sumitha.Sambathkumar@cdph.ca.gov 12:32 PM (16 minutes ago) to Lauren@CDPH, me, cdc-ti, Jamie@CDPH

+Lauren,

Hi Lauren – can you please assist. See Shawn’s comment below. Is there something in addition we need to configure? Thanks Sumitha

jherrflexion commented 2 months ago

This is ready for merge. Hoping to test in Internal tomorrow.

jherrflexion commented 2 months ago

We are running into frequent issues uploading keys due to Azure Portal quirks. Specifically the whitespace and multiline pastes not being supported.

We've resorted to uploading the file into Teams, and using VIM to add the new line within Azure Portal.

jherrflexion commented 1 month ago

Tasks have been updated above. PR is merged. We plan to tackle a good chunk of the remaining work today.

jherrflexion commented 1 month ago

Production deploy and secrets are complete.

jherrflexion commented 1 month ago

Prod testing successful