Limit GitHub sign-in and correct Coder release
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
- pushed
- by user · WAL seq 470 · 2026-08-27T05:36:15.803930Z
- built
- 8 modules in 124.1 s
- deployed
- live · 8 modules on 3 nodes · push→live —
- deployed
- needs_rolling_replace · 8 modules on 0 nodes · push→live —
Changed files
-
modified
config/config.exs -
modified
docs/github-auth-plan.md -
modified
docs/runtime-configuration.md -
modified
lib/openagents/accounts.ex -
modified
lib/openagents/github_oauth.ex -
modified
lib/openagents/runtime_config.ex -
modified
lib/openagents_web/components/ui.ex -
modified
lib/openagents_web/controllers/auth_controller.ex -
modified
lib/openagents_web/route_authority.ex -
modified
ops/deploy/fleet-startup.template.sh -
modified
ops/staging/gate-5-profile.sh -
modified
priv/docs/changelog.md -
modified
test/openagents/accounts_test.exs -
modified
test/openagents/github_oauth_test.exs -
modified
test/openagents/runtime_config_test.exs -
modified
test/openagents_web/auth_controller_test.exs -
modified
test/openagents_web/authenticated_route_gate_test.exs -
modified
test/openagents_web/controllers/data_controller_test.exs -
modified
test/openagents_web/controllers/repository_import_controller_test.exs -
modified
test/openagents_web/device_sign_in_return_test.exs -
modified
test/openagents_web/home_controller_test.exs -
modified
test/openagents_web/live/changelog_live_test.exs -
modified
test/openagents_web/live/repository_live_test.exs -
modified
test/openagents_web/route_authority_test.exs
Diff
24 files changed, +127 -91
config/config.exs modified +1 -1
docs/github-auth-plan.md modified +23 -31
@@ -8,40 +8,34 @@ Decision: [ADR 0004](decisions/0004-retain-scoped-github-access-tokens.md)
| 8 | 8 |
|
| 9 | 9 |
|
| 10 | 10 |
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 33 | 28 |
|
| 34 | 29 |
|
| 35 | 30 |
|
| 36 | 31 |
|
| 37 | 32 |
|
| 38 |
|
|
| 39 |
|
|
| 33 |
|
|
| 40 | 34 |
|
| 41 | 35 |
|
| 42 | 36 |
|
| 43 | 37 |
|
| 44 |
|
|
| 38 |
|
|
| 45 | 39 |
|
| 46 | 40 |
|
| 47 | 41 |
|
@@ -49,7 +43,7 @@ and [authorization guidance](https://docs.github.com/en/apps/oauth-apps/using-oa
| 49 | 43 |
|
| 50 | 44 |
|
| 51 | 45 |
|
| 52 |
|
|
| 46 |
|
|
| 53 | 47 |
|
| 54 | 48 |
|
| 55 | 49 |
|
@@ -80,11 +74,9 @@ Production-mode validation requires an HTTPS callback with the configured
| 80 | 74 |
|
| 81 | 75 |
|
| 82 | 76 |
|
| 83 |
|
|
| 84 |
|
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 88 | 80 |
|
| 89 | 81 |
|
| 90 | 82 |
|
docs/runtime-configuration.md modified +1 -1
@@ -150,7 +150,7 @@ arguments, repository URLs, receipts, or checked-in environment files.
| 150 | 150 |
|
| 151 | 151 |
|
| 152 | 152 |
|
| 153 |
|
|
| 153 |
|
|
| 154 | 154 |
|
| 155 | 155 |
|
| 156 | 156 |
|
lib/openagents/accounts.ex modified +1 -1
@@ -332,6 +332,6 @@ defmodule OpenAgents.Accounts do
| 332 | 332 |
|
| 333 | 333 |
|
| 334 | 334 |
|
| 335 |
|
|
| 335 |
|
|
| 336 | 336 |
|
| 337 | 337 |
|
lib/openagents/github_oauth.ex modified +7 -6
@@ -11,7 +11,8 @@ defmodule OpenAgents.GitHubOAuth do
| 11 | 11 |
|
| 12 | 12 |
|
| 13 | 13 |
|
| 14 |
|
|
| 14 |
|
|
| 15 |
|
|
| 15 | 16 |
|
| 16 | 17 |
|
| 17 | 18 |
|
@@ -107,13 +108,13 @@ defmodule OpenAgents.GitHubOAuth do
| 107 | 108 |
|
| 108 | 109 |
|
| 109 | 110 |
|
| 110 |
|
|
| 111 |
|
|
| 111 | 112 |
|
| 112 |
|
|
| 113 |
|
|
| 113 | 114 |
|
| 114 |
|
|
| 115 |
|
|
| 115 | 116 |
|
| 116 |
|
|
| 117 |
|
|
| 117 | 118 |
|
| 118 | 119 |
|
| 119 | 120 |
|
@@ -252,7 +253,7 @@ defmodule OpenAgents.GitHubOAuth do
| 252 | 253 |
|
| 253 | 254 |
|
| 254 | 255 |
|
| 255 |
|
|
| 256 |
|
|
| 256 | 257 |
|
| 257 | 258 |
|
| 258 | 259 |
|
lib/openagents/runtime_config.ex modified +2 -2
@@ -290,9 +290,9 @@ defmodule OpenAgents.RuntimeConfig do
| 290 | 290 |
|
| 291 | 291 |
|
| 292 | 292 |
|
| 293 |
|
|
| 293 |
|
|
| 294 | 294 |
|
| 295 |
|
|
| 295 |
|
|
| 296 | 296 |
|
| 297 | 297 |
|
| 298 | 298 |
|
lib/openagents_web/components/ui.ex modified +1 -1
@@ -1443,7 +1443,7 @@ defmodule OpenAgentsWeb.UI do
| 1443 | 1443 |
|
| 1444 | 1444 |
|
| 1445 | 1445 |
|
| 1446 |
|
|
| 1446 |
|
|
| 1447 | 1447 |
|
| 1448 | 1448 |
|
| 1449 | 1449 |
|
lib/openagents_web/controllers/auth_controller.ex modified +1 -3
@@ -6,7 +6,7 @@ defmodule OpenAgentsWeb.AuthController do
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 |
|
|
| 9 |
|
|
| 10 | 10 |
|
| 11 | 11 |
|
| 12 | 12 |
|
@@ -21,8 +21,6 @@ defmodule OpenAgentsWeb.AuthController do
| 21 | 21 |
|
| 22 | 22 |
|
| 23 | 23 |
|
| 24 |
|
|
| 25 |
|
|
| 26 | 24 |
|
| 27 | 25 |
|
| 28 | 26 |
|
ops/deploy/fleet-startup.template.sh modified +1 -2
@@ -59,7 +59,7 @@ export AI_GATEWAY_API_KEY="$(secret openagents-vercel-gateway-api-key)"
| 59 | 59 |
|
| 60 | 60 |
|
| 61 | 61 |
|
| 62 |
|
|
| 62 |
|
|
| 63 | 63 |
|
| 64 | 64 |
|
| 65 | 65 |
|
ops/staging/gate-5-profile.sh modified +1 -1
@@ -15,7 +15,7 @@ set -eu
| 15 | 15 |
|
| 16 | 16 |
|
| 17 | 17 |
|
| 18 |
|
|
| 18 |
|
|
| 19 | 19 |
|
| 20 | 20 |
|
| 21 | 21 |
|
priv/docs/changelog.md modified +3 -3
@@ -1,10 +1,10 @@
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 3 |
|
|
| 4 | 4 |
|
| 5 |
|
|
| 5 |
|
|
| 6 | 6 |
|
| 7 |
|
|
| 7 |
|
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 | 10 |
|
test/openagents/accounts_test.exs modified +8 -1
@@ -77,7 +77,7 @@ defmodule OpenAgents.AccountsTest do
| 77 | 77 |
|
| 78 | 78 |
|
| 79 | 79 |
|
| 80 |
|
|
| 80 |
|
|
| 81 | 81 |
|
| 82 | 82 |
|
| 83 | 83 |
|
@@ -93,6 +93,13 @@ defmodule OpenAgents.AccountsTest do
| 93 | 93 |
|
| 94 | 94 |
|
| 95 | 95 |
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 96 | 103 |
|
| 97 | 104 |
|
| 98 | 105 |
|
test/openagents/github_oauth_test.exs modified +9 -9
@@ -7,7 +7,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
|
|
| 10 |
|
|
| 11 | 11 |
|
| 12 | 12 |
|
| 13 | 13 |
|
@@ -22,7 +22,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
|
| 25 |
|
|
| 25 |
|
|
| 26 | 26 |
|
| 27 | 27 |
|
| 28 | 28 |
|
@@ -65,7 +65,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 65 | 65 |
|
| 66 | 66 |
|
| 67 | 67 |
|
| 68 |
|
|
| 68 |
|
|
| 69 | 69 |
|
| 70 | 70 |
|
| 71 | 71 |
|
@@ -84,7 +84,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 84 | 84 |
|
| 85 | 85 |
|
| 86 | 86 |
|
| 87 |
|
|
| 87 |
|
|
| 88 | 88 |
|
| 89 | 89 |
|
| 90 | 90 |
|
@@ -107,7 +107,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 107 | 107 |
|
| 108 | 108 |
|
| 109 | 109 |
|
| 110 |
|
|
| 110 |
|
|
| 111 | 111 |
|
| 112 | 112 |
|
| 113 | 113 |
|
@@ -140,7 +140,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 140 | 140 |
|
| 141 | 141 |
|
| 142 | 142 |
|
| 143 |
|
|
| 143 |
|
|
| 144 | 144 |
|
| 145 | 145 |
|
| 146 | 146 |
|
@@ -157,7 +157,7 @@ defmodule OpenAgents.GitHubOAuthTest do
| 157 | 157 |
|
| 158 | 158 |
|
| 159 | 159 |
|
| 160 |
|
|
| 160 |
|
|
| 161 | 161 |
|
| 162 | 162 |
|
| 163 | 163 |
|
@@ -172,9 +172,9 @@ defmodule OpenAgents.GitHubOAuthTest do
| 172 | 172 |
|
| 173 | 173 |
|
| 174 | 174 |
|
| 175 |
|
|
| 175 |
|
|
| 176 | 176 |
|
| 177 |
|
|
| 177 |
|
|
| 178 | 178 |
|
| 179 | 179 |
|
| 180 | 180 |
|
test/openagents/runtime_config_test.exs modified +9
@@ -45,6 +45,15 @@ defmodule OpenAgents.RuntimeConfigTest do
| 45 | 45 |
|
| 46 | 46 |
|
| 47 | 47 |
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 48 | 57 |
|
| 49 | 58 |
|
| 50 | 59 |
|
test/openagents_web/auth_controller_test.exs modified +7 -7
@@ -43,7 +43,7 @@ defmodule OpenAgentsWeb.AuthControllerTest do
| 43 | 43 |
|
| 44 | 44 |
|
| 45 | 45 |
|
| 46 |
|
|
| 46 |
|
|
| 47 | 47 |
|
| 48 | 48 |
|
| 49 | 49 |
|
@@ -99,15 +99,15 @@ defmodule OpenAgentsWeb.AuthControllerTest do
| 99 | 99 |
|
| 100 | 100 |
|
| 101 | 101 |
|
| 102 |
|
|
| 103 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 | 104 |
|
| 105 | 105 |
|
| 106 | 106 |
|
| 107 | 107 |
|
| 108 | 108 |
|
| 109 |
|
|
| 110 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 | 111 |
|
| 112 | 112 |
|
| 113 | 113 |
|
@@ -203,7 +203,7 @@ defmodule OpenAgentsWeb.AuthControllerTest do
| 203 | 203 |
|
| 204 | 204 |
|
| 205 | 205 |
|
| 206 |
|
|
| 206 |
|
|
| 207 | 207 |
|
| 208 | 208 |
|
| 209 | 209 |
|
test/openagents_web/authenticated_route_gate_test.exs modified +4 -3
@@ -18,9 +18,10 @@ defmodule OpenAgentsWeb.AuthenticatedRouteGateTest do
| 18 | 18 |
|
| 19 | 19 |
|
| 20 | 20 |
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 24 | 25 |
|
| 25 | 26 |
|
| 26 | 27 |
|
test/openagents_web/controllers/data_controller_test.exs modified +1 -1
@@ -134,7 +134,7 @@ defmodule OpenAgentsWeb.DataControllerTest do
| 134 | 134 |
|
| 135 | 135 |
|
| 136 | 136 |
|
| 137 |
|
|
| 137 |
|
|
| 138 | 138 |
|
| 139 | 139 |
|
| 140 | 140 |
|
test/openagents_web/controllers/repository_import_controller_test.exs modified +12 -8
@@ -1,7 +1,7 @@
| 1 | 1 |
|
| 2 | 2 |
|
| 3 | 3 |
|
| 4 |
|
|
| 4 |
|
|
| 5 | 5 |
|
| 6 | 6 |
|
| 7 | 7 |
|
@@ -19,7 +19,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 19 | 19 |
|
| 20 | 20 |
|
| 21 | 21 |
|
| 22 |
|
|
| 22 |
|
|
| 23 | 23 |
|
| 24 | 24 |
|
| 25 | 25 |
|
@@ -74,7 +74,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 74 | 74 |
|
| 75 | 75 |
|
| 76 | 76 |
|
| 77 |
|
|
| 77 |
|
|
| 78 | 78 |
|
| 79 | 79 |
|
| 80 | 80 |
|
@@ -92,7 +92,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 92 | 92 |
|
| 93 | 93 |
|
| 94 | 94 |
|
| 95 |
|
|
| 95 |
|
|
| 96 | 96 |
|
| 97 | 97 |
|
| 98 | 98 |
|
@@ -129,7 +129,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 129 | 129 |
|
| 130 | 130 |
|
| 131 | 131 |
|
| 132 |
|
|
| 132 |
|
|
| 133 | 133 |
|
| 134 | 134 |
|
| 135 | 135 |
|
@@ -156,7 +156,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 156 | 156 |
|
| 157 | 157 |
|
| 158 | 158 |
|
| 159 |
|
|
| 159 |
|
|
| 160 | 160 |
|
| 161 | 161 |
|
| 162 | 162 |
|
@@ -191,7 +191,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 191 | 191 |
|
| 192 | 192 |
|
| 193 | 193 |
|
| 194 |
|
|
| 194 |
|
|
| 195 | 195 |
|
| 196 | 196 |
|
| 197 | 197 |
|
@@ -209,7 +209,7 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 209 | 209 |
|
| 210 | 210 |
|
| 211 | 211 |
|
| 212 |
|
|
| 212 |
|
|
| 213 | 213 |
|
| 214 | 214 |
|
| 215 | 215 |
|
@@ -238,6 +238,10 @@ defmodule OpenAgentsWeb.RepositoryImportControllerTest do
| 238 | 238 |
|
| 239 | 239 |
|
| 240 | 240 |
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
|
| 241 | 245 |
|
| 242 | 246 |
|
| 243 | 247 |
|
test/openagents_web/device_sign_in_return_test.exs modified +4 -4
@@ -68,7 +68,7 @@ defmodule OpenAgentsWeb.DeviceSignInReturnTest do
| 68 | 68 |
|
| 69 | 69 |
|
| 70 | 70 |
|
| 71 |
|
|
| 71 |
|
|
| 72 | 72 |
|
| 73 | 73 |
|
| 74 | 74 |
|
@@ -109,7 +109,7 @@ defmodule OpenAgentsWeb.DeviceSignInReturnTest do
| 109 | 109 |
|
| 110 | 110 |
|
| 111 | 111 |
|
| 112 |
|
|
| 112 |
|
|
| 113 | 113 |
|
| 114 | 114 |
|
| 115 | 115 |
|
@@ -174,7 +174,7 @@ defmodule OpenAgentsWeb.DeviceSignInReturnTest do
| 174 | 174 |
|
| 175 | 175 |
|
| 176 | 176 |
|
| 177 |
|
|
| 177 |
|
|
| 178 | 178 |
|
| 179 | 179 |
|
| 180 | 180 |
|
test/openagents_web/home_controller_test.exs modified +1 -1
@@ -12,7 +12,7 @@ defmodule OpenAgentsWeb.HomeControllerTest do
| 12 | 12 |
|
| 13 | 13 |
|
| 14 | 14 |
|
| 15 |
|
|
| 15 |
|
|
| 16 | 16 |
|
| 17 | 17 |
|
| 18 | 18 |
|
test/openagents_web/live/changelog_live_test.exs modified +3 -2
@@ -32,10 +32,11 @@ defmodule OpenAgentsWeb.ChangelogLiveTest do
| 32 | 32 |
|
| 33 | 33 |
|
| 34 | 34 |
|
| 35 |
|
|
| 35 |
|
|
| 36 | 36 |
|
| 37 | 37 |
|
| 38 |
|
|
| 38 |
|
|
| 39 |
|
|
| 39 | 40 |
|
| 40 | 41 |
|
| 41 | 42 |
|
test/openagents_web/live/repository_live_test.exs modified +16 -2
@@ -250,7 +250,14 @@ defmodule OpenAgentsWeb.RepositoryLiveTest do
| 250 | 250 |
|
| 251 | 251 |
|
| 252 | 252 |
|
| 253 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 257 |
|
|
| 258 |
|
|
| 259 |
|
|
| 260 |
|
|
| 254 | 261 |
|
| 255 | 262 |
|
| 256 | 263 |
|
@@ -283,7 +290,14 @@ defmodule OpenAgentsWeb.RepositoryLiveTest do
| 283 | 290 |
|
| 284 | 291 |
|
| 285 | 292 |
|
| 286 |
|
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 287 | 301 |
|
| 288 | 302 |
|
| 289 | 303 |
|