Stop injecting GitHub OAuth credentials into ord-interface - #38
Merged
Conversation
The Flask editor was the only consumer of GH_CLIENT_ID/GH_CLIENT_SECRET, and it is gone from ord-interface as of open-reaction-database/ord-interface#172. The task definition no longer needs them, the execution role no longer needs read access to the secret, and the `github-client` secret itself has no remaining reader. Applied to prod already: the running task exposes only POSTGRES_PASSWORD and ANTHROPIC_API_KEY, and the secret is in its 30-day recovery window. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Flask editor was the only consumer of
GH_CLIENT_ID/GH_CLIENT_SECRET, and it is gone from ord-interface as of open-reaction-database/ord-interface#172. This drops the wiring that kept feeding them to the service:github-clientSecrets Manager secret,secret_arns, which is what granted the execution role permission to read it,TaskDefinitionSecretArgsentries that injected the values into the container.Already applied to prod
This was deployed before the PR — the running service was still handing GitHub OAuth credentials to an image that no longer has anything to do with them, and that is what "shut off editor access" meant in practice. This PR is the code catching up to the deployed state, so a future
pulumi upfrom a clean checkout doesn't re-create the secret and re-add the injections.State after the deploy (
pulumi up, 7m37s, no errors):service-8b52d386:1, imagesha256:0ea4c026…, built from ord-interfacemainatd5e6981.POSTGRES_PASSWORDandANTHROPIC_API_KEYonly.execution_role_secretspolicy narrowed to the remaining two ARNs.COMPLETED, one task running.github-clientdeleted with the default 30-day recovery window (restorable until ~2026-09-03).Test plan
pulumi previewshowed exactly the four intended changes and nothing elsepulumi upsucceeded; rollout reachedCOMPLETEDwith one healthy taskaws ecs describe-task-definitionon the live task lists onlyPOSTGRES_PASSWORDandANTHROPIC_API_KEYopen-reaction-database.org—/,/browse,/search,/about,/api/datasetsall 200/editor,/editor/,/editor/foo,/editor/healthcheckall301tohttps://app.open-reaction-database.org/;/editorxstill falls through to the SPAFollow-up
The GitHub OAuth app behind those credentials still exists and should be deleted from the org's developer settings; that can't be done from here.
🤖 Generated with Claude Code
Greptile Summary
This PR aligns the interface stack with the already-deployed production state by removing obsolete GitHub OAuth credentials.
github-clientSecrets Manager resource.GH_CLIENT_IDandGH_CLIENT_SECRETinto the interface container.Confidence Score: 5/5
The PR appears safe to merge, with no actionable defects identified in the credential-removal path.
The removed secret and environment variables have no remaining repository consumers, and the change consistently removes resource creation, execution-role access, and container injection.
Important Files Changed
Reviews (1): Last reviewed commit: "Stop injecting GitHub OAuth credentials ..." | Re-trigger Greptile