Openfire is using the stream ID value as the resource value (unless the client supplies a preferred resource value itself). Is there a reason to _not_ decouple the two (and switch to something more random for the default resource value?
rubihas left
rubihas joined
Kevhas joined
xeckshas joined
goffihas left
goffihas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
rubihas left
rubihas joined
rubihas left
rubihas joined
lskdjfhas joined
flow
Guus, not sure if I understand the question: openfire uses the client provided stream id as resource for clients that don't provide a resource?
adiaholichas left
Tobihas joined
Tobihas left
Trunghas left
Tobihas joined
Tobiashas joined
marchas left
marchas joined
petrescatraianhas joined
Titihas joined
Trunghas joined
goffihas left
goffihas joined
Tobiashas left
Tobiashas joined
Tobiashas left
Tobiashas joined
goffihas left
goffihas joined
Half-Shothas left
homebeachhas left
Matthewhas left
uhoreghas left
Half-Shothas joined
Matthewhas joined
homebeachhas joined
uhoreghas joined
inkyhas left
lskdjfhas left
stphas joined
tbm16has left
tbm16has joined
debaclehas joined
Guus
ack.
wladmishas left
wladmishas joined
stphas left
mhhas left
Andrzejhas joined
mhhas joined
flow
what if the stream id is not a valid resourcepart? :)
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
flow
that said, I am unable to come up with a reason why this behavior could be problematic, although personally I would just use a random string, and separate the two concerns as they are fundamentally unrelated
flow
there is maybe the small argument of clients that want to use a server assigned resource, but on subsequent logins keep that resource, so that the previous connections, using the same resource, are forcefully terminated by the server
flow
although, that scheme would still work
neoxhas left
Paganinihas left
adiaholichas joined
karoshihas joined
qwestionhas joined
Tobiashas left
qwestionhas left
catchyhas left
Tobiashas joined
rubihas left
rubihas joined
rubihas left
rubihas joined
rubihas left
rubihas joined
govanifyhas left
govanifyhas joined
govanifyhas left
govanifyhas joined
lskdjfhas joined
beanhas joined
Titihas left
Maranda[x]has joined
Menelhas left
Menelhas joined
flow
I am not aware of any gurantees that server generated resources need to provide, but if the client assumes that the server generates a non guessable resource and uses a guessable stream ID, then this would break✎
flow
I am not aware of any guarantees that server generated resources need to provide, but if the client assumes that the server generates a non guessable resource and uses a guessable stream ID, then this would break ✏
neoxhas joined
Maxencehas joined
Axelhas joined
restive_monkhas left
rubihas left
rubihas joined
restive_monkhas joined
Tobiashas left
Tobihas left
Tobihas joined
Tobiashas joined
Guus
Thanks flow. My question was not so much if this behavior (re-using streamID as resource) was problematic, but if there was reason to believe that _stepping away from that_ would be problematic.
hnsr.qhas left
rubihas left
rubihas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
flow
from a protocol POV it's certainly not problematic
xeckshas left
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
restive_monkhas left
restive_monkhas joined
stphas joined
papatutuwawahas joined
adiaholichas left
adiaholichas joined
Kevhas left
chipmnkhas left
gooyahas joined
florettahas joined
Guus
Thanks. I'm failing to see why this was implemented like this.
eabhas left
eabhas joined
pasdesushihas joined
hnsr.qhas joined
mjkhas left
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
karoshihas left
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
rubihas left
rubihas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
karoshihas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
xeckshas joined
debaclehas left
wladmishas left
wladmishas joined
Kevhas joined
neshtaxmpphas left
neshtaxmpphas joined
wladmishas left
wladmishas joined
debaclehas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
rubihas left
rubihas joined
Trunghas left
Trunghas joined
florettahas left
florettahas joined
Tobiashas left
Tobiashas joined
Tobiashas left
Tobiashas joined
debaclehas left
adiaholichas left
rubihas left
Axelhas left
rubihas joined
adiaholichas joined
florettahas left
florettahas joined
hnsr.qhas left
raucaohas left
raghavgururajanhas joined
raucaohas joined
mjkhas joined
neoxhas left
flow
git blame it and ask author ;)
flow
but I assume it dates back to some jiver?
Fishbowlerhas left
Fishbowlerhas joined
hnsr.qhas joined
Guus
gato committed on May 30, 2007: "Initial check in." :)
rubihas left
rubihas joined
Tobiashas left
Tobihas left
Tobihas joined
Tobihas left
Tobihas joined
Tobiashas joined
karoshihas left
vanitasvitaehas joined
karoshihas joined
florettahas left
Maranda[x]has left
rubihas left
Mx2has left
Mx2has joined
Mx2has left
Mx2has joined
Titihas joined
Mx2has left
Mx2has joined
raghavgururajanhas left
Maranda[x]has joined
Mx2has left
Tobiashas left
Tobihas left
Tobihas joined
Tobihas left
Tobihas joined
Tobiashas joined
Fishbowler
Wow. The before times.
That code is old enough to have learned to propose its own changes.
raucaohas left
neshtaxmpphas left
Guus
It's an adolescent now though, so it's judgement calls are to be taken with extreme caution.
neshtaxmpphas joined
Zash
But it may be held accountable to its crimes in some jurisdictions.
neoxhas joined
florettahas joined
raghavgururajanhas joined
Andrzejhas left
debaclehas joined
sonnyhas left
sonnyhas joined
Maranda[x]has left
hnsr.qhas left
mhhas left
catchyhas joined
mhhas joined
hnsr.qhas joined
goffihas left
goffihas joined
rubihas joined
goffihas left
goffihas joined
antranigvhas left
govanifyhas left
govanifyhas joined
goffihas left
goffihas joined
govanifyhas left
govanifyhas joined
raucaohas joined
Marandahas left
brunrobehas left
Mjolnir Archonhas left
sonnyhas left
sonnyhas joined
florettahas left
sonnyhas left
sonnyhas joined
Mx2has joined
florettahas joined
rubihas left
sonnyhas left
sonnyhas joined
tbm16has left
tbm16has joined
Maranda[x]has joined
Axelhas joined
Half-Shothas left
homebeachhas left
Matthewhas left
uhoreghas left
Half-Shothas joined
Matthewhas joined
homebeachhas joined
uhoreghas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
Titihas left
sonnyhas left
sonnyhas joined
goffihas left
goffihas joined
goffihas left
goffihas joined
antranigvhas joined
sonnyhas left
sonnyhas joined
Patigahas left
singpolymahas left
singpolymahas joined
Axelhas left
goffihas left
adiaholichas left
goffihas joined
govanifyhas left
govanifyhas joined
moparisthebesthas left
moparisthebesthas joined
adiaholichas joined
brunrobehas joined
sonnyhas left
sonnyhas joined
beanhas left
sonnyhas left
Ray22has joined
sonnyhas joined
singpolymahas left
singpolymahas joined
singpolymahas left
singpolymahas joined
Ray22has left
antranigvhas left
antranigvhas joined
rubihas joined
eevvoorhas left
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
wladmishas left
wladmishas joined
eevvoorhas joined
Tobiashas left
Tobiashas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
goffihas left
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
Mjolnir Archonhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
Marandahas joined
goffihas joined
sonnyhas left
sonnyhas joined
rubihas left
goffihas left
goffihas joined
atomicwatchhas left
sonnyhas left
sonnyhas joined
atomicwatchhas joined
atomicwatchhas left
sonnyhas left
Tobiashas left
Tobihas left
Tobihas joined
Tobiashas joined
sonnyhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
rubihas joined
sonnyhas joined
sonnyhas left
sonnyhas joined
antranigvhas left
rubihas left
rubihas joined
adiaholichas left
atomicwatchhas joined
adiaholichas joined
sonnyhas left
sonnyhas joined
goffihas left
sonnyhas left
Tobiashas left
sonnyhas joined
Tobiashas joined
rubihas left
rubihas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
antranigvhas joined
sonnyhas left
goffihas joined
sonnyhas joined
Tobihas left
Tobiashas left
Tobihas joined
Tobiashas joined
rubihas left
rubihas joined
Titihas joined
sonnyhas left
sonnyhas joined
mhhas left
sonnyhas left
sonnyhas joined
rubihas left
mhhas joined
papatutuwawahas left
raucaohas left
neshtaxmpphas left
neshtaxmpphas joined
sonnyhas left
sonnyhas joined
Tobiashas left
Tobiashas joined
sonnyhas left
sonnyhas joined
singpolymahas left
sonnyhas left
singpolymahas joined
sonnyhas joined
adiaholichas left
adiaholichas joined
Danielhas left
Tobiashas left
Tobiashas joined
Half-Shothas left
homebeachhas left
Matthewhas left
uhoreghas left
Half-Shothas joined
Matthewhas joined
homebeachhas joined
uhoreghas joined
Danielhas joined
sonnyhas left
sonnyhas joined
sonnyhas left
sonnyhas joined
singpolymahas left
singpolymahas joined
Ray22has joined
Tobiashas left
Tobiashas joined
Tobiashas left
Tobiashas joined
mhhas left
mhhas joined
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
florettahas left
jcbrandhas left
jcbrandhas joined
mhhas left
singpolymahas left
singpolymahas joined
mhhas joined
florettahas joined
yushyinhas left
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
rubihas joined
Tobiashas left
Tobiashas joined
singpolymahas left
singpolymahas joined
singpolymahas left
singpolymahas joined
Ray22has left
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
yushyinhas joined
papatutuwawahas joined
mhhas left
sonnyhas left
sonnyhas joined
Half-Shothas left
homebeachhas left
Matthewhas left
uhoreghas left
Half-Shothas joined
Matthewhas joined
homebeachhas joined
uhoreghas joined
rubihas left
antranigvhas left
hnsr.qhas left
mhhas joined
sonnyhas left
sonnyhas joined
kinetikhas joined
sonnyhas left
sonnyhas joined
neshtaxmpphas left
neshtaxmpphas joined
catchyhas left
catchyhas joined
singpolymahas left
singpolymahas joined
antranigvhas joined
antranigvhas left
antranigvhas joined
Paganinihas joined
sonnyhas left
sonnyhas joined
Axelhas joined
antranigvhas left
bhavyhas left
bhavyhas joined
singpolymahas left
singpolymahas joined
stphas left
sonnyhas left
sonnyhas joined
mathijshas left
beanhas joined
mathijshas joined
mhhas left
Patigahas joined
MattJ
Guus, not only is it not problematic to change it, the stream id is supposed to be private information, so exposing it to others via the resource string is not a good idea
mhhas joined
MattJ
That said, I'm not aware (for clients) of anything in current use that would cause problems with the stream id being leaked. But definitely change it.
Tobiashas left
Tobihas left
Tobihas joined
Tobiashas joined
Zash
Was it not used in the pre-SASL authentication?
Zash
Like, as a nonce
Tobiashas left
Tobiashas joined
MattJ
I think so, yes
Zash
> Concatenate the Stream ID received from the server with the password.
Indeed
Zash
Heh, resource binding as part of auth, why did that get broken out into its own roundtrip? https://xmpp.org/extensions/xep-0078.html#example-3
kinetikhas left
govanifyhas left
govanifyhas joined
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
singpolymahas left
Half-Shothas left
homebeachhas left
Matthewhas left
uhoreghas left
Half-Shothas joined
Matthewhas joined
homebeachhas joined
uhoreghas joined
singpolymahas joined
pablohas joined
raucaohas joined
govanifyhas left
govanifyhas joined
Yagizahas joined
Guus
MattJ: thanks - that was my primary reason for wanting to change it. That change has now been merged.
MattJ
Great :)
sonnyhas left
sonnyhas joined
MattJ
Zash, probably because SASL has no concept of a "resource"
MattJ
but now it's moving back with SASL/bind 2
Zash
:)
Maranda[x]has left
Maranda[x]has joined
sonnyhas left
sonnyhas joined
antranigvhas joined
djorzhas joined
marchas left
rubihas joined
Guus
for non-bidirectional federation, is there a (good) reason to allow/facilitate one-way connections? Openfire, in certain circumstances, will now prevent an outbound connection to be established when it determines that the inbound connection's auth will fail. I wonder if that's right.
MattJ
How does it determine "the inbound auth will fail"?
beanhas left
jgarthas joined
mhhas left
mhhas joined
sonnyhas left
sonnyhas joined
singpolymahas left
Guus
it presents a certificate that we won't validate, and dialback is not available.
singpolymahas joined
Guus
(it might still accept our certificate)
rubihas left
robertooohas left
robertooohas joined
stphas joined
gooyahas left
gooyahas joined
pablohas left
govanifyhas left
govanifyhas joined
singpolymahas left
singpolymahas joined
sonnyhas left
sonnyhas joined
Titihas left
pablohas joined
govanifyhas left
govanifyhas joined
pablohas left
kinetikhas joined
xeckshas left
neoxhas left
chipmnkhas joined
stphas left
Ray22has joined
Ingolfhas left
xeckshas joined
Ingolfhas joined
MattJ
You don't know that you'll see the same certificate if you connect back
kinetikhas left
MattJ
In fact if the cert is not trusted, that could be even more likely (since it may not be from the real server for that domain)
Zash
I guess that was one (unintentional) benefit of Dialback, ensuring bidirectional connectivity.