Identity carries the forge web address (forgeUrl), defaulted to https on the forge host #44
Labels
No labels
blocked
bug
decision
duplicate
enhancement
handoff
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/secrets#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Identity carries the forge's web address, so a dev VM's forge CLI can be pointed at a plain-http forge on the private network instead of assuming
https://on the forge host.Primary goals:
forgeUrl—identity.forgeUrlis the base URL theforgeCLI and any API client use,https://forge.anarch.diyin the template; the ssh host and port stay what they are, because clone transport and API transport differ.lib.devIdentities.<vm>.forgeUrlcarries it, besideforgeHostandforgePort, soallod/archetypescan render it into the VM.https://${forgeHost}, so no deployment has to edit its identity to take this.Current state and specifics
flake.nixbuildsdevIdentitiesfromidentity.username forgeHost forgePortand the per-VM record; nothing names a URL. TheforgeCLI inallod/toolsreadsFORGE_URLand otherwise defaults tohttps://forge.anarch.diy, which is right for the template's forge and wrong for a forge VM serving plain http on a private address (theforgemachine the templates now carry:allod/profileshosts/service/forge,tls = false, Caddy on port 80 at the guest's address). The README'slib.devIdentitiesrow lists the fields; it gains this one.Scope
In: the identity field in the template
identity.nix, the defaulted export inflake.nix, the README row, and the check. Out: rendering the value into a VM, which isallod/archetypes(the dev builder exportsFORGE_URL); and the install script's second run that writes the forge VM's address into a fork, which isallod/deploy.Part of allod/strategy#65
Landed on master by direct commit
24f69b3("identity: add forgeUrl, defaulted from forgeHost"); closing on the owner's instruction.Landed on master in commit
24f69b3: forgeUrl in identity.nix, exported with a default and checked in checks/forge-url.nix. Verified against the files on master today; closing as completed.