mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
# Gateways - [x] When Gateway Group is deleted all gateways should be disconnected - [x] When Gateway Group is updated (eg. routing) broadcast to all affected gateway to disconnect all the clients - [x] When Gateway is deleted it should be disconnected - [x] When Gateway Token is revoked all gateways that use it should be disconnected # Relays - [x] When Relay Group is deleted all relays should be disconnected - [x] When Relay is deleted it should be disconnected - [x] When Relay Token is revoked all gateways that use it should be disconnected # Clients - [x] Remove Delete Client button, show clients using the token on the Actors page (#2669) - [x] When client is deleted disconnect it - [ ] ~When Gateway is offline broadcast to the Clients connected to it it's status~ - [x] Persist `last_used_token_id` in Clients and show it in tokens UI # Resources - [x] When Resource is deleted it should be removed from all gateways and clients - [x] When Resource connection is removed it should be deleted from removed gateway groups - [x] When Resource is updated (eg. traffic filters) all it's authorizations should removed # Authentication - [x] When Token is deleted related sessions are terminated - [x] When an Actor is deleted or disabled it should be disconnected from browser and client - [x] When Identity is deleted it's sessions should be disconnected from browser and client - [x] ^ Ensure the same happens for identities during IdP sync - [x] When IdP is disabled act like all actors for it are disabled? - [x] When IdP is deleted act like all actors for it are deleted? # Authorization - [x] When Policy is created clients that gain access to a resource should get an update - [x] When Policy is deleted we need to all authorizations it's made - [x] When Policy is disabled we need to all authorizations it's made - [x] When Actor Group adds or removes a user, related policies should be re-evaluated - [x] ^ Ensure the same happens for identities during IdP sync # Settings - [x] Re-send init message to Client when DNS settings change # Code - [x] Crear way to see all available topics and messages, do not use binary topics any more --------- Co-authored-by: conectado <gabrielalejandro7@gmail.com>
110 lines
3.1 KiB
Elixir
110 lines
3.1 KiB
Elixir
defmodule Web.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :web,
|
|
version: String.trim(File.read!("../../VERSION")),
|
|
build_path: "../../_build",
|
|
config_path: "../../config/config.exs",
|
|
deps_path: "../../deps",
|
|
lockfile: "../../mix.lock",
|
|
elixir: "~> 1.14",
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
start_permanent: Mix.env() == :prod,
|
|
aliases: aliases(),
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[
|
|
mod: {Web.Application, []},
|
|
extra_applications: [
|
|
:logger,
|
|
:runtime_tools,
|
|
:dialyzer
|
|
]
|
|
]
|
|
end
|
|
|
|
defp elixirc_paths(:test), do: ["test/support", "lib"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
defp deps do
|
|
[
|
|
# Umbrella deps
|
|
{:domain, in_umbrella: true},
|
|
|
|
# Phoenix/Plug deps
|
|
{:phoenix, "~> 1.7.0"},
|
|
{:phoenix_html, "~> 4.0"},
|
|
{:phoenix_ecto, "~> 4.4"},
|
|
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
|
{:phoenix_live_view, "~> 0.20.1"},
|
|
{:plug_cowboy, "~> 2.7"},
|
|
{:gettext, "~> 0.20"},
|
|
{:remote_ip, "~> 1.0"},
|
|
|
|
# CLDR and unit conversions
|
|
{:ex_cldr_dates_times, "~> 2.13"},
|
|
{:ex_cldr_numbers, "~> 2.31"},
|
|
{:sizeable, "~> 1.0"},
|
|
|
|
# Asset pipeline deps
|
|
{:esbuild, "~> 0.7", runtime: Mix.env() == :dev},
|
|
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
|
|
|
|
# Observability and debugging deps
|
|
{:telemetry_metrics, "~> 0.6"},
|
|
{:telemetry_poller, "~> 1.0"},
|
|
{:recon, "~> 2.5"},
|
|
{:observer_cli, "~> 1.7"},
|
|
|
|
# Mailer deps
|
|
{:phoenix_swoosh, "~> 1.0"},
|
|
{:gen_smtp, "~> 1.0"},
|
|
|
|
# Observability
|
|
{:opentelemetry_cowboy, "~> 0.2.1"},
|
|
{:opentelemetry_liveview, "~> 1.0.0-rc.4"},
|
|
{:opentelemetry_phoenix, "~> 1.1"},
|
|
{:nimble_options, "~> 1.0", override: true},
|
|
|
|
# Other deps
|
|
{:jason, "~> 1.2"},
|
|
{:file_size, "~> 3.0.1"},
|
|
{:nimble_csv, "~> 1.2"},
|
|
|
|
# Test deps
|
|
{:floki, ">= 0.30.0", only: :test},
|
|
{:bypass, "~> 2.1", only: :test},
|
|
{:bureaucrat, "~> 0.2.9", only: :test},
|
|
{:wallaby, "~> 0.30.0", only: :test},
|
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
|
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
|
|
{:junit_formatter, "~> 3.3", only: [:test]},
|
|
{:mix_audit, "~> 2.1", only: [:dev, :test]},
|
|
{:sobelow, "~> 0.12", only: [:dev, :test]}
|
|
]
|
|
end
|
|
|
|
defp aliases do
|
|
[
|
|
setup: ["deps.get", "assets.setup", "assets.build"],
|
|
"assets.setup": [
|
|
"cmd cd assets && CI=true pnpm i",
|
|
"tailwind.install --if-missing",
|
|
"esbuild.install --if-missing"
|
|
],
|
|
"assets.build": ["tailwind web", "esbuild web"],
|
|
"assets.deploy": ["tailwind web --minify", "esbuild web --minify", "phx.digest"],
|
|
"ecto.seed": ["ecto.create", "ecto.migrate", "run ../domain/priv/repo/seeds.exs"],
|
|
"ecto.setup": ["ecto.create", "ecto.migrate"],
|
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
|
"phx.server": ["ecto.create --quiet", "ecto.migrate", "phx.server"],
|
|
test: ["ecto.create --quiet", "ecto.migrate", "test"]
|
|
]
|
|
end
|
|
end
|