Commit Graph

7575 Commits

Author SHA1 Message Date
pkova
042340e8e4 clay: iterate over all aeons in +read-at-tako 2023-09-26 21:02:41 +03:00
Pyry Kovanen
5fe2d6ea98 eyre: allow header-list to contain multiple cookies 2023-09-21 14:00:53 +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
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
pkova
58698a428c ames: cancel pump timers when toggling to dead flow consolidation 2023-09-14 22:48:58 +03:00
pkova
bf4d7c92e1 ames: make dead flow consolidation toggleable, default off 2023-09-14 18:35:26 +03:00
Pyry Kovanen
babfd75daf
roller-rpc: do not assert team:title for http-requests 2023-09-13 14:57:28 +03:00
midden-fabler
dabff19cd9 gall: add scry endpoint for backups 2023-09-06 17:34:34 -04:00
Pyry Kovanen
328e085e41
lick: initialize unix-duct before %born 2023-09-05 16:17:06 +03:00
pkova
6a6e07d49f lull, ames: add %dear task to receive lane from unix 2023-09-04 22:09:52 +03:00
Pyry Kovanen
4bb9bae2d2
arvo: add provenance when casting forward move 2023-08-23 19:06:14 +03:00
Pyry Kovanen
3260e4fe05 eyre: handle old wires correctly in +on-gall-response 2023-08-22 21:37:15 +03:00
Pyry Kovanen
a1f9374145
Merge pull request #6756 from urbit/pkova/dead-flow-fix
ames: fix bug in dead flow consolidation
2023-08-21 18:29:39 +03:00
yosoyubik
8320e7dbf2 ames: update dead flow timers in state 2023-08-21 14:03:38 +03:00
yosoyubik
4da54b9e4d ames: reinitialize recork timer 2023-08-21 14:03:38 +03:00
yosoyubik
e6bc865425 gall: fix error 2023-08-18 16:52:54 +02:00
yosoyubik
7242e56be5 gall: clear leaves.state after handling all leaves
Instead of setting a new timer every time, we wait to hear a new %nack
for a %leave to do so, accumulating any unacked %leaves in the state for
up to ~m2. When the timers comes back, we re-send all outsanting %leaves
and skipp setting up a new timer.
2023-08-18 13:57:16 +02:00
yosoyubik
be0bbc78c5 Merge branch 'yu/decongest-ames-in-develop' into yu/fix-state-migrations 2023-08-18 08:16:26 +02:00
yosoyubik
19f5946e72 ames: only reinitialize congestion if bunted 2023-08-17 15:22:09 +02:00
yosoyubik
def2591812 ames: reinitialize congestion control values 2023-08-17 15:22:03 +02:00
yosoyubik
ce2582cc3a ames: only reinitialize congestion if bunted 2023-08-17 15:13:10 +02:00
yosoyubik
9b1ea79991 ames: reinitialize congestion control values 2023-08-17 15:05:53 +02:00
yosoyubik
cf937374c8 gall: put +on-bad-nonce log under %odd flag
The change introduced in 5422715c9b makes it very frequent for subscribers
to get stale facts on the subscriptions they are trying to leave so to not
clutter their dojo, we put the log under the %odd flag
2023-08-16 14:20:34 +02:00
yosoyubik
5422715c9b gall: send %cork only if hearing %ack for %leave 2023-08-16 10:47:20 +02:00
yosoyubik
58b678505f roller: fix state migration 2023-08-16 10:23:52 +02:00
Pyry Kovanen
c276ddd476
ames: fix bug in dead flow consolidation 2023-08-15 16:15:55 +03:00
fang
a9e3ebb780
eyre: avoid +got'ing a channel that doesn't exist
+on-gall-response might detect the symptom of a bug, where we are
getting a %fact for a channel that has since been deleted. (Meaning that
subscription should have been cleaned up, and we shouldn't have received
the %fact.) We want to issue a %leave, but need to take care to do so
with the same identity that the subscription was opened on.

