Commit Graph

77 Commits

Author SHA1 Message Date
Hunter Miller
9044733986
Merge pull request #249 from sidnym-ladrut/sl/vitals-connection-check-fixes
patch many minor issues with `vitals/connection-check.hoon` thread
2024-02-15 15:33:27 -06:00
fang
480d88c6b4
docket: call +fip appropriately
It's no longer a parser, so stop calling as like such.
2024-02-13 16:59:40 +01:00
Hunter Miller
5595d03d73 Merge branch 'develop' into lf/fix-encoding 2024-01-30 11:10:45 -06:00
Hunter Miller
a8422fa5d4
docket: remove errant log 2024-01-30 11:03:44 -06:00
Liam Fitzgerald
adb321ae18 docket: fix sigpam 2024-01-23 09:38:04 -05:00
Liam Fitzgerald
9689b802dd docket: fix handling of multi-dot files 2024-01-22 16:16:55 -05:00
Jōshin
9826f4a978
landscape: add public url base to S3 configuration
This enables using [Cloudflare R2][0] as a storage provider.

Cloudflare R2 is an S3-compatible API with a generous free tier; it
looks like it may cost nothing for most Urbit ships’ usage patterns.
The only hitch is that R2’s endpoint is not able to be configured to
be publicly readable; in order to [make a bucket public][1], you must
either use an r2.dev URL, or set up your own custom URL. Caching and
such is only supported on your own URL, so it sounds like that’s the
case they’re encouraging people to target.

This change enables R2 support by adding a configuration option to
set a public URL base. If it is non-empty, it replaces the origin
for any S3 upload URLs. A ship may use either its r2.dev URL or a
custom URL at its discretion. As a nice side benefit, this also
allows wrapping S3 access over a custom domain that you control.

[0]: https://www.cloudflare.com/developer-platform/r2/
[1]: https://developers.cloudflare.com/r2/buckets/public-buckets/
2024-01-19 13:32:48 -05:00
Sidnym Ladrut
b57ce3a7d9 update vitals infra to return most positive qos instead of crashing in edge cases 2024-01-17 20:37:18 +00:00
Sidnym Ladrut
e1088e1e55 patch many minor issues with 'vitals/connection-check.hoon' thread
* skip sponsor checks for galaxies (avoids a crash in /app/vitals/hoon)
* mark peers unknown to %ames as %dead (avoids a crash in /ax/peers/...)
* change thread input from @p to (unit @p) (allow calling from dojo)
2024-01-08 18:52:10 +00:00
fang
bc00efd341
contacts: fix %kick handling
And, crucially, re-establish subscriptions in the cases that got broken
by the poor %kick handling. These are cases where we think %chi
(subscription established), but there is no matching subscription to be
found in the bowl.

Fixes LAND-1407, or at least its common cause.
2023-12-19 20:41:13 +01:00
Liam Fitzgerald
50fa744d5c %docket: handle both new and old url encoding cases
Avoids having to force all third party developers to push new globs
synchronously with this update. We simultaneously support unencoded and
encoded paths by only url encoded if the unencoded path does not exist
in the glob.
2023-12-06 15:00:48 -05:00
fang
3121d3e471
Revert "Merge pull request #237 from liam-fitzgerald/lf/fix-url-encdoe"
This reverts commit 3c0961007f, reversing
changes made to 4b4384ed96.
2023-11-29 21:45:04 +01:00
Liam Fitzgerald
46cc5eba23
docket: remove unnecessary flopping
Co-authored-by: Hunter Miller <svarty1@gmail.com>
2023-11-14 11:53:05 +00:00
Liam Fitzgerald
bae2de96e4 docket: handle URL encoding when uploading dockets 2023-11-13 12:10:04 +00:00
Liam Fitzgerald
a943e90a42 docket: handle URL encoding on the requesters side 2023-11-13 12:09:27 +00:00
midsum-salrux
f350471f78
Update desk/app/reel.hoon
Co-authored-by: Hunter Miller <svarty1@gmail.com>
2023-10-24 11:48:50 -04:00
~midsum-salrux
8546be7940 Clear old outstanding pokes 2023-10-24 11:44:55 -04:00
~midsum-salrux
2e258af94e Expire outstanding pokes after 1hr 2023-10-24 11:36:40 -04:00
Hunter Miller
bedf6135a6 storage: update for presigned urls 2023-10-17 18:49:36 -05:00
~midsum-salrux
fe1d88b90b New serialization scheme to avoid mismatches from URL 2023-10-13 11:12:46 -04:00
~midsum-salrux
cf1620a638 Add sigpam for testing 2023-10-13 10:44:54 -04:00
~midsum-salrux
4d08efbff4 Merge branch 'ns/genuine' of github.com:tloncorp/landscape into ns/genuine 2023-10-11 15:53:07 -04:00
~midsum-salrux
f0767e5c62 Store secret unserialized 2023-10-11 15:52:40 -04:00
midsum-salrux
beb0721095
Update desk/app/genuine.hoon
Co-authored-by: fang <github@fang.io>
2023-10-11 15:49:01 -04:00
~midsum-salrux
bf1d254ce0 Small formatting changes 2023-10-11 15:08:09 -04:00
~midsum-salrux
8d6148ab9e %genuine agent 2023-10-11 14:29:56 -04:00
~midsum-salrux
a73d500096 Remove src.bowl check for public endpoint 2023-10-10 13:06:03 -04:00
fang
a3f689f2ea
growl: rename %default to %initialize 2023-10-06 20:29:54 +02:00
fang
bde54ec4e3
growl: don't scry during +on-load
The upgrade from %0 to %1 was calling into +on-init, which issues a
scry. In some cases, that might not be able to complete successfully,
aborting the whole event that triggered the load.

