Push from dev to forge with a short-lived JWT instead of a stored token #6
Labels
No labels
area/api
area/auth
area/files
area/infra
area/mail
area/provisioning
area/testing
area/ui
area/web
kind
bug
kind
chore
kind
decision
kind
docs
kind
epic
kind
feature
kind
security
priority
high
priority
low
priority
medium
status/blocked
status/needs-decision
status/upstreamable
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
konbi/infra#6
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?
Dev's
publish-image.ymlpushes with a long-livedFORGEJO_PACKAGE_TOKEN. Authorized integrations (Generic JWT) can accept a JWT issued by dev's Actions: on forge, issuerhttps://git.dev.konbi.cc/api/actions, claim rules onrepository_owner,repository_nameandref(main,konbi*/CORE-*tags), scopewrite:packageonly, owned by a dedicated non-admin account. Dev workflow needsenable-openid-connect: true. Fallback: awrite:packagetoken limited to that account.Manual: user/api/authorized-integrations.
Context: forge.konbi.cc is a small public distribution server (source and images). Everything is built on dev.konbi.cc and pushed here; customer VPSes install from here.
CI: replace FORGEJO_PACKAGE_TOKEN with an Authorized Integrationto Push from dev to forge with a short-lived JWT instead of a stored token