Commit Graph

32963 Commits

Author SHA1 Message Date
Joe Bryan
8b1e66c6a1 Merge branch 'next/kelvin/411' into next/hoon/138 2023-10-04 21:58:48 -04:00
fang
14266c8d46
eyre: GETting non-existent channels 404s
Contrary to the argument made by 4affae8, this is the _actually correct_
behavior. Not creating server-side resources in response to GETs
respects the expected method semantics, and more importantly, serving a
404 is an important signal for clients trying to connect to a channel
they were using previously. Without that, they have no way of telling
whether, when reconnecting, if their channel was reaped in the mean time
or not.

The "empty PUT" affordance provided by 34148f9 makes requiring a PUT
request for channel creation more reasonable.

We leave the general refactoring done by #6789 in place, but do
emphasize the reasoning given here with a few additional comments.
2023-10-04 22:42:50 +02:00
Pyry Kovanen
10db04b944
Merge pull request #6813 from urbit/412k-1
Merge 412k-1 to master
2023-10-03 19:33:53 +03:00
Pyry Kovanen
b977864bec eyre: allow header-list to contain multiple cookies 2023-10-03 19:17:20 +03:00
fang
fec9950d21
eyre: prevent login redirect loops
Instead of auto-redirecting the login page if we're already logged in,
we simply present it as normal. If we're logged in as the local
identity, we present just a "continue" button in place of the +code
input field. If we're authenticated through eauth, or as a guest, we
present a smaller "proceed as" link underneath the login form.

This way, when apps redirect to the login page because the visitor isn't
_sufficiently_ authenticated, eyre doesn't just throw them right back
into the app with still insufficient creds.
2023-10-03 17:25:46 +02:00
Pyry Kovanen
6b97c2e8da clay: return all takos in /cs/bloc scry 2023-10-03 16:55:00 +03:00
Pyry Kovanen
a960e85d92 runtime-version: parse current version properly 2023-10-03 16:54:19 +03:00
pkova
60cc1c815c base: check for team:title in all places 2023-10-03 16:51:14 +03:00
yosoyubik
5e48ff75de gall: add %15 state migration 2023-10-03 09:40:45 +02:00
yosoyubik
08bca75012 Merge branch 'develop' into yu/fix-ames-gall-desync 2023-10-02 16:15:59 +02:00
pkova
2232a7ca3f clay: iterate over all aeons in +read-at-tako 2023-10-02 17:15:55 +03:00
Pyry Kovanen
bdb906340d
Merge pull request #6812 from urbit/master
Merge master back to develop after 412k
2023-10-02 17:01:35 +03:00
Pyry Kovanen
d4068d4d68
Merge branch 'develop' into master 2023-10-02 16:41:23 +03:00
Pyry Kovanen
524df3040e
Merge pull request #6811 from urbit/412k
Merge 412k to master
2023-10-02 16:33:30 +03:00
Pyry Kovanen
4dae191124
ames: fix merge mishap in previous commit 2023-10-02 16:21:15 +03:00
Pyry Kovanen
e4ff8f15c8
Merge branch 'master' into 412k 2023-10-02 15:50:50 +03:00
yosoyubik
c5abe6bd31 Merge branch 'develop' into yu/fix-ames-gall-desync 2023-10-02 12:33:20 +02:00
tinnus-napbus
ebf1eb4a41
Merge pull request #6780 from urbit/desk-publisher-switcher
kiln: Desk publisher switcher (UIP-0111)
2023-09-30 14:49:04 +13:00
tinnus-napbus
387a780ca9
Merge branch 'next/kelvin/411' into desk-publisher-switcher 2023-09-30 13:13:47 +13:00
Tinnus Napbus
21fe99ac47 kiln: tweak jump mark structures 2023-09-30 13:09:19 +13:00
Joe Bryan
c3b41ebdf0
Merge pull request #6751 from urbit/jb/cnts-gol
hoon: fix gol type enforcement for trivial %cnts
2023-09-29 12:02:21 -04:00
Joe Bryan
9a774af4fd
Merge pull request #5884 from urbit/m/wuthax
hoon: make ?# wuthax work correctly
2023-09-29 11:49:12 -04:00
Pyry Kovanen
46d7089e41
Merge pull request #6809 from urbit/pkova/runtime-version-fix
runtime-version: parse current version properly
2023-09-29 18:22:26 +03:00
Joe Bryan
36430464fd Merge branch 'develop' into next/kelvin/411 2023-09-29 11:05:36 -04:00
Pyry Kovanen
53a7854a95
Merge pull request #6807 from urbit/pkova/reachable-takos
clay: iterate over all aeons in +read-at-tako
2023-09-29 17:10:56 +03:00
Pyry Kovanen
fb3579c3a9
runtime-version: parse current version properly 2023-09-29 16:00:03 +03:00
Pyry Kovanen
fba71e44ff
Merge pull request #6808 from urbit/pkova/bloc
clay: return all takos in /cs/bloc scry
2023-09-29 15:56:02 +03:00
Pyry Kovanen
55787fed62
clay: return all takos in /cs/bloc scry 2023-09-28 19:22:53 +03:00
pkova
042340e8e4 clay: iterate over all aeons in +read-at-tako 2023-09-26 21:02:41 +03:00
Pyry Kovanen
33bb61c323
Merge pull request #6799 from urbit/pkova/http2-cookie
eyre: allow header-list to contain multiple cookies
2023-09-21 16:21:51 +03:00
Pyry Kovanen
5fe2d6ea98 eyre: allow header-list to contain multiple cookies 2023-09-21 14:00:53 +03:00
Pyry Kovanen
b764e4d310
Merge pull request #6801 from urbit/revert-6800-revert-6793-tinnus/kiln-ota-approval
Revert "Revert "kiln: OTA merge approval (UIP 114)""
2023-09-21 13:58:41 +03:00
Pyry Kovanen
6b94db25be
Revert "Revert "kiln: OTA merge approval (UIP 114)"" 2023-09-21 13:55:55 +03:00
Pyry Kovanen
a0f664b03f
Merge pull request #6800 from urbit/revert-6793-tinnus/kiln-ota-approval
Revert "kiln: OTA merge approval (UIP 114)"
2023-09-21 13:45:43 +03:00
Pyry Kovanen
bca8e46895
Revert "kiln: OTA merge approval (UIP 114)" 2023-09-21 13:39:23 +03:00
Pyry Kovanen
9486ada012
Merge pull request #6793 from urbit/tinnus/kiln-ota-approval
kiln: OTA merge approval (UIP 114)
2023-09-20 14:58:29 +03:00
Pyry Kovanen
e0afd123c7
Merge branch 'next/kelvin/411' into tinnus/kiln-ota-approval 2023-09-20 14:29:36 +03:00
Pyry Kovanen
68e029339b
Merge pull request #6741 from lukechampine/http-scry
eyre: add HTTP scrying
2023-09-19 19:56:37 +03:00
Pyry Kovanen
fbab1a2e82 eyre: revert strange typo in previous commit 2023-09-19 19:45:23 +03:00
Pyry Kovanen
417906051d eyre: add missing wire to rof calls in http-scry codepath 2023-09-19 19:45:23 +03:00
lukechampine
5ff263e78d eyre: add HTTP scrying 2023-09-19 19:45:23 +03:00
Pyry Kovanen
37db4ab4a8
Merge pull request #6797 from urbit/develop
Merge develop into next/kelvin/411
2023-09-19 19:45:02 +03:00
Pyry Kovanen
5ff4e88890
Merge pull request #6789 from urbit/m/lighter-channel-creation
eyre: more permissive channel creation
2023-09-19 19:26:46 +03:00
fang
34148f9f44 eyre: allow PUTting empty channel-request list
Previously, we would reject this with a 400 error. Considering the
request body is expected to contain "array of requests" and that arrays
may be empty, we really should not be rejecting the requests.

