
Stop Exposing Your Vault: Secure NodeWarden with Cloudflare
The moment your NodeWarden is exposed to the public on the Internet, it starts attracting thousands of automated bots scrapping for vulnerabilities 24/7.
The moment your NodeWarden is exposed to the public on the Internet, it starts attracting thousands of automated bots scrapping for vulnerabilities 24/7. To protect your sensitive data, You need to put NodeWarden instance in the maximum lockdown possible.
To secure your NodeWarden instance, you can use one of two Cloudflare features:
- Cloudflare IP Access Rules: Allows you to block, challenge, or permit traffic based on specific IP addresses or countries.
- Cloudflare Zero Trust (Recommend): Acts as a secure gateway that makes your NodeWarden instance completely invisible to the public, only letting authorised users through.
Why we recommend Cloudflare Zero Trust
We strongly advise using Cloudflare Zero Trust since IP Access Rules are tied to IP addresses or countries, meaning you need to manually update the your rules every time you travel or if you have a dynamic IP address. Cloudflare Zero Trust on the other hand relies on your identity, not your location—giving you seamless, secure access to NodeWarden.
Configuration Guide
Follow these steps to configure Cloudflare Zero Trust for NodeWarden.
Phase 1: Getting Started
- In your Cloudflare dashboard, click on 'Zero Trust' from left menu

- Click on 'Access controls' then click on 'Applications'

- You may be asked to 'Choose a plan'.

- Click on the 'Choose a plan' button and choose the 'Zero Trust Free'.

Phase 2: Secure Your Web Interface
First, we will create an application to protect the NodeWarden web dashboard.
- Click on 'Create new application' to create the first application

- Choose the 'Self-hosted and private'

- Enter the domain name of the NodeWarden.

- Click on 'Create new policy' to create a policy.

- Select 'Emails' and enter an email under 'Policy rules'.

- Enter a name and select 'Allow' under 'Policy details'.

- Click 'Save Policy' to create the policy.
- Enter a name and select '1 month' under the 'Details' section.

- Click on 'Create' to create the application.
- Test it: Open the domain on the web browser, you will see the 'Cloudflare Access' asking for email.

Phase 3: Allow BitWarden Clients Syncing (API Bypass)
The desktop and mobile BitWarden apps cannot process Cloudflare's email login screen, we need to create a second application that allows traffic to bypass the login screen specifically for API syncing.
- Go back to Applications and click Create new application, choosing Self-hosted and private again.
- Enter the 'api/', 'identity/', 'notifications/', and 'icons/' in the Destinations.

- Click on 'Create new policy' to create a policy.

- Select 'Everyone' under 'Policy rules'.

- Enter a name and select 'Bypass' under 'Policy details'.

- Click 'Save Policy' to create the policy.
- Enter a name and select '1 month' for 'Session Duration'.

- You should have 2 applications created.

Final thought
Just remember that Cloudflare is your outer shield. To maintain a truly secure vault, ensure you are still using a strong master password, utilising Two-Factor Authentication (2FA) , and keeping your Cloudflare account secure.
How to Self-Host a BitWarden Compatible Password Vault
Your passwords are your most critical digital property, and keeping them secure means keeping them in your own hands.
Solving AI Agent Skills Fragmentation with npx skills
Running multiple AI agents like Claude Code or Kimi? Learn how to fix skills fragmentation and manage a single, centralized skills folder using npx skills CLI.