mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
feat: allow setting Internet Resource from headless client (#10553)
Currently, the Internet Resource cannot be toggled on/off in the headless client. With #10509, the default state of the Internet Resource is now disabled, meaning users of the headless client are no longer able to use the Internet Resource. We fix this by introducing a new CLI argument `--activate-internet-resource` that can also be set via the env variable `FIREZONE_ACTIVATE_INTERNET_RESOURCE=true`. Resolves: #8342
This commit is contained in:
@@ -101,6 +101,16 @@ struct Cli {
|
||||
#[arg(short = 'i', long, env = "FIREZONE_ID")]
|
||||
firezone_id: Option<String>,
|
||||
|
||||
/// Activate the Internet Resource.
|
||||
///
|
||||
/// To actually use the Internet Resource, the user must also have a policy granting access to the Internet Resource.
|
||||
#[arg(
|
||||
long,
|
||||
env = "FIREZONE_ACTIVATE_INTERNET_RESOURCE",
|
||||
default_value_t = false
|
||||
)]
|
||||
activate_internet_resource: bool,
|
||||
|
||||
/// Disable sentry.io crash-reporting agent.
|
||||
#[arg(long, env = "FIREZONE_NO_TELEMETRY", default_value_t = false)]
|
||||
no_telemetry: bool,
|
||||
@@ -341,7 +351,7 @@ fn try_main() -> Result<()> {
|
||||
Arc::new(tcp_socket_factory),
|
||||
Arc::new(UdpSocketFactory::default()),
|
||||
portal,
|
||||
false,
|
||||
cli.activate_internet_resource,
|
||||
rt.handle().clone(),
|
||||
);
|
||||
|
||||
|
||||
@@ -13,6 +13,10 @@ export default function Headless({ os }: { os: OS }) {
|
||||
<ChangeItem pull="10533">
|
||||
Improves reliability by caching DNS responses as per their TTL.
|
||||
</ChangeItem>
|
||||
<ChangeItem pull="10553">
|
||||
Adds a CLI switch `--activate-internet-resource`. By default, the
|
||||
Internet Resource is now off.
|
||||
</ChangeItem>
|
||||
</Unreleased>
|
||||
<Entry version="1.5.3" date={new Date("2025-09-10")}>
|
||||
<ChangeItem pull="10126">
|
||||
|
||||
Reference in New Issue
Block a user