Coordinator: adapter.configuration hides which binding, reference and rule failed
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 70/100
Piste de recherche
Start in crates/registry-coordinator/src/adapters.rs at config_error() and list its 24 call sites, grouping them by which of the five causes each one represents. Follow the secret-reference path (resolve, read as UTF-8, parse the JWK, build the endpoint) to see which binding name and runtime-file key are in scope at each site, and read the wording used in #1433 and #977. Done looks like one message per failure naming the binding, the key such as authorization.signingKeyRef, and a value-free cause, with a test per cause and no secret bytes printed.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
When a product binding cannot be built, Coordinator reports one message whatever the cause: adapter.configuration: product binding or secret-file configuration is invalid. It names neither the binding, the reference, nor the rule that failed.
Observed during the Stage 0 adopter run for #2745. coordinator serve on an example runtime file failed with that message. The cause was a missing private JWK file named by authorization.signingKeyRef. Finding it meant reading the runtime file against the secret root by hand.
Where it collapses
crates/registry-coordinator/src/adapters.rs defines config_error() and calls it from 24 sites with .map_err(|_| config_error()). These include:
- resolving the secret reference;
- reading it as UTF-8;
- parsing the private JWK;
- building the endpoint.
Proposal
Keep the adapter.configuration code. Make the message name:
- the connection or binding name;
- the runtime-file key, such as
authorization.signingKeyRef; - one value-free cause, from a small closed set: missing file, refused file (mode, ownership or link), not UTF-8, not a valid private JWK, or invalid endpoint.
Never print the secret bytes. Casework and BReg do the same through #1433 and #977, so reuse their wording.
Add a test per cause.
- Langage dominant
- Rust
- Étoiles
- 2
- Forks
- 0
- Merge moyen
- 9 h 48 min
- PR mergées (30 j)
- 151
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de registrystack/registry-stack
-
area:breg enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
registrystack/registry-stack#2765 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
registrystack/registry-stack#2761 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
registrystack/registry-stack#2743 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
registrystack/registry-stack#2706 ·
Les mainteneurs répondent en général sous 1 jour
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
registrystack/registry-stack#2704 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de registrystack/registry-stack
Issues similaires
-
[Bug] 建议把黑白主题设置同步到启动页面Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
stackabletech/airflow-operator#898 ·
Les mainteneurs répondent en général sous 1 jour
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Peut-être pris @zyl71 l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100