Skip to content

Normalize Switchio Key Vault secrets #3965

Description

@thekaveman

We have this TODO note in SwitchioConfig.client_certificate_data:

def client_certificate_data(self):
"""This SwitchioConfig's client certificate as a string."""
if self.environment == Environment.DEV.value:
# Special case to handle un-purgeable cert in Azure dev env Key Vault with the desired `switchio-client-cert` name
# See: https://cal-itp.slack.com/archives/C037Y3UE71P/p1776806316220499
# Also affects local setup using standard fixtures with secrets
# TODO: Remove this special case when the deleted cert is automatically purged on July 20, 2026
return get_secret_by_name("switchio-int-client-cert")
return get_secret_by_name("switchio-client-cert")

Today is August 7, 2026 and I can confirm the switchio-client-cert certificate has been purged from the dev Key Vault:

Image

Hence, we can now clean up this code and normalize the cert secrets in the dev Key Vault to match what we do in the test and prod Key Vaults.

Acceptance Criteria

  • The secret switchio-int-client-cert is renamed to the standard switchio-client-cert naming convention
  • The special case code shown above for switchio-int-client-cert is removed
  • TBD there may be some more secret cleanup, needs more research

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    back-endDjango views, sessions, middleware, models, migrations etc.choreInternal maintenance or code quality workinfrastructureTerraform, Azure, etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions