Invalid Configuration: Missing Region when pushing global config

Offen
#2,591 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #2938 von @mikeland73 — ohne Merge geschlossen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
aws, go
Bereich
cli, cloud

Rechercherichtung

The report identifies devbox global push and an AWS STS AssumeRoleWithWebIdentity failure, but does not name implementation files or tests. Start by tracing the global push command and its cloud authentication/STS setup, then look for tests covering that flow. Done means the reported missing-region failure is handled and the global push flow is verified; a related pull request is closed and unmerged.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug triage
What happened?

I tried to push my global config to a private git repo, this failed so setup a Jetify account, logged in with it on the devbox CLI and then tried to push:

devbox global push
Info: Pushing global config
Info: Logged in as sander@h*******.**m, pushing to to devbox cloud (profile: default)
Error: operation error STS: AssumeRoleWithWebIdentity, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region
Steps to reproduce
  1. devbox auth login
  2. sign up for an account
  3. devbox global push
Command

global

devbox.json
{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json",
  "packages": {
    "php": {
      "version": "8.2",
      "outputs": ["cli"]
    },
    "glibcLocales": "latest",
    "ripgrep":      "latest"
  },
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}
Devbox version

0.14.2

Nix version

nix (Nix) 2.24.12

What system does this bug occur on?

Linux (x86-64)

Debug logs
time=2025-04-21T14:01:02.217+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-04-21T14:01:02.217+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/sander/.local/share/devbox/global/default/devbox.json dur=165.328µs
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=php mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=glibcLocales mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=ripgrep mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/sander/.local/share/devbox/global/default/devbox.json dur=41.86µs
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=php mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=glibcLocales mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=ripgrep mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:91 msg="searching for config file (excluding parent directories)" path=/home/sander/.local/share/devbox/global/default
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=/home/sander/.local/share/devbox/global/default/devbox.json
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:96 msg="config file found" path=/home/sander/.local/share/devbox/global/default/devbox.json dur=46.089µs
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=php mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=glibcLocales mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=ripgrep mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.218+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
Info: Pushing global config
Info: Logged in as sander@h********.**m, pushing to to devbox cloud (profile: default)
Error: operation error STS: AssumeRoleWithWebIdentity, failed to resolve service endpoint, endpoint rule error, Invalid Configuration: Missing Region

time=2025-04-21T14:01:02.223+01:00 level=ERROR source=go.jetify.com/devbox/internal/boxcli/midcobra/debug.go:70 msg="command error" execid=0160fc9f7fc64a63986e5678a4bbbc5f stack=<nil>
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:126 msg="searching for config file (including parent directories)" path=.
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:147 msg="trying config file" path=devbox.json
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devconfig/config.go:134 msg="config file found" path=/home/sander/.local/share/devbox/global/default/devbox.json dur=55.179µs
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=php mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=glibcLocales mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg=ripgrep mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.223+01:00 level=DEBUG source=go.jetify.com/devbox/internal/devpkg/package.go:204 msg="package doesn't need patching" pkg="" mode=auto
time=2025-04-21T14:01:02.233+01:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug"
time=2025-04-21T14:01:02.249+01:00 level=DEBUG source=go.jetify.com/devbox/nix/nix.go:143 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' --version --debug" cmd.path=/usr/bin/nix cmd.pid=80127 cmd.code=0 cmd.dur=16.19921ms

Vorherrschende Sprache
Go
Sterne
12.4k
Forks
358
Ø Merge
17 Std. 12 Min.
Gemergte PRs (30 T.)
31

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus jetify-com/devbox

Alle Issues in jetify-com/devbox

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.