bluephaleth: so ideally we should have: http client <-> contabo VPS <-> haproxy podman container <-> rootless podman nginx container <-> podman machine running the blog
blueor maybe we don't even need that interim podman thingy
blueso one nice thingy the podman API saves us is manual network management
blueyou can just do POST networks and it allocates by itself. you can provide a name, which is great, because we'll use that to delete networks when apps are deleted
blueso when you create an app, we add an entry to the app table in postgres, and we can use the id to refer to the network (or generate a network_id UUID column)
bluephaleth: that rootless podman nginx container, it's running under your user, right?
bluebtw the podman API is nice. this is what you get if you try to create a network with an existing name:
blueunless I missed something, I don't get how you can otherwise validate it
blue"After creating a secret token, you should store it in a secure location that your server can access."
bluetypically, you put that in an env variable
blueor if you wanna do it programmatically, something like a keyserver
dreamrealI generate a string: aaabbcccdd. Send it to the user via PM. Store the encrypted version so I never have aaabbcccdd again. When I get aaabbcccdd over https, I re-encrypt it and check.
blueyes, so you still store the token
blueyou just encrypt it
bluewhich is... I guess fine
dreamrealyes, and I COULD accept external tokens where you say "set it to this explicitly" but... eh
blueI don't really see the point, but sure
dreamrealgive me a minute, workflow oversight
bluehonestly I have no idea *how* that can be even work. github sends you a hash signature using the token with each payload. how can you recalculate the signature if you don't have the original token?
bluetypically you take the payload + token, calculate a signature, then compare it to what gh sent
bluebut if you encrypted the token, that's not gonna work
dreamrealDid it report success on the github console?
blueyes
dreamrealThen it worked. And the console will show pings, for what it's worth.
blueI meant here. that's a wait to test full stack working without access to the console
bluethat's a way*
dreamrealWell, the thing is, ORDINARILY this is a bit of an odd path
bluehow so?
dreamrealadmins are the only ones who can subscribe, so ordinarily the admin is the one who A) has access and B) sets the token
dreamrealso *I* as the admin would be the one to validate the ping, not the channel
blueyes but *I* don't have access to the console
dreamrealI know
dreamreallike I said, odd path
blueit's only an odd path if you don't intend for nevet to relay those notifications for non-admins
* dreamreal sighs. But like I said: ODD PATH. You create a subscription for webhooks... THEN you add what channels watch for them.
dreamrealWithout the channels, nevet doesn't know where to say "hey, ping succeeded!"
dreamrealit's literally an internal event, and it's internally published
bluethat's a weird flow to me. if you do !github webhook primate-run/primate in #primate, I'd think that's intended to be used here
dreamrealI get it
dreamrealbut the flow is not that way: I can create subscriptions ANYWHERE, and channel subscriptions are separate
dreamrealsame for RSS
dreamreal(in fact, they use the same codebase and design)
bluenonetheless, you can *still* map the ping event, and it works just like every other event: it outputs once it has channels
dreamrealcrikey
dreamrealversion
nevetnevet 1.0 | 84619bb (github-webhook-fixes) | Built 2026-03-08 09:14:24 EDT
dreamrealSo try the emulated thing, let's see what it does
bluewell it still says successful
bluefor the redelivery
dreamrealyep.
blueyes? what changed?
blueI see no message
dreamrealI saw it
blue...
dreamrealAgain, pings are not echoed to subscriptions
bluebut why?
dreamrealBecause I don't trust them yet. I may turn it on eventually. But I don't know github's ping policy yet.
bluethere's no ping policy. it's done when you create a webhook, and when you change it iirc. I had the ping event mapped on gpbot, I'd have noticed it otherwise
blueit's literally a way to test the full stack
bluestarting to get tired of claude here
blueit's regularly amnesic, forgetting things discussed like 3 minutes ago
bluecan now create networks; duplicates are recognised and surfaced as form errors
bluethis has been interesting info for the future generation of openapi clients
bluein future style, this will be:
blueawait client.createNetwork({ name }).conflict({ field: "name", message: "A network with this name already exists" });
blue(409 is CONFLICT)
bluethat means HTTP status codes will be surfaced on the generated openapi client as methods
blueso you can literally do .conflict().forbidden().notFound()
bluethe default return value is the OK (2xx) case
phalethnice, I've made a PR there just to test, it now has a merge conflict, very cool
bluebtw, I've noticed gitea is much, MUCH faster than github
bluelike orders of magnitude faster
bluemonopolies SUCH!
blueSUCK*
phalethyup, I've noticed gitea has some frontend devs that continuously put effort into modularizing the frontend so it remains fast after features get added
bluewell, of course we're not gonna use gitea but repopack itself, but it's still so freshing to see that it doesn't HAVE to be this way
blueor refreshing, rather
phalethyeah, I kinda refuse to go back to github already
bluebut for woff2, this should be the standard behaviour. unless you're like a platform that offering woff2 for download, I don't see how you'd ever want different behaviour
blueand even if you are a platform, you wouldn't place the woff2 files for download inside static, but would have them downloaded dynamically
blueand if you DO want a different behaviour, you write a primate module
bluephaleth: did you pull down the nice coloured changes?
blueit's just adding some font and a bit of colours so it doesn't look 100% lame as before
phalethnot yet, I'm gonna try to find some podman REST API reference
dreamrealblue: I gotta get you to learn how to use !article :D
bluewth is THAT, dreamreal
dreamrealIt's a way to get nevet to build a draft article online
dreamrealyou say "!article title" and can add content blocks with "!content this is some content here", add channel context with "!logs 5m" (include the last five minutes for context), and signal done with !done (it'll time out on its own if you don't, after five minutes of no interaction) - and bam! draft article on bytecode.news
dreamrealthe diataxis article was written that way
bluearticle Primate
nevetIdea session started: "Primate". Use 'content <text>' to add body paragraphs, 'done' to save, or 'cancel' to discard.
bluecontext Primate is the universal web framework -- the best tool to build websites with
nevetok, blue: updated context primate.
bluedone
nevetIdea saved as draft: "Primate" (0 content blocks).
blueoh, I wrote context, my bad
bluewell, at least it did something
dreamrealIt did indeed.
blueI have no idea how to edit it
dreamrealYOU don't. *I* would have to.
bluehahaha
dreamrealThe !article thing submits DRAFTS. If you're not authenticated, it submits as anonymous.
bluewhy can't I edit drafts though, if submitted anonymously?
dreamrealNo, you said "context primate" and "is" and some content.
dreamrealThat's working as designed. You created a factoid.
blueoh man, that's CRAZY
dreamrealif you'd used "!content primate is..." the internal routing would be different.
bluethat should be like +factoid or something
dreamrealBut "context" is not a keyword for the article system.
dreamreal"is" is pretty human.
blueyeah but you do realise that having both context words and pattrens like !x is y, is confusing, right?
bluethat effectively means that a typo can have wholly unintended consequences
dreamrealSure. And compare that against the ACTUAL formal syntax: !foo=bar
dreamrealyep, and the consequences cost very very close to nothing so I don't care
dreamrealjust like karma
blueso the making of a good system, that a typo does NOT cause wholly unintended behaviour
bluebut rather results in the system telling you made a typo
bluesomething like: "!context does not exist as a operation"
dreamrealin which case you have a formal grammar and not something easy for humans to use.
blueand even nicer: "did you mean `!content`?"
dreamrealSo: no.
dreamrealHow would teh system know you might have meant "content?"
dreamrealThe system has no unified grammar. This is intentional.
bluebecause it has a very small levenshtein distance
bluestop making excuses, this is totally normal, git has it
* dreamreal sighs
dreamrealno. Because that means the system needs to know a shitload more about the operations than it should. It doesn't KNOW there are operations.
dreamrealActually, that's not true: the system DOES know there are operations... like, six or seven of them. Out of the close to 80 now.
bluesigh, fine, your system, you know BEST, me typoing content into context is just a FACT of life and should result in garbage in the system
dreamrealYep! And it does! And again, the actual cost is 0
dreamrealit's fine, it's also trivial to correct
dreamrealcontext primate.forget
nevetok, forgot context primate.
dreamrealOH NO SO MUCH SWEATING
blueoh man, nevermind, I'll just shut up, I'm tired of this uphill battle
blueyou just do whatever you think is best and I'll stop making suggestions
dreamrealThe bot is messy: that's a fact of life. The actual OPERATION usage is absolutely linear; if we had an article *http operation* it can ensure types and make sure such things are unambiguous. Over IRC? not so much.
dreamrealWe could even do that for slack and discord, if I supported actual actions.
blueit's really not messy to have a clear way to edit factoids, say with `+factoid title | text` to add, `~factoid title | text` to edit, and `-factoid title` to delete
blueinstead of using a pattern nobody understands like x is y
dreamrealGotta get lunch, later
blueciao
bluephaleth: should we move primate/openapi to gitea?
blueI'm honestly thinking of keeping just the high profile projects, so primate-run/primate, on GH. all the rest I think can move away
phalethblue: if you don't want that to be open why not
phalethsame for superarch
blueoh it will be open, in the future, when it's available under repopack.com/primate/primate
phalethshould I redeploy primate/openapi?
bluesorry, repopack.com/primate/openapi
blueyes
phalethok
bluedid you pull the latest rp colours? :P
bluehm
blueshould I call the org primate or primate-run on gitea
blueI guess it doesn't matter much
phalethcall it primate
bluek
phalethopenapi is updated
phalethactually, no it isn't, forgot to download from git