Here, we move this "set flag based on settings" logic into a %default
poke command, and change the +on-load logic to set a timer that calls
that instead, defering the scry to the next event.
2023-10-06 20:20:05 +02:00
fang
245503f5e7
bark: clear bark data on-opt-out
We shouldn't leave stale data in the mailchimp database, but rather wipe
any data we've collected for users that are explicitly opting out.
2023-10-05 10:24:31 +02:00
fang
f254e9c294
growl: don't fumble the activity logging consent
Previous logic for reading %settings-event facts was a little to eager
in declaring explicit non-consent. It would also set the flag to false
in cases where we received updates not matching what we were looking
for.

Now, it's not entirely certain that this was a problem, but we did
observe "disabled growl" on ships that had the setting toggle on the
frontend set to true, and this seemed like the only viable cause of
that.

We also update +on-load to re-set the flag from the current settings
value, to correct any lingering mismatching states.
2023-10-04 10:55:20 +02:00
Hunter Miller
539e468e49 threads: reference correct desk 2023-08-14 17:27:34 -05:00
Hunter Miller
19504208ea meta: 412 compat 2023-08-10 12:41:48 -05:00
Hunter Miller
11eeb54975 Merge branch 'master' into hm/desk-renaming 2023-08-04 15:14:42 -05:00
fang
1f0456d08b
bark: correctly handle save-summary thread results
We weren't accounting for the different wire used for this, causing us
to spill our spaghetti and redirect processing to +on-fail, which wasn't
very graceful.

Now, we can actually properly notify on failed thread runs.
2023-07-28 21:05:03 +02:00
fang
e3bb719986
bark: don't crash during +on-fail 2023-07-28 21:04:40 +02:00
fang
7455e2d778
bark, growl: activity summary logging
Includes the bark/growl system for sharing activity summaries. The growl
agent respects the "activity logging" consent flag used by groups,
defaults to not sharing if that flag is not set, and only shares with
the "bark host" when prompted. (The bark host, in turn, currently only
stores responses for hosted ships.)

Also includes all the groups-side dependencies this has, which it needs
for the chats & groups types. Hard-including those files will save us
some run-around during deploy.

Co-authored-by: midsum-salrux <nathan@tlon.io>
2023-07-24 22:27:29 +02:00
fang
166f70578d
various: remove unused /sur/hark dependency 2023-07-24 21:44:06 +02:00
fang
70b102c818
growl: en/disable based on logActivity setting 2023-07-21 18:42:51 +02:00
fang
ba534b31cd
growl: correct defaults 2023-07-21 18:42:19 +02:00
fang
312ee60dc9
bark: assume deployment into the garden desk 2023-07-20 15:21:03 +02:00
fang
6d61042794
bark: minimally viable fake-mark handling 2023-07-19 20:23:39 +02:00
fang
3945cc1f5f
bark: store mailchimp list-id in bark
Alongside the mailchimp api key, we now store the list-id for the
contacts lists which we're updating.
2023-07-18 23:31:30 +02:00
fang
8b6d268745
bark: automatically run daily summary generation 2023-07-14 19:57:28 +02:00
fang
f2fec50b50
bark: stop handling old summary response types
Growl isn't actually live on any ships yet, so we do not need to account
for this case.
2023-07-14 19:30:58 +02:00
fang
7cfff00218
growl: use /lib/summarize to give better summaries 2023-07-14 18:08:16 +02:00
fang
f5e32a54d0
bark: accept new-style summaries
And use the -save-summary thread to add the received details to our
mailchimp contact database.
2023-07-14 18:04:23 +02:00
Hunter Miller
e7f0afa7b3 landscape: fixing urls 2023-07-13 12:46:44 -05:00
Hunter Miller
f2ae94b67d hark,contacts: updating from groups 2023-07-13 12:46:25 -05:00
Patrick O'Sullivan
3970ace734 notify on long-running app install, use react-query for docket
- Adds a mutation to create a yarn from the frontend.
- Adds a new zustand state for tracking actions that could take a while (WatcherStore).
- Switches docket over to react-query (added a new scry endpoint as part of this).
2023-07-11 18:08:04 -05:00