Skip to content

Commit 966313e

Browse files
committed
feat(netbird): implement secure infrastructure and configuration management
- Add Terraform stack for AWS infrastructure deployment - Include Ansible roles and playbooks for server and reverse proxy setup - Provide infrastructure modules for database and Keycloak integration - Sanitize all configuration files by removing sensitive domains, IPs, and credentials - Ensure all sensitive variables use placeholders for secure customization
1 parent fe87ac8 commit 966313e

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ monitor-netbird/kubernetes/helm/monitoring-stack/charts/_loki/
5555
.vivus
5656
.agent
5757
*.tfvars
58+
.elastic-copilot
59+
.zencoder
60+
.zenflow
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
all:
22
vars:
33
# NetBird Configuration
4-
netbird_domain: "netbird.net.observe.camer.digital"
4+
netbird_domain: "vpn.example.com"
55
netbird_version: "latest"
6-
relay_auth_secret: "b&{iWS+B}X>9IpiG#XS(2pLBGSX{vmFW"
7-
coturn_password: "[HlY!rSbtF?gpu(6Ya}=F0=jt0D%wBdY"
8-
netbird_encryption_key: "J1tVwuoWBOxGIpXY25tO82WhzzPQWHFGxv0Il6Zw2R0="
6+
relay_auth_secret: "CHANGE_ME"
7+
coturn_password: "CHANGE_ME"
8+
netbird_encryption_key: "CHANGE_ME"
99

1010
# Database Configuration
1111
database_type: "sqlite"
@@ -15,11 +15,11 @@ all:
1515
sqlite_database_path: "/var/lib/netbird/store.db"
1616

1717
# Keycloak Configuration
18-
keycloak_url: "https://keycloak.net.observe.camer.digital/auth"
18+
keycloak_url: "https://keycloak.example.com/auth"
1919
keycloak_realm: "netbird"
2020
keycloak_client_id: "netbird-client"
21-
keycloak_client_secret: "ye07XoCAqazpRSWMwkn6RLloeZlujciA"
22-
keycloak_oidc_endpoint: "https://keycloak.net.observe.camer.digital/auth/realms/netbird/.well-known/openid-configuration"
21+
keycloak_client_secret: "CHANGE_ME"
22+
keycloak_oidc_endpoint: "https://keycloak.example.com/auth/realms/netbird/.well-known/openid-configuration"
2323

2424
# Ansible Connection
2525
ansible_user: "ubuntu"
@@ -29,15 +29,15 @@ all:
2929
management:
3030
hosts:
3131
net:
32-
ansible_host: 16.171.59.171
33-
private_ip: 172.31.4.141
32+
ansible_host: 1.2.3.4
33+
private_ip: 10.0.0.1
3434
reverse_proxy:
3535
hosts:
3636
net:
37-
ansible_host: 16.171.59.171
38-
private_ip: 172.31.4.141
37+
ansible_host: 1.2.3.4
38+
private_ip: 10.0.0.1
3939
relay:
4040
hosts:
4141
net:
42-
ansible_host: 16.171.59.171
43-
private_ip: 172.31.4.141
42+
ansible_host: 1.2.3.4
43+
private_ip: 10.0.0.1

infrastructure/ansible-stack/terraform.tfvars

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ enable_ha = false # MUST be false for SQLite
4848
# enable_ha = true
4949

5050
# Common Variables
51-
netbird_domain = "netbird.net.observe.camer.digital"
51+
netbird_domain = "vpn.example.com"
5252
cloud_provider = "aws"
5353
environment = "prod"
5454
aws_region = "eu-north-1"
55-
aws_tag_filters = { "Name" = "net" }
55+
aws_tag_filters = { "Name" = "netbird" }
5656

5757
# Keycloak Configuration
58-
keycloak_url = "https://keycloak.net.observe.camer.digital/auth"
58+
keycloak_url = "https://keycloak.example.com/auth"
5959
keycloak_admin_username = "admin"
60-
keycloak_admin_password = "password123!"
61-
keycloak_admin_client_secret = "rk9v8yewnXKOZ1oAbXktyHIIUl7rDVob"
60+
keycloak_admin_password = "CHANGE_ME"
61+
keycloak_admin_client_secret = "CHANGE_ME"
6262
keycloak_use_existing_realm = false
6363

6464
# Authentication Secrets (Leave empty to generate automatically)
@@ -70,7 +70,7 @@ netbird_log_level = "info"
7070

7171
# Default Administrator
7272
netbird_admin_email = "admin@example.com"
73-
netbird_admin_password = "qwerty12345!A"
73+
netbird_admin_password = "CHANGE_ME"
7474

7575
# SSH Configuration for Ansible
7676
ssh_user = "ubuntu"

0 commit comments

Comments
 (0)