Prior to 156ca21472, sending the empty array would have been convenient
for channel creation. Empty arrays getting rejected forced clients to
inject a faux poke (commonly hi-ing oneself). With that recent change,
the most common case for wanting to PUT the empty list of requests is
largely obsolete, but one can still imagine it being useful for clients
that want to keep their channel alive without necessarily being
connected to it. This also implements sloppier clients from running into
400 responses when they submit an empty "command queue" for whatever.

Regardless, there seems to be no clear reason why the empty request list
_shouldn't_ be accepted and processed as normal.

We add a small test to ensure eyre accepts this.
2023-09-19 19:12:25 +03:00
fang
4affae8181 eyre: GETting non-existent channels creates them
Previously, a channel could only be created by sending a PUT request,
and a GET request to receive the channel's stream would only succeed
after channel creation had happened that way. This forces client
libraries, that generally have an explicit "set up" step before allowing
normal operation, to do strange things, like sending faux pokes
(commonly hi-ing oneself) before connecting to the channel's stream as
normal.

Here, we update the GET request handling for channels to allow requests
for non-existent channels. When this happens, the channel will be
created, and eyre tracks the request as normal.

We do some... gentle restructuring... of +on-get-request:by-channel to
let the new creation case share code with the "already exists" codepath.
In the process, we find that duct-to-key was never getting updated in
the case where we replace the original channel request/connection with
the new incoming one. We fix this, it's trivial. We also identify two
other areas with vaguely-incorrect behavior, but consider them less
important and out of scope.

We also add a test case for "create channel through GET".
2023-09-19 19:12:25 +03:00
Pyry Kovanen
e355b5090e
Merge pull request #6783 from urbit/pkova/dear
lull, ames: add %dear task to receive lane from unix
2023-09-19 15:56:43 +03:00
Pyry Kovanen
c846dea16b
Merge pull request #6796 from urbit/develop
Merge develop into next/kelvin/411
2023-09-19 13:56:24 +03:00
Pyry Kovanen
30dcd3808e
Merge pull request #6745 from urbit/m/dead-agent-503
eyre: serve 503 if bound agent is not running
2023-09-18 16:04:56 +03:00
fang
b427c9e800 eyre: serve 503 if bound agent is not running
Previously, for endpoints bound to agents, we would pass the request
onto the agent even if the agents wasn't currently running.

Here, we make eyre check to see if the agent is actually running, before
passing the request on. If the bound agent is not running, eyre serves a
503 synchronously instead.

This way, we avoid cluttering up the gall queue for the bound agent.
2023-09-18 15:52:28 +03:00
Pyry Kovanen
3c3ade381b
Merge pull request #6792 from urbit/pkova/toggle-dead-flow
ames: make dead flow consolidation toggleable, default off
2023-09-15 18:15:47 +03:00