Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Replace the runner allowlist with a runner role

648cd81bde97042f682a528ebb9ce6353b95bf3f · Keenan Nemetz · 1d ago · parent ea92d754

forge/identity/identity.go +4−2

@@ -552,6 +552,9 @@ func rewriteACLNames(tx *sql.Tx, raw string) (string, error) {
552 552 }
553 553 doc["entries"] = next
554 554 }
555 // The runner allowlist is retired, but a row written before the role
556 // migration can still carry ids, so they are rewritten too. Parse folds the
557 // names into the runner role on the next read.
555 558 if runners, ok := doc["runners"].([]any); ok {
556 559 for i, r := range runners {
557 560 if id, ok := r.(string); ok {
@@ -801,8 +804,7 @@ func (s *Store) InstanceRole(name string) access.Role {
801 804 }
802 805
803 806 // Active reports whether the account exists and has not been retired. Rules that
804 // outlive an account — an ACL entry, a runners-list membership, an approval — ask
805 // this before counting it.
807 // outlive an account — an ACL entry, an approval — ask this before counting it.
806 808 func (s *Store) Active(name string) bool {
807 809 snap := s.Snapshot()
808 810 if snap == nil {