phalethyeah, the nevet app can reach the db container, see the second paste
blueoh, this is from the nevet app?
phalethI think env vars are not being read
phalethyeah, it's java
blueare the env vars available in the container
blue?
phalethor is nevet not java? I don't know what this is then, was supposed to deploy the java app
blueyes, nevet is kotlin, which is java
phalethenv vars are set by systemd
bluecan you do echo $DB_URL in the container?
blueactually, I think I can enter the container myself and check
bluece332a-nevet-srv
blue?
phalethno you cannot, cause env vars are set only for the systemd process that manages the kotlin or whatever app
bluenevet.service?
phalethwhich apps can normally read just fine, but not this one
phalethyeah
blueman I can't even use ping from inside the container
bluethose images are really reduced :P
phalethapt update
phalethapt install iputils-ping
bluethx
phalethnp
bluehm, looks fine indeed
blueyup:
blueroot@nevet:/etc/systemd/system# systemctl show nevet --property=Environment
blueEnvironment=
phalethanyway, normally applications should be self-discoverable, they should tell what you need to configure and error out if something is missing, but this is again some stuff hacked together that only runs on the developers machine
phaleththe systemd property is called EnvironmentFile
blueyes
blueFeb 28 12:21:19 nevet java[892]: Build: ${git.commit.id.abbrev} (${git.branch}) ${git.build.time}
bluebtw this line is also suspicious
phalethI used a zip copy of the code to build the app
bluephaleth: looks better, I removed username/password from the connection string, it kills java
blueinstead, it loads them from the env vars
bluenow there's some oauth2 issue
blueFeb 28 12:24:37 nevet java[945]: Caused by: java.lang.IllegalStateException: Client id of registration 'google' must not be empty.
blueHMMMMMM
bluedreamreal: is this a hard requirement?
phalethok, cool, I had no idea that was the problem and why I have to specify the credentials second time
blueat least we're getting somewhere. but I think now we need dreamreal's help, and it's shabbat, he might be slow to respond
blueit's actually better this way, phaleth. the password doesn't get leaked
phalethyeah, I'll reset the password
blueI'd still prefer if the jdbc connection string supported that, but it's ok
blueapparently this is the officially documented for postgres jdbc: jdbc:postgresql://[REDACTED:url-credentials]@host:port/database
blueah, sorry, I mean this:
phalethI'd prefer jdbc making any sense in it's error messages
bluejdbc:postgresql://host:port/database
bluetrue
phalethok
blueapparently what also works are params
bluejdbc:postgresql://host:port/database
bluewith ?user=...&password=...
phalethok, it run migrations
blueit did?
blueI can't tell, it's borked because there's no google client id
blue`Nevet supports "Sign in with Google" and "Sign in with GitHub" via OIDC / OAuth2. Both are optional and independent -`
bluehm
bluemaybe this is a bug
blueit should work without the GOOGLE_CLIENT_ID, but maybe the env variable has to be set? dunno
blueyeah, I don't think it's optional
bluespring picks it up automatically, and tries to configure it, hits empty string or missing property, dies
phaleth"If `GOOGLE_CLIENT_ID` and `GITHUB_CLIENT_ID` are both empty, OIDC endpoints are not registered and the app runs OTP-only."
blueyeah, that's simply not true in this case. or maybe we need to include those two env vars but set them to empty
blueshould I try that?
phalethnot sure if whatever reads those properties is that dumb, but null and empty is something different for sure
phalethI mean env vars
blueyeah, it's spring, and spring is a truckload of magic that no one understands
blueI'm gonna try empty vars. but empty vars should be virtually the same as non-existent
bluenope, still dying
blueOMG
bluechatgpt is telling me I need to "Move the Google registration into a profile:"
bluebut then I'll need to rebuild the container
phalethI can rebuild the container
phalethbut I don't follow what chatccp is saying
dreamrealYou should be able to put trash values in there, and I'm going to try to figure out how to make those things optional - it shouldn't be that hard to do - but the UI shoudl expect OIDC to be present, is the problem
dreamrealbut you shouldn't have to rebuild a container to provide values to it, we need to be able to externalize them and put them in .env and docker just imports them
phalethI will just put SPRING_ACTIVE_PROFILES=oidc into the env file
dreamrealphaleth: do that ONLY IF YOU WANT OIDC enabled
dreamrealif you don't, yeet it
dreamrealthe default profile will not use OIDC
phalethok, I'll get rid of it then
dreamrealOIDC means configuring the google oauth tokens and setting up the github stuff
blueok, I deleted it again
dreamrealfor developers, that shouldn't be necessary unless they're specifically testing that path
bluedreamreal: it's best if you changed my role on the original repo to readonly
blueI'll keep accidently pushing master otherwise, but I don't need to
phalethor just migrate github -> gitea, main -> master
dreamrealyou're gonna love this, blue: github doesn't let me set it to readonly :D
blueyeah that's what I did, but I accidently did `git push origin` and it pushed it to his repo
dreamrealNot for a private repo, maybe
blueor well, git push upstream, that was dumb
phalethhmm, could set the main branch as protected or whatever github calls that
blueI have upstream = his repo (jottinger/bytecode.news), origin (gitea) and then github (same fork, on github)
dreamrealphaleth: doing that now
blueI don't think I need github at all, but once I start sending him PRs, I don't know if I can do it from gitea
dreamrealoh, damn you github
dreamrealwon't apply to the repo because it's private
dreamrealit might be good enough that it's time to move it, actually
phalethheh
dreamrealblue: what do you think? Nevet's exceeded the prior version enough to become IT?
phalethI have no problem giving your access to our gitea
dreamrealdear god no
dreamrealI'm swimming in access as it is
bluephaleth, he means moving it to a public github repo, I think. but why move it, dreamreal, why not just open up the repo?
blueif you move it you lose all the issues
dreamrealI was just gonna rename it and open it
blueor do you mean with 'move', change from private to public?
blueoh, gotcha
dreamrealbut maybe opening it is enough
phalethah, ok
bluewell this limitation is ridiculous anyway
dreamrealeverything is ridiculous, that's why we laugh
blueno I mean, the way github cripples its features when your repo is private
blueunder the guise of promoting FOSS. but it's exactly the opposite, they want you to pay
blueprivate & public should get the same treatment, and premium features should cost either way
blueanyway
bluedon't open it up on my behalf
blueI'll try to set up git to prevent me from accidently pushing master to upstream
dreamrealso: any opinion on it being streampack vs bytecode.news?
dreamrealdoeth the speaky-speaky things now, losers, or forever hold thy peace
blueI don't have a specific opinion. but currently you're using three names and it's confusing, pick one and stick to it. if you already got the domain, then bytecode it is
dreamrealwe're jews, names are transitory, be a jew :D
blueya well
dreamrealphaleth: any opinion? We have one vote for bytecode.news
phalethsay it three times and you'll see
dreamrealfor some reason it counts
bluelol
phalethreact-router react-router react-router, doesn't catch on
dreamrealI have more votes than anyone else, so I win no matter what, but I'd like to hear from the el gallery anyway
dreamrealbytecode.news three times isn't catchy either but that's fine
blueI told him bytenews is better, but he won't listen
dreamrealI actually like nevet but nevet's a specific instance, not THE PROJECT
blueI'd personally get the domain bytenews.dev :P
dreamrealphaleth: any opinion?
dreamrealblue: I may have already gotten it
dreamrealI don't remember
phalethnevet should have ended with h, then it'd be cool like phaleth
phalethwasted opportunity there
dreamrealphaleth: only dorks' names end in h
phalethheh
* dreamreal used to use "Epesh" as a nick for YEARS
dreamrealand in some communities Epesh is still remembered
dreamrealblue: my hebrew is very very strong, as you see: mistranslit of efes
blueyes I noticed. you also seemed to remember nevet means stream
dreamrealI know, I know
dreamrealI forget the first name we came up with
dreamrealbut I like nevet
bluethankfully, I'm here to correct you
dreamrealI also like alit but I know a really cute lady named alit and that would be unseemly
dreamrealI figured you deserved a chance to be right for once
blueyeah that's a girl's name, nevet's a boy
dreamrealmmm alit. If I'd been single I'd have seen her as a missed opportunity. Wonderful lady, though. Flighty, red hair, lithe... and a missile launch technician in the IDF :D
blueyeah you don't wanna mess with that
dreamrealnow a yoga instructor in sfarad
bluehahahaha
dreamrealoh if I'd been single I'd DEFINITELY have wanted to mess with that
dreamrealI was not, plus I'm a professional, so there's no effin' way but biologically hell to the yes
bluewell yeah, that's the problem isn't it
dreamrealnot a problem. I love alit as a friend. There's no temptation there; she's just a hell of a person and I respect that.
dreamrealphaleth: fine, you have no opinion
dreamrealdealer's choice wins: I have voted as well
blue heh
phalethyeah, I'd say thanks for asking for an opinion, but I can't give any on something I have no clue about
bluelol
phalethbtw, before you open up the github repo to the world consider the following
phalethsetup the copy of the repo somewhere else, and use the github repo as a mirror and continue using github only for issues and abandon PRs
phalethand of couse setup an action/pipeline/whatever to push to github automatically
phalethPRs on github can be disabled, not sure that's a paid feature
blueit's been recently added, not paid
dreamrealI don't want them disabled, I want them demanded
dreamrealphaleth: that's certainly an option but no
phalethyeah, right, the point of a mirror is to be read-only except for the action/pipeline from the other repo
bluephaleth, did the oauth problem get solved?
phalethnot yet, trying to find a place where to generate token in gitea
dreamrealwhich oauth problem are you trying to solve?
dreamrealand bytecode.news is now a public repo
phalethoh, ok, what's the github url?
dreamrealgithub.com/jottinger/bytecode.news
phalethI think blue will want his stuff to be there, so I'll search for how to get the token from gitea