#dev 2023-06-17

2023-06-17 UTC
tei_1, gRegorLove_ and tei_ joined the channel
#
[tantek]
As I was saying about Google buying gTLDs then leaving the domain names business: https://twitter.com/swiftonsecurity/status/1669549218858516480
#
vladimyr
They are innovative company, there wasn't simply any more room for innovation in that space left /s
#
epoch
how terrible of an idea would it be for there to be a browser API to get a user's "fediverse account" with javascript?
#
vladimyr
wdym by getting user's fediverde account? Which user?
#
epoch
the user using the browser
#
epoch
a string like @user@host
#
vladimyr
Um, that assumes user should input their fedi account into browser settings? 🤔
#
epoch
like now the nostr plugin works
#
vladimyr
You mean nostr signer extensions holding your private key and exposing signing api?
#
epoch
sure, but it wouldn't have to do all that
#
epoch
the simples thing that nostr extension does is just provide an interface for supplying your public key to javascript that asks for it
#
epoch
like, I figure, a more flexible interface would be preferred
#
vladimyr
And you want to build something similar providing what exactly to js?
#
epoch
a little function that asks me if I want to let a website have access to my @user@host
#
epoch
having it remember my premissions preference would be preferable
#
vladimyr
Oh you mean literally something like window.fedi.getAccount()
win0err joined the channel
#
epoch
I recently learned how to use the userscripts hammer and am seeing nails
#
vladimyr
Hmm, sounds interesting but I'm not sure what value it brings to the table, trying to think possible scenarios in which user would benefit from js knowing their fedi acc...
#
vladimyr
Maybe it could improve follow flow where you need to provide your instance?
#
epoch
fetching webfinger then redirecting them to their configured ostatus follow url template filled in
#
epoch
if the api doesn't exist, fallback to just asking for it in a prompt
#
vladimyr
You basically read my mind, as soon as you mentioned it I thought this is great usecase for userscript :)
#
epoch
but, preferably, there'd be some standard api to do this instead of me making up something
#
vladimyr
I'd say this is something worth discussing through FEP https://codeberg.org/fediverse/fep
#
vladimyr
But it would be nice if you open a discussion with working PoC implemented as userscript or webext
#
epoch
oooooh. I hadn't heard of FEPs before.
#
epoch
yeah, I'll let this channel give me crap about this idea before I start pestering other people with it.
#
epoch
returning an actor URI instead of an @user@host might be better
#
epoch
or some other method of just providing a json object that can accomodate for any data the user might want a website to have?
#
epoch
guess permissions would get a little fuzzy there though
#
epoch
too wide or too narrow, someone will not like it
#
vladimyr
Permissions could work the same way as mic/cam/geo permissions work
#
vladimyr
Make it a popup asking user to let given site access their data and provide that neat checkbox to remember their choice
#
epoch
but for a random json blob that could contain any data, people might want more than "allow" and "disallow" per site
#
epoch
site, making it fairly narrow scope is probably better
#
vladimyr
Don't go too wide, provide just fedi account uri
#
vladimyr
I honestly wonder why didn't somebody already do exactly that
#
vladimyr
Especially when there is nostr example setting precedent
#
epoch
I know there's been some discussion on this kind of stuff before, I just don't remember where
#
epoch
probably some mastodon issue
#
vladimyr
OT but lack of code search on codeberg is becoming really annoying
#
epoch
"another way would be via custom-schemes [...]"
#
epoch
that's what I'm using now for myself, but those URLs don't work for anyone else :P
#
epoch
(also, their example bothers me because the action is in the authority section of the url)
#
vladimyr
My /supersmart/ way of checking whether there are any clientside related FEPs returned zero results https://dezip.org/v1/9/https/codeberg.org/fediverse/fep/archive/d3cd04d8a88ca8b61e4071d73712739efd870098.tar.gz/?search=window
#
epoch
having templates for actions other than follow would be handy too
#
epoch
but, one thing at a time I guess
#
vladimyr
Um I didn't exactly interpret that discussion same as you did
#
epoch
if I was going to do that though, I'd have a rel in the webfinger response for each of the activity types in the ap spec
#
epoch
"I would strongly suggest to not use Remote Follow or try to replicate it’s behavior as it works like phishing: Stating your account on another platform and hopefully being sent to your actual instance for the Follow."
#
vladimyr
I don't think they'll be opposed to clientside solution cause it should (at least in theory) sound less like phishing than simply inputting your handle into some 3rd party form 🤔
#
epoch
that is a decent point against doing remote follow that way
#
epoch
but when you click something it could always redirect you to somewhere that looks like your instance and asks for your password
#
vladimyr
Also you can always flip things by not providing handle to the site but instead letting site call your api which would generate follow url and do the redirect
#
epoch
heh. send a follow-request-request ?
#
vladimyr
something like window.fedi.follow(handle)
#
vladimyr
Resulting in js driven redirect to your instance with provided remote handle
#
vladimyr
How does that sound?
#
epoch
yeah. providing the actions that way seems safer
#
vladimyr
Basically similar what that nostr nip prescribes
#
vladimyr
Expose sing/verify actions instead of direct access to pkey
#
epoch
require that the functions in the fedi object be triggered by a user event similar to how the webshare API requires it for share()
#
epoch
so a site can't just spam you with automated follow()s
#
vladimyr
Which is relatively easy to check inside js
#
vladimyr
Excellent point
#
epoch
hrm. where should the configuration of the templates be?
#
epoch
could keep it in webfinger
#
epoch
have the extension as your home server what the template is
#
epoch
that way users won't have to fiddle with that, they just set their identity url
#
vladimyr
Or fallback to local ext/script settings
#
epoch
maybe let local settings override instead?
#
epoch
default of fallback to webfinger settings... cached a sane amount
#
vladimyr
Sure? I generally like your way of thinking and making it as painless as possible for users to configure it
#
vladimyr
Does this thing work for outsiders 🙃
#
vladimyr
epoch++
#
Loqi
epoch has 3 karma in this channel over the last year (4 in all channels)
#
epoch
if webfinger doesn't say anything... I dunno
#
vladimyr
If webfinger doesn't say anything do nothing?
#
vladimyr
Or throw error
#
vladimyr
In any case I'd say it's graceful degradation
#
epoch
push the important data into clipboard and message about it?
#
epoch
so they can paste into the "search" bar in their home instance
#
vladimyr
Maybe but I'd avoid messing with clipboard too cause that again is privacy icky
#
vladimyr
Um going afk but let me know if you code something up so I can offer my very valuable contributions :P
#
epoch
heh. my tampermonkey plugin is shitting the bed
ben_thatmustbeme joined the channel
#
epoch
I just had to turn the add-on off and on again.
#
c​apjamesg
Has anyone done any research into content provenance?
#
epoch
looks up what that means
#
c​apjamesg
What I have read thus far focuses more on signing documents.
IWSlackGateway, win0err, voxpelli, Loqi and Seirdy joined the channel
#
vladimyr
@epoch: regarding remote follow and implementing it using custom schemas here is interesting discussion including pointers to prior art https://codeberg.org/fediverse/fediverse-ideas/issues/1
[tantek], tei_, tei_1, eitilt1, [schmarty], epoch, revi and gRegor joined the channel
#
gRegor
[snarfed], I'm doing some debugging on my site and wondering if the `fed.brid.gy/convert/*` URLs are short-lived? I had some errors with webmentions on my site and re-trying some BF source URLs they're 404 now.
[snarfed] joined the channel
#
[snarfed]
gRegor argh no, bug on my side, sorry! will fix
[tw2113_Slack_] joined the channel
#
[snarfed]
gRegor fixed, thanks for reporting!
[fluffy], mretka, [aciccarello], ahappydeath and bterry joined the channel