Invalid Configuration: Missing Region when pushing global config

Ouverte
#2,591 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

  • #2938 par @mikeland73 — fermée sans fusion

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
aws, go
Domaine
cli, cloud

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Go
Étoiles
12.4k
Forks
358
Merge moyen
17 h 12 min
PR mergées (30 j)
31

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de jetify-com/devbox

Toutes les issues de jetify-com/devbox

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.