Skip to content

CD: get nirvai-core running locally again before continuing with remaining nomad & aws tickets #63

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

Closed
2 tasks done
noahehall opened this issue Dec 26, 2022 · 0 comments
Closed
2 tasks done

Comments

@noahehall
Copy link
Contributor

noahehall commented Dec 26, 2022

C

  • vault has been fully setup, and the stack is now zero trust in all environments
  • all the apps are running but vault controls authnz so nothin can authenticate with anything else

T

  • manual setup: walk through steps that will be automated later
    • exec into container and export bff approle secret id and role id json to container disk
      • it doesnt matter if the token is in a file or env, I chose a file because you wont need to manually restartrestart bff server
        • this is due to ESBUILD locking the process.env in nodejs runtime
      • all BFF nodejs servers now expect:
        • src/Data/Postgres/appRoleId.json
        • src/Data/Postgres/appRoleSecretId.json
          • nomad should request these and inject them for each instance of a nodejs bff server it launches
      • changes to nodemons.json
        • now watches .json files
      • changes to bff
        • switched to node-esbuild-tsc (was still using tsc to build)
        • now outputs ESM instead of fkn common js
        • pnpm add -D -E cpy as it keeps file hierarchy when cpying to dist
        • updated expected compose.env to match whats returned from vault
        • moved bff secrets from kv-v2 to kv-v1
          • bff will now { ...compose.env, ...vaultEnv } to overwrite env in other environments
      • changes to typescript (effects all typescript apps/packages) that extends from root/tsconfig.json
        • target: es2022 to match etsc.config.js
    • upsert docker compose convert into kv-v1 for BFF
      • upsert docker compose convert at kv1-api-endpoint/service-name {env file}
        - the service names are top level keys
        - not quite sure how this is gonna work in dev: the order of service instantiation is dynamic and should remain so to force a resiliant architecture; thus vault bootstrap event may or may not have access to the convert output
        - likely for a dev your just gonna have to run a script on a green environment
        - on deploy: nomad event occurs after the development cycle completes and has the full docker export + environment specific overrides

A

@noahehall noahehall added this to nirvai Dec 26, 2022
@noahehall noahehall converted this from a draft issue Dec 26, 2022
@noahehall noahehall changed the title CD: sync push docker compose convert env into vault CD: ingest docker compose convert into vault Dec 26, 2022
@noahehall noahehall changed the title CD: ingest docker compose convert into vault CD: ingest docker compose convert into vault instead of storing on disk Dec 26, 2022
@noahehall noahehall changed the title CD: ingest docker compose convert into vault instead of storing on disk CD: get app running again Dec 27, 2022
@noahehall noahehall changed the title CD: get app running again CD: get nirvai-core running again as a preq to finally fkn finishing nomad tickets Dec 27, 2022
@noahehall noahehall changed the title CD: get nirvai-core running again as a preq to finally fkn finishing nomad tickets CD: get nirvai-core running again as a preq to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane Dec 27, 2022
@noahehall noahehall changed the title CD: get nirvai-core running again as a preq to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane CD: get nirvai-core running again as a preq to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane... its been 3 weeks in the slow lane bro Dec 27, 2022
@noahehall noahehall changed the title CD: get nirvai-core running again as a preq to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane... its been 3 weeks in the slow lane bro CD: get nirvai-core running again as a pre-req to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane... its been 3 weeks in the slow lane bro Dec 27, 2022
@noahehall noahehall changed the title CD: get nirvai-core running again as a pre-req to finally finishing nomad tickets and getting out of the slow lane... im tired of the slow lane... its been 3 weeks in the slow lane bro CD: get nirvai-core running locally again as a pre-req to remaining nomad & aws tickets Dec 27, 2022
@noahehall noahehall changed the title CD: get nirvai-core running locally again as a pre-req to remaining nomad & aws tickets CD: get nirvai-core running locally again before continuing with remaining nomad & aws tickets Dec 28, 2022
@github-project-automation github-project-automation bot moved this from THE GROOVE to DEPLOYED in nirvai Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: DEPLOYED
Development

No branches or pull requests

1 participant