Page MenuHomePhabricator

[terraform] use identity 0.12 on prod
ClosedPublic

Authored by varun on Mar 11 2024, 11:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:49 PM
Unknown Object (File)
Thu, Apr 25, 12:48 PM
Unknown Object (File)
Sun, Mar 31, 5:43 PM
Unknown Object (File)
Mar 25 2024, 9:30 PM
Unknown Object (File)
Mar 20 2024, 8:30 PM
Unknown Object (File)
Mar 17 2024, 12:34 PM
Unknown Object (File)
Mar 17 2024, 9:13 AM
Unknown Object (File)
Mar 15 2024, 7:51 PM
Subscribers

Details

Summary

this is the same image as 0.12-staging, just re-tagged for prod. after this is approved i will run terraform apply.

Test Plan

tested this image extensively on staging last week.

after applying this change we can remove the access token and user ID from the production mariadb metadata table and restart the keyserver. the table should be repopulated with the same user ID and a new access token.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 11 2024, 12:08 PM

this is the same image as 0.12-staging, just re-tagged for prod.

Two questions:

  1. What's "retagging" mean and why was it necessary here?
  2. Is it possible to use the same image for both staging and prod, like we used to?
  1. What's "retagging" mean and why was it necessary here?

it means i ran docker tag commapp/identity-server:0.12-staging commapp/identity-server:0.12. i did it so that on prod, the image tag would appear as "0.12"

  1. Is it possible to use the same image for both staging and prod, like we used to?

0.12-staging and 0.12 are the same image. if you're asking if we can remove the ternary from line 2 and just have a single tag "0.12" for both, yes, we definitely can. realize i introduced a process change in D11260 without really discussing it... sorry about that

here's why i prefer this process, though:

  1. it's safer. assuming that devs remember to revert to master after testing local changes, we can make sure that things work on staging for a short period before we apply changes to prod. there's no good way to test landed changes for an extended period in the current process without running the risk of a) another dev undoing the changes while testing something on a custom tag or b) the changes being applied prematurely to prod
  2. we can see the delta between staging and prod clearly. before, it was possible for staging to be a few releases ahead of prod without any visibility. this is a good (albeit not perfect) forcing function to make sure we keep prod up to date with staging

lmk what you think. curious for @bartek and @will 's thoughts too

  1. it's safer. assuming that devs remember to revert to master after testing local changes, we can make sure that things work on staging for a short period before we apply changes to prod. there's no good way to test landed changes for an extended period in the current process without running the risk of a) another dev undoing the changes while testing something on a custom tag or b) the changes being applied prematurely to prod
  2. we can see the delta between staging and prod clearly. before, it was possible for staging to be a few releases ahead of prod without any visibility. this is a good (albeit not perfect) forcing function to make sure we keep prod up to date with staging

lmk what you think. curious for @bartek and @will 's thoughts too

I think this process makes sense to me. There were a few times where we ran into problems because production didn't reflect staging, so this would make the state of both explicit.

This revision is now accepted and ready to land.Mar 13 2024, 7:32 PM

I wasn't following this convention in my services (on which I was working mostly alone), except for Identity where you introduced it. @varun's reasoning makes sense to me, so if it's helpful for you, I'm not opposed to keeping it. Especially since now there are three of us working on Identity so it's good to keep things clear

This revision now requires review to proceed.Mar 15 2024, 12:47 PM
This revision is now accepted and ready to land.Mar 18 2024, 7:14 AM
This revision was automatically updated to reflect the committed changes.