Previously, we would forcefully get the identity from the non-existent
channel, resulting in a crash. Now, we encode the identity into the wire
instead, so that we may retrieve it from there, even when the channel is
long gone.
2023-08-10 11:33:08 +02:00
Pyry Kovanen
330d134a1c
Merge pull request #6737 from urbit/ja/eyre-login-412
eyre: cosmetic updates to login form
2023-07-28 19:26:19 +03:00
Pyry Kovanen
3cfc3cf235
Merge pull request #6740 from urbit/pkova/bane
lull, ames: add %tame task to delete a route for a ship
2023-07-28 18:59:50 +03:00
Pyry Kovanen
46c567f75f
Merge pull request #6700 from urbit/philip/stale
ames: Don't check for lane staleness
2023-07-28 18:35:02 +03:00
Pyry Kovanen
32665022d2
Merge pull request #6733 from urbit/remove-deprecated-arms
zuse: remove deprecated arms
2023-07-28 18:30:36 +03:00
pkova
facd6994b0 lull, ames: add %tame task to delete a route for a ship 2023-07-28 18:15:04 +03:00
Pyry Kovanen
19d7fe0f85
Merge pull request #6738 from urbit/pkova/dead-flow-consolidation
ames: consolidate dead flows to a single behn timer
2023-07-28 17:32:08 +03:00
James Acklin
4bbe46adc1 eyre: cosmetic updates to login form
Makes cosmetic changes to the login page of eyre. This addresses an issue with insufficient contrast between text elements and their backgrounds in dark mode.
2023-07-28 16:36:53 +03:00
Marcus
ef6965c882 zuse: remove deprecated arms 2023-07-28 16:33:55 +03:00
pkova
82d4e2a265 ames: add comment explaining magic number in +set-wake 2023-07-28 16:33:34 +03:00
pkova
ff21513864 ames: fix indentation in dead flow handling 2023-07-28 16:33:34 +03:00
pkova
45924f7571 ames: store dead flow consolidation timer in state 2023-07-28 16:33:34 +03:00
pkova
d2956a3233 ames: consolidate dead flows to a single behn timer 2023-07-28 16:33:34 +03:00
pkova
7bea0038e5 clay: propagate [~ ~] properly from read-x 2023-07-28 16:32:49 +03:00
Pyry Kovanen
c35aabcebf
Merge pull request #6744 from urbit/develop
Merge develop into next/kelvin/412
2023-07-28 16:32:35 +03:00
Pyry Kovanen
a061ef1ffc
Merge pull request #6686 from midden-fabler/dojo-errors
dojo: better generator errors
2023-07-24 18:22:04 +03:00
Pyry Kovanen
897d00334f
Merge branch 'next/kelvin/412' into yu/enable-close-flows 2023-07-24 16:58:13 +03:00
Pyry Kovanen
983cba3724
Merge pull request #6697 from urbit/remove-deprecated-json-calls
json: remove deprecated JSON parser calls
2023-07-24 16:20:27 +03:00
Marcus
be853b5a1a kiln: avoid downloading updates for uninstalled desks 2023-07-24 16:15:48 +03:00
Pyry Kovanen
82f9ed43bc
Merge pull request #6703 from urbit/fix-html-conversions
mar: better html-related conversions
2023-07-24 16:14:49 +03:00
Marcus
71ccdbe4ab json: remove deprecated JSON parser calls 2023-07-24 15:18:11 +03:00
Marcus
a42b74bc5c mar: better HTML-related conversions 2023-07-24 15:16:56 +03:00
silnem2
d6362cb293 dojo: fix gall scries in +to-command 2023-07-24 15:16:04 +03:00
silnem2
b254524aaf kiln: change deprecated %cd scry 2023-07-24 15:10:54 +03:00
silnem2
23bb0eb35e kiln: rewrite +poke-uninstall to unsync suspended desks 2023-07-24 15:10:54 +03:00
pkova
8565fb5f8b Merge branch 'develop' into next/kelvin/412 2023-07-24 14:58:31 +03:00
Matthew LeVan
46575dc2fe base: add pace to next revision in -runtime-version 2023-07-19 17:10:50 +03:00
Pyry Kovanen
efb92ad0c0 ames: ignore old rifts in +on-take-flub 2023-07-18 19:35:03 +03:00
fang
9f2c97f95e
lull: add %'PATCH' to $method:http
As of RFC 5789, PATCH is a valid HTTP request method. The $method:http type,
however, did not include it.

Here, we add it to the $method:http type, so that it now includes all nine
standard HTTP methods.
2023-07-12 15:56:51 +02:00
pkova
985350d2b5 ames: address style nits 2023-07-11 18:32:19 +03:00
pkova
a5f88cb24e ames: use abet pattern for flubbing 2023-07-11 18:19:56 +03:00
pkova
4fe9de8194 lull, gall, hoon: drop pokes for non-running agents 2023-07-11 17:36:09 +03:00
Pyry Kovanen
8f5d29fb73
Merge pull request #6695 from urbit/pkova/delete-nonsense
%base: delete /app/gaze and /ted/naive-csv
2023-07-10 18:51:21 +03:00
Pyry Kovanen
77b0c4c40f
base: update output format in /ted/read 2023-07-10 15:30:07 +03:00
Pyry Kovanen
ff06119f93
base: fix output format in /ted/code 2023-07-10 15:28:57 +03:00
Pyry Kovanen
65508d56a6
base: fix hi thread output formatting 2023-07-10 15:21:09 +03:00
midden-fabler
0543f4e8b1 dojo: high level error at bottom 2023-07-07 23:55:14 -04:00
midden-fabler
8f5497d687
Merge branch 'develop' into dojo-errors 2023-07-07 15:32:21 -04:00
Pyry Kovanen
1211767269
zuse: fix to-wain jet mismatch 2023-07-05 14:40:36 +03:00
midden-fabler
b3be753727 spider: move spider tree 2023-07-04 02:11:03 -04:00
midden-fabler
1c07314ff5 dojo: revise error conditions 2023-07-04 00:30:21 -04:00
Philip Monk
a136355bbd ames: remove lane staleness checks 2023-06-30 15:03:16 -07:00
yosoyubik
f56db0f460 ames: better naming in queued event migrations 2023-06-30 15:26:20 +02:00
yosoyubik
c4e5d3c963 Merge branch 'yu/fix-drop-nack-state' into yu/enable-close-flows 2023-06-30 14:54:30 +02:00
yosoyubik
3b9a22bb5c Merge branch 'next/kelvin/412' into yu/fix-drop-nack-state 2023-06-30 14:32:13 +02:00
yosoyubik
437f943fbd ames: update pill 2023-06-30 14:31:36 +02:00
yosoyubik
caea585c31 Merge branch 'develop' into next/kelvin/412 2023-06-30 12:22:09 +02:00
yosoyubik
f89045364b Merge branch 'next/kelvin/412' into yu/fix-drop-nack-state 2023-06-30 12:21:15 +02:00
yosoyubik
48a4b9ad32 ames: add 15-to-16 state migration
The 14-to-15 state migration was released in urbit-os-v2.142
so we add a new ames-state-16 to account for the removal of
.num-live from $pump-metrics.

