Skip to content

Commit

Permalink
Add configuration for dev frontend and dev database deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu committed Sep 28, 2023
1 parent deae7d1 commit 4c0ff18
Show file tree
Hide file tree
Showing 8 changed files with 4,953 additions and 68 deletions.
12 changes: 6 additions & 6 deletions cmd/server/configs/secrets/dev.enc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"postgres": {
"host": "ENC[AES256_GCM,data:R6ryvg==,iv:Jls4J7v8kqSxYfVj6fP2j4a2NutpkXzlpye8grUxD6g=,tag:KNf7smmVEhLXpQ1+Fy7WHA==,type:str]",
"host": "ENC[AES256_GCM,data:moP2pLR50SHVOdv0wBqPydCS/KDsk5FbtXF8DxLPC2AAUeMCwtFe,iv:G77hDu6ErGQbkoeCa20a8tRE/sWzxhF65xMVEzMWqK4=,tag:4KRgM2Z0GsHpH7YerDif5Q==,type:str]",
"port": "ENC[AES256_GCM,data:skT9aQ==,iv:Gz9pmCpHgy+JH5Ci94uGRtXsmje9JzBwrGqkW0STp3Y=,tag:kbkTss6yxP2a3a3IgutSTA==,type:float]",
"database": "ENC[AES256_GCM,data:fOstsg==,iv:G2XKgd2e+WPY9SpiEev9Ph/MlfBFS6I2B5GAJvhfjkI=,tag:YKeaJ/vDzCoNW6h/2sFUIw==,type:str]",
"user": "ENC[AES256_GCM,data:o1dabw==,iv:1fa701v4Z2e2sEciKBYTjEoUGF2tA/tkTpS2XdQILD8=,tag:mOamJoC66d9lJ3bJwJr7Ag==,type:str]",
"password": "ENC[AES256_GCM,data:bwiCrg==,iv:PYp7H7Ak3fq4KH+eaFOBT5ua1QU//CR/GhhPBWo+Deo=,tag:ARGFNYO8U+mo+HGRXg4F3A==,type:str]"
"database": "ENC[AES256_GCM,data:SYHjqiKBeGE=,iv:vRlYNIf8kMLK8Z5ddNM8NDmE/T1wwIaJV+B5e4i2UpM=,tag:BcinsXQuZs1Sh9/hnt+mng==,type:str]",
"user": "ENC[AES256_GCM,data:a6fPleEa8tY=,iv:ewO3yf+x7aksU/V5wyQjMzLpZPgpjn932sQLTYj9a6U=,tag:htFolWKEyhBeaD1NOTBn2g==,type:str]",
"password": "ENC[AES256_GCM,data:Szzn06pXwIoHRoiv1Q3DX3OhJzMiFdXQ,iv:Gs8dJgWJPuHX6Qo6jjB7NIqIH8YdHT6yq3Hz5DxdpSA=,tag:xOAcySdCcaE5eWJG8riQrw==,type:str]"
},
"auth_public_key": {
"id": "ENC[AES256_GCM,data:aWwgJbWEvxHaIw==,iv:y+jk9yzidCA98zHlif41y8ukJl+FrJnqm5aucT2S2c8=,tag:jqq/ITKkW1+vs8Dysgu9eQ==,type:str]",
Expand All @@ -24,8 +24,8 @@
],
"hc_vault": null,
"age": null,
"lastmodified": "2023-09-21T19:40:54Z",
"mac": "ENC[AES256_GCM,data:ucrGeR27GEE5+94I3UT3TZ8Gk11LqkquJDLyIlzffcXywHSohh5O++1eCoh0VQYupLQ/w82Nb5O9RAY+lsuuYHRiiEHE4T99QN3dBEIZYFs+5N/3mDeBbTbURmieW6v2ynp+qCG0tdqHXzVewGsNr0GP5RIQ/8cSugCPeSDV8GY=,iv:Y757oxrtj0Gk8rw8shqV4JVLewbxUMaEXKxwt5sXusw=,tag:qLyNkjMDlMtGb/AaDU+gIQ==,type:str]",
"lastmodified": "2023-09-27T00:07:19Z",
"mac": "ENC[AES256_GCM,data:oRluXqBgmh6rbq+cDMqxhgblsnn3Okyftx0DJEUKkyuTfM+jaJMuvxY50QL34Ko7zugAT8ufAiAn8CelOQ7FMtoruKPrOzgi5mYVsMiSYxAznVxEXShQ3xGP4Lg1Uph1H19TdmWmRUKNXdAa6B2tvgAgf9eyXjpZxwHPLeTMQG8=,iv:QmlRukwboc/Hgqw4tf1FDfnLnLJVJrVAdwiUVhWJgMY=,tag:VRgpdWZflsWabc6MozZBmQ==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.7.3"
Expand Down
2 changes: 1 addition & 1 deletion frontend/composables/useMSAL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const useMSAL = async (): Promise<MSAL> => {
const selectAccount = async (): Promise<void> => {
if (accounts.value.length < 1) {
// TODO: Figure out how to handle this scenario
console.log('multiple accounts found', accounts.value)
} else if (accounts.value.length > 1) {
/**
* Due to the way MSAL caches account objects, the auth response from initiating a user-flow
Expand All @@ -66,6 +65,7 @@ export const useMSAL = async (): Promise<MSAL> => {
setAccount(filteredAccounts[0])
} else {
// Multiple users detected. Logout all to be safe.
console.log('multiple accounts found, logging out', accounts.value)
await signOut()
}
} else if (filteredAccounts.length === 1) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/envs/env.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
AUTH_SERVER_URL=http://auth.dev.rmi.siliconally.dev
AUTH_SERVER_URL=https://auth-api.dev.rmi.siliconally.dev
API_SERVER_URL=https://pacta-api.dev.rmi.siliconally.dev

MSAL_USER_FLOW_NAME=B2C_1_susi_dev
MSAL_USER_FLOW_AUTHORITY=https://rmiauthdev.b2clogin.com/rmiauthdev.onmicrosoft.com/B2C_1_susi_dev
MSAL_AUTHORITY_DOMAIN=rmiauthdev.b2clogin.com
MSAL_CLIENT_ID=65dd8671-471c-48c8-9d79-cdd51c003fba
MSAL_CLIENT_ID=218f47ee-11b1-459a-b914-b7fa6f107e7b
MSAL_REDIRECT_URI=https://pacta.dev.rmi.siliconally.dev
Loading

0 comments on commit 4c0ff18

Please sign in to comment.