Move Azure client secrets out of .vscode/launch.json #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
.vscode/launch.jsoncontains live Azure AD credentials in plaintext under theenvblock of multiple launch configurations:CLIENT_IDCLIENT_SECRETCLIENT_SECRET_IDOBJECT_IDTENANT_IDNot urgent — the Codeberg repo is private and the GitHub mirror appears to be as well. But this is a latent footgun:
git logpreserves it even after removal, so rotation will be required eventually.Proposed fix
.envfile (project already usesgodotenv).launch.jsonvia"envFile": "${workspaceFolder}/.env"instead of the inlineenvblock..envto.gitignoreif not already there..env.exampletemplate with the keys but no values.When to rotate
Rotate the client secret in Azure AD before making either remote public, or if the repo is ever shared with a new collaborator.
Migrated from Codeberg: originally #2, opened 2026-04-18.