This also adds several `$+` shorthand type name for better
prettyprinting in nest-fails situations, all related to the types in
$ames-state.

(note: ames states 14 and 15 are the same, ane tha migration
 just re-retrieved our own %rift—first introduced in state-12-to-13)
2023-06-30 12:15:38 +02:00
yosoyubik
28dd843e60 Merge branch 'develop' into yu/enable-close-flows 2023-06-30 10:18:40 +02:00
yosoyubik
b76c4d4a67 ping: don't no-op if pinging ourselves 2023-06-29 16:47:52 +02:00
yosoyubik
57308e22ef ames: clean up %kroc tasks in old ames-state
The %kroc task was introduced in ames-state-10. The way the
migration works, is that queued-events are transformed right
away into the latests version, and the state is done step-wise in
different arms, but in one go as part of the +molt arm.

This means that all states from %10 need to handle cleaning up
the %kroc task, with the addition that we were already handling
another tasks, %snub, from ames-state-9 until ames-state-11.
This means that we need to handle both tasks in two different
ames-states, and from them only the %kroc task.

This also adds several $+ to the ames types, that make nest-failures
easier to read.
2023-06-29 15:25:18 +02:00
yosoyubik
5fd372dfcb ames: don't crash if flow for a target bone is ~
The fact that the target bone of a flow that we have received is a
naxplanation doesn't guarantee that there will be a naxplanation
flow (i.e. we have actually sent one) so instead of crashing, we just
continue processing the next bone.
2023-06-29 10:49:51 +02:00
yosoyubik
235bfb6b8b ames: re-add +on-deep:ev
probably removed in one of the merges(?)
2023-06-29 09:58:01 +02:00
yosoyubik
2d31adb4a3 Merge branch 'next/kelvin/412' into yu/enable-close-flows 2023-06-29 09:27:48 +02:00
yosoyubik
5bcf7b70c3 ames: add provenance path to the sock 2023-06-28 17:48:07 +02:00
Joe Bryan
d280fbcdbb
Merge branch 'develop' into next/kelvin/412 2023-06-28 11:19:32 -04:00
Joe Bryan
b1cb1f1a77
Merge pull request #6665 from urbit/dr/make-vane-txt-hash-ux
arvo: print vane hashes as hashes, not `@p`s
2023-06-28 10:00:42 -04:00
yosoyubik
20cb84d037 Merge branch 'next/kelvin/412' into yu/enable-close-flows 2023-06-28 15:51:37 +02:00
yosoyubik
a20a2fffc8 Merge branch 'next/kelvin/412' into yu/fix-drop-nack-state 2023-06-28 15:47:06 +02:00
pkova
aa8c6dd0e0 %base: delete /app/gaze and /ted/naive-csv 2023-06-28 15:10:36 +03:00
yosoyubik
b359239f3d Merge branch 'develop' into next/kelvin/412 2023-06-28 12:52:18 +02:00
Philip Monk
d6c9ac708e Merge remote-tracking branch 'origin/develop' into philip/ping 2023-06-27 22:20:05 -07:00
Philip Monk
38af985ef0 ping: silence spurious printf 2023-06-27 21:54:43 -07:00
Philip Monk
f4188e61af ping: ping the other ship, not ourselves 2023-06-27 20:39:42 -07:00
Philip Monk
ccd9e1936f ping: don't parse ips 2023-06-27 19:37:42 -07:00
Philip Monk
69f45adc49 ping: fixes 2023-06-27 19:14:20 -07:00
Philip Monk
f5602cedbc ping: turn off auto-verb 2023-06-27 19:12:00 -07:00
Philip Monk
42bc4303e5 ping: restrict pokes to self 2023-06-27 18:48:29 -07:00
Joe Bryan
bd0a058c60
Merge pull request #6598 from urbit/m/eyre-mirage
eyre: eauth, cross-ship authentication
2023-06-27 18:34:35 -04:00
fang
f3d1cd3ca4
eyre: simplify internal $note and $sign type style 2023-06-27 23:15:00 +02:00
fang
b2326167cc
dbug: update for recent eyre type changes 2023-06-27 23:09:39 +02:00