Commit Graph

374 Commits

Author SHA1 Message Date
Jamil
6b9231a21b chore(portal): Save MAU billing for a future feature update (#4414)
Just updating the UI to be a bit more consistent.

Will be nice to offer MAU billing along with directory sync to Team plan
in a future feature release.

<img width="635" alt="Screenshot 2024-03-31 at 8 49 01 AM"
src="https://github.com/firezone/firezone/assets/167144/4a309035-527b-4d4f-96d3-d5b8abeaa03b">
2024-04-07 09:26:05 -07:00
Jamil
703b397a86 chore(portal): Add Sign in from sign up form (#4529) 2024-04-05 20:18:55 -07:00
Andrew Dryga
e2ee6bbc5e chore(portal): Add users limit and use it as default limit for accounts (#4527)
A manual migration will be needed (run
`Domain.Ops.sync_pricing_plans()`) to sync the limits for all the
accounts.
2024-04-05 15:20:02 -06:00
Andrew Dryga
5e3161c553 Fix typo 2024-04-03 19:25:49 -06:00
Andrew Dryga
f29bf5010b chore(portal): Increase websocket api timeout to 307 seconds (#4489) 2024-04-03 17:24:07 -06:00
Andrew Dryga
e8dc190879 Fix tests 2024-04-03 11:01:05 -06:00
Andrew Dryga
4f012fe8f9 hotfix: enforce default address description while it's hidden 2024-04-03 09:54:44 -06:00
Andrew Dryga
6e60ca0803 hotfix: try a different workaround to fix flaky bypass test 2024-04-02 13:33:11 -06:00
Andrew Dryga
4bd692bc6c hotfix: Log Account ID on billing portal errors 2024-04-02 13:14:50 -06:00
Andrew Dryga
8f4e6a2540 hotfix: Do not raise on 4XX status codes when connecting a provider 2024-04-02 13:14:50 -06:00
Andrew Dryga
2fc18fa538 Add ops script to sync all subscription plans
This is helpful when we update a plan limits and want to pull them to all the accounts
2024-04-02 12:31:08 -06:00
Andrew Dryga
2468a12b49 chore(portal): Fix flaky test (#4454)
Closes #4410
2024-04-02 10:37:37 -06:00
Jamil
38a373a6b9 fix(portal): Correct Edit account page title and label (#4412)
Fixes #4411
2024-03-31 19:52:06 +00:00
Andrew Dryga
51afb4c227 fix(portal): Persist first user email to Stripe during account sign up (#4408) 2024-03-30 13:40:52 -06:00
Andrew Dryga
0c794a374f chore(portal): Increase page size to maximum when using MS Graph API (#4399)
For very large accounts we will make 9x less requests, meaning less
changes for timeout and no additional rountrips to the API.
2024-03-30 09:10:14 -06:00
Brian Manifold
f5bb02d36e refactor(portal): Move actor groups to own table in actor show page (#4392)
Why:

* When viewing an actor in the portal, all of the groups were listed in
the top info table. This works for a small number of groups, but becomes
difficult to use when an actor is in a large number of groups. This
commit moves that information to it's own `live_table` element so that
it's easier to parse and can be paginated.
2024-03-29 14:50:04 -06:00
Andrew Dryga
595e058e47 fix(portal): Reuse code across sync jobs, only lock one row per job and fetch data asynchronously (#4396) 2024-03-29 14:48:24 -06:00
Jamil
1cfa80399e fix(connlib): Don't roll log files (#4390)
Fixes #4377 
Closes #3910 

If we decide to implement diagnostic log collection in the future it
will be opt-in and use something like Sentry.
2024-03-29 04:24:24 +00:00
Andrew Dryga
fe1a627f4b Create everyone group on account sign up (#4388) 2024-03-28 17:23:08 -06:00
Andrew Dryga
2cf63cb33a fix(portal): Serve static files with digests at root (#4386)
Closes #4384
2024-03-28 16:13:13 -06:00
Andrew Dryga
dc75a075b9 fix(porta): Greatly improve HTTP 500 error page (#4382)
<img width="1728" alt="Screenshot 2024-03-28 at 15 00 19"
src="https://github.com/firezone/firezone/assets/1877644/174c54c2-b958-416f-ad50-9c2af4103bfc">
2024-03-28 15:39:12 -06:00
Andrew Dryga
582a5efaa3 fix(portal): Do not redact userpass virtual state (its a virtual field anyway) (#4370)
Closes #4354
2024-03-28 15:29:51 -06:00
Andrew Dryga
e56883ae33 chore(portal): Sign ref that is sent to the gateway (#4368)
Closes #4360
2024-03-28 15:29:39 -06:00
Andrew Dryga
40864567f2 fix(portal): Filter group actors by group id (#4369)
Closes #4365
2024-03-28 15:28:08 -06:00
Brian Manifold
0a0746f463 style(portal): Update portal UI polish/consistency (#4367)
Why:

* This commit was not intended to be a sweeping UI change, but rather a
quick pass over the portal to make sure things were consistent and also
to update small UI elements that were discussed offline.
2024-03-28 18:47:16 +00:00
Andrew Dryga
35d0cd7701 chore(portal): Update Gateways deploy UI (#4352)
Closes #4019

<img width="1728" alt="Screenshot 2024-03-27 at 14 53 30"
src="https://github.com/firezone/firezone/assets/1877644/a2b8850e-49b7-4379-9851-5cb5453018d5">

<img width="1728" alt="Screenshot 2024-03-27 at 14 53 32"
src="https://github.com/firezone/firezone/assets/1877644/5b35c045-6db8-4522-bba8-794d68eae879">
2024-03-28 11:59:09 -06:00
Andrew Dryga
fab95483e8 hotfix: reload dns config before sending it 2024-03-27 18:48:41 -06:00
Andrew Dryga
7e73039710 hotfix: slug extraction from not formatted hubspot website url 2024-03-27 18:48:40 -06:00
Andrew Dryga
6f376eb6a6 chore(portal): Temporarily hide address description (#4351)
Closes #4250
2024-03-27 15:09:41 -06:00
Andrew Dryga
e9ad85e939 chore(portal): Encode client reply pid and socket ref instead of storing it (#4349) 2024-03-27 14:08:42 -06:00
Brian Manifold
ab35a5ea76 fix(portal): Fix bug in actor edit page preventing updates (#4347)
Why:

* A bug was present in the actor edit page that prevented updating an
actor due to managed and synced groups being sent as part of the form
submission. Along with that, if a user manually removed the managed
group(s) from the form submission, the actor being edited would be
removed from the managed group, which should not be allowed.

* There was also another small bug which prevent an admin actor from
being updated at all if they were the only admin in the account.
2024-03-27 13:20:13 -06:00
Andrew Dryga
55935428b3 fix(portal): Allow deleting synced actors after all identities are removed (#4346) 2024-03-27 13:18:03 -06:00
Andrew Dryga
21d2ca358b fix(portal): Fix pagination issues with flows and activities, improve error handling around live tables (#4330)
Fixes issues from logs.
Closes #4274 and similar issues for activities.
Simplifies error handling for live tables (we just reset filters with a
message when they are invalid because just showing an error 422 is not
actionable).
2024-03-27 13:03:19 -06:00
Gabi
24e0641871 chore: set rust log level to info for gateways and client (#4319)
- [x] Updated log level string for client and gateways to info or higher
- [x] Update logs to hide DNS information

I also removed `hickory_resolve` errors which could contain sensitive
info from our general error and hide the logs that specifically relates
to them.

@bmanifold double checking that the log levels in the gateway's `*.tf`
files are just used for our own gateways.

Also, the relays still have `debug`, since only we see that I think that
makes sense but double checking with @jamilbk

Fixes: #3618.

---------

Signed-off-by: Gabi <gabrielalejandro7@gmail.com>
Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com>
2024-03-27 01:39:12 +00:00
Andrew Dryga
4844422a31 Fix online status on clients page (#4307)
Closes #4271
2024-03-25 14:00:42 -06:00
Andrew Dryga
1cb6ab6dc4 chore(Portal): Remove simple forms, change navbar links, fix form styles (#4239)
Closes #4237
Closes #2015

There are new links in the navbar and the floating status badge is
replaced with a link in the burger menu too:


https://github.com/firezone/firezone/assets/1877644/2d72f6d7-a14a-4e56-808d-2e703eca158a
2024-03-25 10:24:24 -06:00
Brian Manifold
f5286d0927 feat(portal): Add styled errors pages (404, 422, 500) (#4231)
Closes #2136 

## Screenshots for `404` and `500`

<img width="781" alt="Screenshot 2024-03-20 at 1 16 46 PM"
src="https://github.com/firezone/firezone/assets/2646332/e08e338f-b5b5-4a6a-adb8-b53fe9e8e137">

<img width="916" alt="Screenshot 2024-03-20 at 1 16 30 PM"
src="https://github.com/firezone/firezone/assets/2646332/e19238bf-804d-4f60-bbb3-8cf3f4c89d1f">
2024-03-22 15:26:00 +00:00
Andrew Dryga
29cc0096a8 chore(portal): Fix flaky test and relays load balancing selection (#4230)
A few gifts for @thomaseizinger 

Unblocks
https://github.com/firezone/firezone/pull/4213#issuecomment-2007187811
Closes #3838
2024-03-20 16:33:47 -06:00
Andrew Dryga
8195ac1893 feat(portal): Sync accounts between stripe and portal (#4173)
Closes #3888
2024-03-20 16:32:07 -06:00
Andrew Dryga
392adc9e45 fix(portal): Fix various issues with presence-triggered table reloads (#4228)
Also, cover that code with tests.
2024-03-20 14:35:52 -06:00
Andrew Dryga
a339828570 chore(portal): DRY live table error handling and handle errors via page reloads (#4205)
I also added whole bunch of tests for the live tables.

Closes #4189
2024-03-19 12:26:41 -06:00
Andrew Dryga
370a45571c Track protocol in activities (#4215)
Closes #4046
Closes #3026
2024-03-19 12:26:12 -06:00
Andrew Dryga
09dbd70dc5 chore(infra): Use Regional Instance Group in the GCP NAT example (#4183)
This example will work once our latest gateway is pushed to GitHub
Container Registry, but to test it for now a few overrides can be added
to the `main.tf` to use our Google Artifact Registry and local module
instead:
```diff
module "gateways" {
--  source = "github.com/firezone/firezone/terraform/modules/google-cloud/apps/gateway-region-instance-group"
++  source = "../../../modules/google-cloud/apps/gateway-region-instance-group"
...
++  container_registry = "us-east1-docker.pkg.dev"
++  image_repo         = "firezone-prod/firezone"
++  image              = "gateway"
}
```

---------

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Andrew Dryga <andrew@dryga.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2024-03-19 08:44:14 -06:00
Andrew Dryga
24dc7be6bb Hotfix disabled sign up message 2024-03-18 22:12:08 -06:00
Andrew Dryga
5a0aff1d75 chore(portal): Re-enable Finch as API client for Swoosh (#4197)
Blocked by https://github.com/swoosh/swoosh/issues/881
2024-03-18 17:49:16 -06:00
Andrew Dryga
62df3fb89c Stop using Finch as Swoosh http client 2024-03-18 08:56:05 -06:00
Andrew Dryga
7e3271c205 fix(portal): Start finch pool for swoosh 2024-03-18 08:28:20 -06:00
Brian Manifold
2c7f45cc99 feat(portal): Add sign up override in portal (#3739)
Why:

* In order to allow easy testing of billing / Stripe integration, the
staging environment needs to allow members of the Firezone team access
to create new accounts, while disallowing the general public to create
accounts. The account creation override functionality allows for
multiple domains to be set by ENV variable by passing a comma separated
string of domains.

---------

Co-authored-by: Andrew Dryga <andrew@dryga.com>
2024-03-17 18:12:25 -06:00
Andrew Dryga
cd7cb8f2a9 chore(portal): Fix some typos (#4184)
@bmanifold fixed a few instances in #3739 but I went ahead and replaced
all of them, once we merge it and rebase #3739 on top of it the diff
should be minimal.
2024-03-17 17:33:30 -06:00
Andrew Dryga
1270f34565 Hotfix jobs scheduling 2024-03-16 16:40:52 -06:00