gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc3d95b6ec3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mrec3d95b6e/lib/repos.hl

20.8 KB

  1. // lib/repos.hl — THE REPOS (ticket gitoria#6). A repo is a SLUG that is unique in the whole system;
  2. // it lives at <slug>.<domain> (util.hl repoOrigin). One hl:mpackdb table, storage/mpackdb/repos.db:
  3. // pk @id index !slug, owner { slug, title (optional display name), description, owner (users @id), created, branch (the main branch; '' / absent = default),
  4. // tktKey, tktProject, tktTitle, tktApi (the connected tickets project, gitoria#18; the key is a secret and never leaves the server) }
  5. // The unique index makes the slug unique for good (a second put of a taken slug fails); slugError (repos-helpers.hl)
  6. // answers it in words first. A new repo also gets an empty bare git repository (git.hl initRepo).
  7. // Every write to the table is here. The slug's rules, the row a page shows, the Markdown view: repos-helpers.hl.
  8. import { MPackDB } from 'hl:mpackdb'
  9. import { run } from 'hl:proc'
  10. import { now } from 'hl:time'
  11. import { NL, storageDir, countOfList, firstOf, plainError, newestFirst } from './util.hl'
  12. import { userOfSession, userRecord, userIdOfSession, nameOfUser, usersByName, userForMember } from './users.hl'
  13. import { repoOrigin, slugOfHost } from './util.hl'
  14. import { slugOfRequest } from './orgs.hl'
  15. import { slugError, fullNameError, rowOf, withChange, addressFromName } from './repos-helpers.hl'
  16. import { initRepo, repoDir, gitRoot } from './git.hl'
  17. import { writeFile, remove, exists, mkDir } from 'hl:fs'
  18. import { orgBySlug, putOrg, setOrgPriv, allOrgs, saveOrgTitle } from './orgs.hl'
  19. import { refOfRepo, refOfOrg, isMember, memberIds, addMember, removeMember, moveMembers } from './members.hl'
  20. import { forwardOf, movedForwards } from './forwards.hl'
  21. static reposTable = new MPackDB(file = storageDir + '/repos.db', primaryKey = '@id', indexes = ['!slug', 'owner'])
  22. // ---- WHO SEES WHAT (GO34): a repo is private by its own flag or because its organization is; the owner, the organization's owner and the
  23. // members (of the repo or of the organization) see and push; everybody else gets the answer for a name that does not exist.
  24. static isPrivateRepo = (r) => {
  25. if (r.priv == true) { return true }
  26. if (r.org != null && r.org != '') {
  27. o = orgBySlug(r.org)
  28. return o != null && o.priv == true
  29. }
  30. return false
  31. }
  32. static mayRead = (userId, r) => {
  33. if (!isPrivateRepo(r)) { return true }
  34. return isInside(userId, r)
  35. }
  36. // owner / organization owner / member of the repo or of its organization
  37. static isInside = (userId, r) => {
  38. if (userId == null) { return false }
  39. if (r.owner == userId) { return true }
  40. if (isMember(refOfRepo(r.slug), userId)) { return true }
  41. if (r.org != null && r.org != '') {
  42. o = orgBySlug(r.org)
  43. return o != null && (o.owner == userId || isMember(refOfOrg(r.org), userId))
  44. }
  45. return false
  46. }
  47. static repoBySlug = (slug) => {
  48. if (slug == null || hlTypeName(slug) != 'String' || slug == '') { return null }
  49. return firstOf(reposTable.find('slug', slug))
  50. }
  51. // the repo for a viewer (a users @id or null): the record, or null when it does not exist or the viewer may not see it
  52. static repoFor = (slug, userId) => {
  53. r = repoBySlug(slug)
  54. return r != null && mayRead(userId, r) ? r : null
  55. }
  56. // every repo the viewer may see, newest first
  57. static repoRows = (userId) => {
  58. out = []
  59. all = reposTable.find(null, null)
  60. if (countOfList(all) == 0) { return out }
  61. for (r of all) { if (mayRead(userId, r)) { out.push(rowOf(r, isPrivateRepo(r))) } }
  62. return newestFirst(out)
  63. }
  64. static repoRow = (slug, userId) => {
  65. r = repoFor(slug, userId)
  66. return r == null ? null : rowOf(r, isPrivateRepo(r))
  67. }
  68. // the repos of one organization the viewer may see, newest first
  69. static orgRepoRows = (org, userId) => {
  70. out = []
  71. for (x of repoRows(userId)) { if (x.org == org) { out.push(x) } }
  72. return out
  73. }
  74. // the repo a page stands on (orgs.hl slugOfRequest): its row for this session's viewer, or null for the main address / an unknown or invisible address
  75. static repoAt = (slug, session) => {
  76. if (slug == null || slug == '' || fullNameError(slug) != null) { return null }
  77. return repoRow(slug, userIdOfSession(session))
  78. }
  79. // the organizations the viewer may see (a private one: its owner and members), newest first; each row is keyed by @id (the orgs table's id)
  80. static orgRows = (userId) => {
  81. out = []
  82. for (o of allOrgs()) {
  83. if (o.priv != true || o.owner == userId || isMember(refOfOrg(o.slug), userId)) { out.push(orgRowOf(o)) }
  84. }
  85. return newestFirst(out)
  86. }
  87. // an organization for a viewer: the record or null (a private one is invisible to others)
  88. static orgFor = (slug, userId) => {
  89. o = orgBySlug(slug)
  90. if (o == null) { return null }
  91. if (o.priv != true || (userId != null && (o.owner == userId || isMember(refOfOrg(slug), userId)))) { return o }
  92. // somebody who was added to ONE repo of a private organization reaches that repo through the organization's address (the organization's page then lists only what they may see)
  93. if (userId != null) {
  94. all = reposTable.find(null, null)
  95. if (countOfList(all) > 0) { for (r of all) { if (r.org == slug && mayRead(userId, r)) { return o } } }
  96. }
  97. return null
  98. }
  99. // does this name already stand for an organization or a top-level repo? (one namespace: both are subdomains)
  100. static nameTaken = (name) => { return orgBySlug(name) != null || repoBySlug(name) != null || forwardOf(name) != null }
  101. // a new organization for a user: { org } or { error }
  102. static createOrg = (userId, slug, priv, String title = '') => {
  103. u = userRecord(userId)
  104. if (u == null) { return { error = 'log in with ident (top right) first' } }
  105. if (u.name == '') { return { error = 'choose a display name first (top of the page)' } }
  106. t = title == null ? '' : ('' + title).trim()
  107. tbad = plainError(t, 80, 'the name')
  108. if (tbad != null) { return { error = tbad } }
  109. address = slug == null ? '' : ('' + slug).trim()
  110. s = address == '' ? addressFromName(t) : address
  111. bad = slugError(s)
  112. if (bad != null) { return { error = bad } }
  113. if (nameTaken(s)) { return { error = "the address '" + s + "' is taken — organizations and repositories share their addresses" } }
  114. o = putOrg(s, u.id, priv == true, t)
  115. if (o == null) { return { error = 'could not store the organization' } }
  116. return { org = orgRowOf(o) }
  117. }
  118. // may this user create a repo in the organization / push to its repos?
  119. static mayUseOrg = (userId, o) => {
  120. return userId != null && (o.owner == userId || isMember(refOfOrg(o.slug), userId))
  121. }
  122. // a new repo for a user: { repo } (the row) or { error, field }. `org` = '' or an organization the user belongs to; `priv` = private
  123. static createRepoIn = (userId, org, slug, description, priv, members = null, String title = '') => {
  124. u = userRecord(userId)
  125. if (u == null) { return { error = 'log in with ident (top right) to create a repository' field = '' } }
  126. if (u.name == '') { return { error = 'choose a display name first (top of the page)' field = '' } }
  127. t = title == null ? '' : ('' + title).trim()
  128. tbad = plainError(t, 80, 'the name')
  129. if (tbad != null) { return { error = tbad field = 'title' } }
  130. address = slug == null ? '' : ('' + slug).trim()
  131. s = address == '' ? addressFromName(t) : address
  132. og = org == null ? '' : ('' + org).trim()
  133. bad = slugError(s)
  134. if (bad != null) { return { error = bad field = 'slug' } }
  135. d = description == null ? '' : ('' + description).trim()
  136. dbad = plainError(d, 200, 'the description')
  137. if (dbad != null) { return { error = dbad field = 'description' } }
  138. let full = s
  139. if (og != '') {
  140. o = orgBySlug(og)
  141. if (o == null || !mayUseOrg(u.id, o)) { return { error = 'no such organization (or you are not in it)' field = 'org' status = 403 } }
  142. full = fullNameError(og + '/' + s) == null ? og + '/' + s : ''
  143. if (full == '') { return { error = fullNameError(og + '/' + s) field = 'slug' } }
  144. } else if (nameTaken(s)) {
  145. return { error = "the address '" + s + "' is taken — every repository address is unique in the whole system" field = 'slug' status = 409 }
  146. }
  147. if (repoBySlug(full) != null || forwardOf(full) != null) { return { error = "the address '" + full + "' is taken — every repository address is unique in the whole system" field = 'slug' status = 409 } }
  148. // Resolve the entire member list before writing a repo row or initializing git.
  149. memberUsers = []
  150. if (members != null) {
  151. if (hlTypeName(members) != 'Hybrid' || members.length == null) { return { error = 'members must be a list' field = 'members' } }
  152. for (name of members) {
  153. uid = userForMember(name)
  154. if (uid == null) { return { error = 'every member must name exactly one known user or identity short id' field = 'members' } }
  155. if (!memberUsers.includes(uid)) { memberUsers.push(uid) }
  156. }
  157. }
  158. id = reposTable.put({ slug = full title = t description = d owner = u.id created = now() org = og priv = priv == true })
  159. if (id == null) { return { error = 'could not store the repository (is the address taken?): ' + reposTable.lastError() field = 'slug' } }
  160. initRepo(full)
  161. for (uid of memberUsers) {
  162. if (!addMember(refOfRepo(full), uid)) { return { error = 'could not add the member' field = 'members' status = 500 } }
  163. }
  164. r = reposTable.fetch(id)
  165. row = rowOf(r, isPrivateRepo(r))
  166. emit client repoCreated(row)
  167. return { repo = row }
  168. }
  169. // the old call: a public top-level repo
  170. static createRepo = (userId, slug, description) => { return createRepoIn(userId, '', slug, description, false) }
  171. // ---- visibility and members (the owner of the repo / the organization) ----------------------------------------------------
  172. static setRepoPriv = (userId, slug, priv) => {
  173. r = repoFor(slug, userId)
  174. if (r == null) { return { error = 'no such repository' } }
  175. if (userId == null || r.owner != userId) { return { error = 'only the owner can change this' } }
  176. reposTable.update(r.id, withChange(r, { priv = priv == true }))
  177. after = reposTable.fetch(r.id)
  178. if (after == null || (after.priv == true) != (priv == true)) { return { error = 'could not store the setting: ' + reposTable.lastError() } }
  179. return { repo = rowOf(after, isPrivateRepo(after)) }
  180. }
  181. static setOrgPrivate = (userId, org, priv) => {
  182. o = orgFor(org, userId)
  183. if (o == null) { return { error = 'no such organization' } }
  184. if (userId == null || o.owner != userId) { return { error = 'only the owner can change this' } }
  185. if (!setOrgPriv(o, priv == true)) { return { error = 'could not store the setting' } }
  186. return { ok = true }
  187. }
  188. // the member list of a repo ('r') or an organization ('o'): [{ id, name }] for its owner
  189. static membersOf = (kind, slug, userId) => {
  190. let ref = ''
  191. if (kind == 'r') {
  192. r = repoFor(slug, userId)
  193. if (r == null || r.owner != userId) { return { error = 'only the owner can see this' } }
  194. ref = refOfRepo(slug)
  195. } else {
  196. o = orgFor(slug, userId)
  197. if (o == null || o.owner != userId) { return { error = 'only the owner can see this' } }
  198. ref = refOfOrg(slug)
  199. }
  200. out = []
  201. for (uid of memberIds(ref)) { out.push({ id = uid name = nameOfUser(uid) }) }
  202. return { members = out }
  203. }
  204. // add (add = true) or remove a member by display name; the owner only
  205. static changeMember = (userId, kind, slug, name, add) => {
  206. let ref = ''
  207. if (kind == 'r') {
  208. r = repoFor(slug, userId)
  209. if (r == null || r.owner != userId) { return { error = 'only the owner can change this' } }
  210. ref = refOfRepo(slug)
  211. } else {
  212. o = orgFor(slug, userId)
  213. if (o == null || o.owner != userId) { return { error = 'only the owner can change this' } }
  214. ref = refOfOrg(slug)
  215. }
  216. n = name == null ? '' : ('' + name).trim()
  217. found = usersByName(n)
  218. if (found.length == 0) { return { error = "nobody is called '" + n + "' (people choose their display name at their first login)" } }
  219. if (found.length > 1) { return { error = "more than one person is called '" + n + "'" } }
  220. ok = add ? addMember(ref, found[0]) : removeMember(ref, found[0])
  221. if (!ok) { return { error = add ? 'could not add the member' : 'that person is not on the list' } }
  222. return membersOf(kind, slug, userId)
  223. }
  224. // does this (real) session's user own the repo?
  225. static ownsRepo = (slug, session) => {
  226. u = userOfSession(session)
  227. row = repoBySlug(slug)
  228. return u != null && row != null && row.owner == u.id
  229. }
  230. // MAY THIS USER PUSH? Only the repo's owner (a known user) — over HTTPS (transport.hl, the token's user) and over SSH
  231. // (lib/api.hl gitAccess, the key's user). Reading is everyone's.
  232. static mayPush = (userId, repo) => { return userRecord(userId) != null && isInside(userId, repo) }
  233. // the connection to a tickets project (gitoria#18); key '' = disconnected. The caller checked the owner.
  234. static setTicketsConnection = (slug, key, project, title, api) => {
  235. r = repoBySlug(slug)
  236. if (r == null) { return { error = 'no such repository' } }
  237. reposTable.update(r.id, withChange(r, { tktKey = key tktProject = project tktTitle = title tktApi = api }))
  238. after = reposTable.fetch(r.id)
  239. if (after == null || after.tktKey != key) { return { error = 'could not store the connection: ' + reposTable.lastError() } }
  240. return { repo = rowOf(after, isPrivateRepo(after)) }
  241. }
  242. // the owner's setting of the main branch (/code, the homepage). The caller checked the branch exists.
  243. static setMainBranch = (userId, slug, name) => {
  244. r = repoBySlug(slug)
  245. if (r == null) { return { error = 'no such repository' } }
  246. if (userId == null || r.owner != userId) { return { error = 'only the owner can change the main branch' } }
  247. reposTable.update(r.id, withChange(r, { branch = name }))
  248. after = reposTable.fetch(r.id)
  249. if (after == null || after.branch != name) { return { error = 'could not store the setting: ' + reposTable.lastError() } }
  250. syncProtect(after)
  251. return { repo = rowOf(after, isPrivateRepo(after)) }
  252. }
  253. // REFUSE DIRECT PUSHES TO THE MAIN BRANCH (gitoria#50): the owner's switch. The server enforces it where a push is accepted: docker/sshd/hooks/pre-receive
  254. // (core.hooksPath for HTTPS in transport.hl and for ssh in gitoria-shell) reads <repo>.git/gitoria-protect = the branch name (the PR target setting, else `main`).
  255. // No file = off. Merges done by gitoria itself (update-ref) are not pushes. Written here when the switch or the main branch changes.
  256. static syncProtect = (r) => {
  257. f = repoDir(r.slug) + '/gitoria-protect'
  258. if (r.protect == true) { writeFile(f, (r.branch != null && r.branch != '' ? r.branch : 'main') + NL, 420) }
  259. else if (exists(f)) { remove(f) }
  260. return null
  261. }
  262. static isProtectedMain = (slug) => {
  263. r = repoBySlug(slug)
  264. return r != null && r.protect == true
  265. }
  266. static setProtectMain = (userId, slug, wanted) => {
  267. r = repoBySlug(slug)
  268. if (r == null) { return { error = 'no such repository' } }
  269. if (userId == null || r.owner != userId) { return { error = 'only the owner can change this' } }
  270. reposTable.update(r.id, withChange(r, { protect = wanted == true }))
  271. after = reposTable.fetch(r.id)
  272. if (after == null || (after.protect == true) != (wanted == true)) { return { error = 'could not store the setting: ' + reposTable.lastError() } }
  273. syncProtect(after)
  274. return { protect = after.protect == true }
  275. }
  276. // the name a page's tab title shows: the repo's name when the viewer may see it, else only what was typed in the address (an invisible repo and one nobody made get the SAME title)
  277. static titleSlug = (host, orepo, session) => {
  278. s = slugOfRequest(host, orepo)
  279. r = repoAt(s, session)
  280. if (r != null) { return r.heading }
  281. o = orgFor(s, userIdOfSession(session))
  282. if ((orepo == null || orepo == '') && o != null && o.title != null && o.title != '') { return o.title }
  283. return orepo != null && orepo != '' ? orepo : slugOfHost(host)
  284. }
  285. // The API input check; the creation rules and writes remain in createRepoIn.
  286. static createRepoFromInput = (userId, input) => {
  287. if (input == null || hlTypeName(input) != 'Hybrid' || (hlTypeName(input.name) != 'String' && !(input.name == null && hlTypeName(input.title) == 'String'))) { return { error = 'name must be a repository slug' field = 'name' } }
  288. if (input.title != null && hlTypeName(input.title) != 'String') { return { error = 'title must be text' field = 'title' } }
  289. if (input.org != null && hlTypeName(input.org) != 'String') { return { error = 'org must be an organization slug' field = 'org' } }
  290. if (input.description != null && hlTypeName(input.description) != 'String') { return { error = 'description must be text' field = 'description' } }
  291. if (input.private != null && input.private != true && input.private != false) { return { error = 'private must be true or false' field = 'private' } }
  292. return createRepoIn(userId, input.org, input.name, input.description, input.private, input.members, input.title)
  293. }
  294. // One move implementation for the stopped-app transfer tool and live Settings.
  295. // Git processes/locks are a best-effort busy check; filesystem and DB are not a transaction.
  296. static moveRepo = (String oldName, String to, String vis) => {
  297. r = repoBySlug(oldName)
  298. if (r == null) { return { error = 'no such repository' } }
  299. bad = fullNameError(to)
  300. if (bad != null) { return { error = bad } }
  301. if (to == oldName) { return { error = 'the new name is the old name' } }
  302. if (vis != 'public' && vis != 'private') { return { error = 'visibility must be public or private' } }
  303. if (repoBySlug(to) != null || (forwardOf(to) != null && forwardOf(to) != oldName) || (!to.includes('/') && orgBySlug(to) != null)) { return { error = 'the address is taken' } }
  304. if (!exists(repoDir(oldName))) { return { error = 'the bare repository does not exist' } }
  305. if (exists(repoDir(to))) { return { error = 'the destination folder already exists' } }
  306. locks = run(['find', repoDir(oldName), '-name', '*.lock', '-o', '-name', 'incoming-*'], { timeout = 15 })
  307. if (locks == null || locks.exit != 0 || locks.lines.length > 0) { return { error = 'repository is busy; try again after the push finishes' } }
  308. processes = run(['ps', '-eo', 'args='], { timeout = 15 })
  309. if (processes == null || processes.exit != 0) { return { error = 'could not check whether a push is in progress' } }
  310. for (line of processes.lines) {
  311. if (line.includes('receive-pack') && (line.includes(repoDir(oldName)) || line.includes('/repos/' + oldName + '.git'))) { return { error = 'a push is in progress; try again after it finishes' } }
  312. }
  313. i = to.indexOf('/')
  314. org = i < 0 ? '' : to.slice(0, i)
  315. priv = vis == 'private'
  316. if (org != '' && orgBySlug(org) == null) {
  317. if (putOrg(org, r.owner, priv) == null) { return { error = 'could not create the organization' } }
  318. }
  319. if (org != '' && !exists(gitRoot + '/' + org)) { mkDir(gitRoot + '/' + org, 493) }
  320. m = run(['mv', '-T', '-n', repoDir(oldName), repoDir(to)], { timeout = 60 })
  321. if (m == null || m.exit != 0 || exists(repoDir(oldName)) || !exists(repoDir(to))) { return { error = 'could not move the folder (the destination may have been taken)' } }
  322. reposTable.update(r.id, withChange(r, { slug = to org = org priv = priv }))
  323. after = reposTable.fetch(r.id)
  324. if (after == null || after.slug != to) {
  325. back = run(['mv', '-T', '-n', repoDir(to), repoDir(oldName)], { timeout = 60 })
  326. return { error = back != null && back.exit == 0 && exists(repoDir(oldName)) && !exists(repoDir(to)) ? 'could not store the new name; the folder was restored' : 'could not store the new name or restore the folder; contact the administrator' }
  327. }
  328. moveMembers(refOfRepo(oldName), refOfRepo(to))
  329. if (!movedForwards(oldName, to)) { return { error = 'repository moved, but the old address could not be stored' } }
  330. row = rowOf(after, isPrivateRepo(after))
  331. emit client repoChanged(row)
  332. return { repo = row }
  333. }
  334. static renameRepo = (String userId, String slug, String name) => {
  335. r = repoBySlug(slug)
  336. if (r == null || userId == null || r.owner != userId) { return { error = 'only the owner can rename this repository' } }
  337. // Settings accepts only the address label: the organization is preserved.
  338. bad = slugError(name)
  339. if (bad != null) { return { error = bad } }
  340. to = r.org != null && r.org != '' ? r.org + '/' + name : name
  341. return moveRepo(slug, to, r.priv == true ? 'private' : 'public')
  342. }
  343. static setRepoTitle = (String userId, String slug, String title) => {
  344. r = repoBySlug(slug)
  345. if (r == null || userId == null || r.owner != userId) { return { error = 'only the owner can change the display name' } }
  346. t = title == null ? '' : title.trim()
  347. bad = plainError(t, 80, 'the display name')
  348. if (bad != null) { return { error = bad } }
  349. reposTable.update(r.id, withChange(r, { title = t }))
  350. after = reposTable.fetch(r.id)
  351. if (after == null || after.title != t) { return { error = 'could not store the display name' } }
  352. row = rowOf(after, isPrivateRepo(after))
  353. emit client repoChanged(row)
  354. return { repo = row }
  355. }
  356. static orgRowOf = (Hybrid o) => {
  357. t = o.title != null ? o.title : ''
  358. return { id = o.id @id = o.id slug = o.slug title = t heading = t != '' ? t : o.slug titled = t != '' isPrivate = o.priv == true isPublic = o.priv != true createdMs = o.created address = repoOrigin(o.slug) + '/' }
  359. }
  360. static setOrgTitle = (String userId, String slug, String title) => {
  361. o = orgBySlug(slug)
  362. if (o == null || userId == null || o.owner != userId) { return { error = 'only the owner can change the organization name' } }
  363. t = title == null ? '' : title.trim()
  364. bad = plainError(t, 80, 'the name')
  365. if (bad != null) { return { error = bad } }
  366. after = saveOrgTitle(o, t)
  367. if (after == null) { return { error = 'could not store the name' } }
  368. row = orgRowOf(after)
  369. emit client orgChanged(row)
  370. return { org = row }
  371. }

Branches

Latest commits

  • c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre
  • 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
  • 83f0c953Report person approval verificationmre
  • 3ae94b86Record browser failures and verify owned tab cleanupmre
  • 54eec687Gate person approvals and merge alternativesmre
  • 12b08829Add person approvals for pull request headsmre
  • 55c84779Merge branch 'gp-gate-ports' into mainGitoria
  • 57af42bbREADME: point to deploy.sh for the port listmre
  • d63375d2README: gate commands with explicit portsmre
  • feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre