gitea: a consumer's user is actually created, and a failed create says why
The builder's package-registry grant — the first this provider ever received — retried for a day saying only that an edit 404'd. Two faults under it: the API refuses an email without a dotted domain, so `@localhost` failed validation at create (the CLI that made mesh-admin accepts it, which is why the admin exists and no consumer did); and ensureUser read that 422 as 'already exists' and went on to edit a user that was never made, burying the create's own message. The address is now gitea's own hidden-address shape, and the edit path is taken only for a user that is actually there.
This commit is contained in:
@@ -34,7 +34,12 @@ runProvisioner("package-registry", {
|
||||
const teamId = await gitea.ensureTeam(ORG, PACKAGE_TEAM, true);
|
||||
// The user carries the consumer's login and the mesh's minted password, set every run so a
|
||||
// rotation takes. Membership of the package team is what grants read+write on packages.
|
||||
await gitea.ensureUser(p.as, p.password, `${p.as}@localhost`);
|
||||
//
|
||||
// The address is gitea's own convention for one that is not real: its email validation
|
||||
// requires a dotted domain, so `@localhost` was refused at create — the fault that had this
|
||||
// grant retrying for a day — while `@noreply.localhost` is the shape gitea itself gives
|
||||
// hidden addresses.
|
||||
await gitea.ensureUser(p.as, p.password, `${p.as}@noreply.localhost`);
|
||||
await gitea.addUserToTeam(teamId, p.as);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user