boostport / setup-cloudflare-warp Goto Github PK
View Code? Open in Web Editor NEWAccess Cloudflare Zero-Trust applications in GitHub Actions Workflows
License: Apache License 2.0
Access Cloudflare Zero-Trust applications in GitHub Actions Workflows
License: Apache License 2.0
The Post Run Boostport/setup-cloudflare-warp
step runs for approximately 2 minutes on end.
The post-action step appears to be running /usr/bin/warp-cli --accept-tos settings
repeatedly for approximately 2 minutes
Post job cleanup.
/usr/bin/sudo rm /var/lib/cloudflare-warp/mdm.xml
/usr/bin/warp-cli --accept-tos settings
Merged configuration:
(derived) Always On: true
(network policy) Switch Locked: false
(network policy) Mode: WarpWithDnsOverHttps
(local policy) Disabled for Wifi: false
(local policy) Disabled for Ethernet: false
(network policy) Resolve via: ***
(default) Onboarding: true
(network policy) Exclude mode, with hosts/ips:
...
(network policy) Fallback domains:
...
(local policy) Daemon Teams Auth: true
(network policy) Disable Auto Fallback: false
(network policy) Captive Portal: 180
(network policy) Support URL: [email protected]
(local policy) Organization: org-name
(local policy) Auth Client ID: ***
(network policy) Allow Mode Switch: false
(network policy) Allow Updates: true
(local policy) Allowed to Leave Org: false
(network policy) LAN Access Settings: Allowed until reconnect on a /24 subnet
(network policy) Profile ID: default
/usr/bin/warp-cli --accept-tos settings
Merged configuration:
(derived) Always On: true
(network policy) Switch Locked: false
(network policy) Mode: WarpWithDnsOverHttps
(local policy) Disabled for Wifi: false
(local policy) Disabled for Ethernet: false
(network policy) Resolve via: ***
(default) Onboarding: true
(network policy) Exclude mode, with hosts/ips:
...
(network policy) Fallback domains:
...
(local policy) Daemon Teams Auth: true
(network policy) Disable Auto Fallback: false
(network policy) Captive Portal: 180
(network policy) Support URL: [email protected]
(local policy) Organization: org-name
(local policy) Auth Client ID: ***
(network policy) Allow Mode Switch: false
(network policy) Allow Updates: true
(local policy) Allowed to Leave Org: false
(network policy) LAN Access Settings: Allowed until reconnect on a /24 subnet
(network policy) Profile ID: default
... this continues for ~2 minutes ...
I have been experimenting with Cloudflare WARP cli in GitHub actions and found your workflow which I have been testing with.
I ran into an issue where the MDM policy is not applied by the daemon immediately after the config file is written /var/lib/cloudflare-warp/mdm.xml
. In actual fact it takes 2-3 secs before the policy becomes active.
This results in WARP client instead connecting to 'free' generic WARP account instead of a teams device enrollment, so my Cloudflare Access applications are not reachable by the workspace.
I have implemented a solution which repeatedly checks the output of warp-cli settings
to see if the MDM policy is applied and the device is enrolled in the organization, at which point it continues as normal invoking warp-cli connect
. Of note is that the call to warp-cli register
is not necessary when using MDM enrolled devices, so that has been removed:
main...ben-pearce:setup-cloudflare-warp:main
I have only tested with the most recent version of the warp client for Linux (2023.3.398
at present). I am not sure if this is backwards compatible with old versions. I do not know if this is functionality that has changed more recently in the latest versions of WARP client.
I personally believe this is poor design on Cloudflare's part, the MDM policy should be able to be passed in as a command line argument (ex: --mdm-file /var/lib....
) which would force the daemon to use that config file immediately.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.