Skip to content

Commit f2d3ced

Browse files
authored
changed defguard to Defguard (#78)
1 parent 7a92dc6 commit f2d3ced

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Sleep for 10 seconds
3838
working-directory: temp
3939
run: sleep 10s
40-
- name: Test defguard is available
40+
- name: Test Defguard is available
4141
working-directory: temp
4242
run: curl -f http://id.localhost/api/v1/health
4343
- name: Stop compose stack

charts/defguard/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ autoscaling:
1212
cookie:
1313
domain: ""
1414
insecure: false
15-
# defguard full name override
15+
# Defguard full name override
1616
fullnameOverride: ""
17-
# defguard name override
17+
# Defguard name override
1818
nameOverride: ""
19-
# defguard-core container image configuration
19+
# Defguard-core container image configuration
2020
image:
2121
pullPolicy: IfNotPresent
2222
repository: ghcr.io/defguard/defguard
2323
tag: "" # overrides .Chart.AppVersion
24-
# defguard-core container image pull secrets
24+
# Defguard-core container image pull secrets
2525
imagePullSecrets: []
26-
# defguard-core ingress configuration
26+
# Defguard-core ingress configuration
2727
ingress:
2828
grpc:
2929
annotations: {}

docker-compose/.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DEFGUARD_URL=<YOUR_DEFGUARD_URL>
2020
# Webauthn RP ID (https://w3c.github.io/webauthn/#rp-id)
2121
# E.g.: defguard.mycompany.com (without http/https)
2222
DEFGUARD_WEBAUTHN_RP_ID=<YOUR_DEFGUARD_WEBAUTHN_RP_ID>
23-
# Public URL of your defguard proxy gRPC server
23+
# Public URL of your Defguard proxy gRPC server
2424
# DEFGUARD_PROXY_URL=<YOUR_PROXY_GRPC_URL>
2525
# Public URL of your enrollment service
2626
# E.g.: https://enrollment.mycompany.com

docker-compose/setup.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
# shellcheck shell=bash
33

4-
# This is a script that sets up an entire defguard instance (including core,
4+
# This is a script that sets up an entire Defguard instance (including core,
55
# gateway, enrollment proxy and reverse proxy). It's goal is to prepare
66
# a working instance by running a single command.
77

@@ -261,7 +261,7 @@ print_header() {
261261
_EOF_
262262
echo -e "${C_END}"
263263
echo
264-
echo "defguard docker-compose deployment setup script v${VERSION}"
264+
echo "Defguard docker-compose deployment setup script v${VERSION}"
265265
echo -e "Copyright (C) 2023-2024 ${C_BOLD}teonite${C_END} <${C_BG_GREY}${C_YELLOW}https://teonite.com${C_END}>"
266266
echo
267267
}
@@ -278,7 +278,7 @@ print_usage() {
278278
echo
279279
echo -e "\t--help this help message"
280280
echo -e "\t--non-interactive run in non-interactive mode - !REQUIRES SETTING all options/env vars"
281-
echo -e "\t--domain <domain> domain where defguard web UI will be available"
281+
echo -e "\t--domain <domain> domain where Defguard web UI will be available"
282282
echo -e "\t--enrollment-domain <domain> domain where enrollment service will be available"
283283
echo -e "\t--use-https configure reverse proxy to use HTTPS"
284284
echo -e "\t--volume <directory> Docker volumes directory - default: ${VOLUME_DIR}"
@@ -491,7 +491,7 @@ load_configuration_from_input() {
491491
echo -ne "${C_ITALICS}${C_LBLUE}"
492492
cat << _EOF_
493493
494-
Please provide the values to configure your defguard instance. If you've
494+
Please provide the values to configure your Defguard instance. If you've
495495
already configured some options by setting environment variables or through
496496
CLI options, those will be used as defaults.
497497
@@ -504,7 +504,7 @@ echo -ne "${C_GREY}"
504504
cat << _EOF_
505505
506506
Choose domains that will be used to expose your instance through Caddy
507-
reverse proxy. defguard uses a separate domain for the Web UI, and for
507+
reverse proxy. Defguard uses a separate domain for the Web UI, and for
508508
the optional enrollment/desktop client configuration/password reset
509509
service.
510510
@@ -530,7 +530,7 @@ _EOF_
530530

531531
while [ X${domain} = "X" ]; do
532532
echo -ne "${C_YELLOW}${TXT_INPUT}${C_END} "
533-
read -p "Enter defguard domain [default: ${CFG_DOMAIN}]: " domain
533+
read -p "Enter Defguard domain [default: ${CFG_DOMAIN}]: " domain
534534
if [ "$domain" ]; then
535535
CFG_DOMAIN="$domain"
536536
fi
@@ -644,7 +644,7 @@ validate_required_variables() {
644644
}
645645

646646
generate_external_urls() {
647-
# prepare full defguard URL
647+
# prepare full Defguard URL
648648
if [ $CFG_USE_HTTPS ]; then
649649
CFG_DEFGUARD_URL="https://${CFG_DOMAIN}"
650650
else
@@ -664,7 +664,7 @@ generate_external_urls() {
664664

665665
print_config() {
666666
echo
667-
echo " ${TXT_BEGIN} Setting up your defguard instance with following config:"
667+
echo " ${TXT_BEGIN} Setting up your Defguard instance with following config:"
668668
echo
669669
echo -e " ${TXT_SUB} data volume: ${C_BOLD}${VOLUME_DIR}${C_END}"
670670
echo
@@ -716,7 +716,7 @@ generate_certs() {
716716
# TODO: allow configuring CA parameters
717717
openssl req -x509 -new -nodes -key ${SSL_DIR}/defguard-ca.key -sha256 -days 1825 -out ${SSL_DIR}/defguard-ca.pem -passin pass:"${PASSPHRASE}" -subj "/C=PL/ST=Zachodniopomorskie/L=Szczecin/O=Example/OU=IT Department/CN=${CFG_DOMAIN}" 2>&1 >> ${LOG_FILE}
718718

719-
# generate CA-signed certificate for defguard gRPC
719+
# generate CA-signed certificate for Defguard gRPC
720720
openssl genrsa -out ${SSL_DIR}/defguard-grpc.key 2048 2>&1 >> ${LOG_FILE}
721721

722722
openssl req -new -key ${SSL_DIR}/defguard-grpc.key -out ${SSL_DIR}/defguard-grpc.csr -subj "/C=PL/ST=Zachodniopomorskie/L=Szczecin/O=Example/OU=IT Department/CN=${CFG_DOMAIN}" 2>&1 >> ${LOG_FILE}
@@ -733,7 +733,7 @@ EOF
733733
openssl x509 -req -in ${SSL_DIR}/defguard-grpc.csr -CA ${SSL_DIR}/defguard-ca.pem -CAkey ${SSL_DIR}/defguard-ca.key -passin pass:"${PASSPHRASE}" -CAcreateserial \
734734
-out ${SSL_DIR}/defguard-grpc.crt -days 1000 -sha256 -extfile ${SSL_DIR}/defguard-grpc.ext 2>&1 >> ${LOG_FILE}
735735

736-
# generate CA-signed certificate for defguard proxy gRPC
736+
# generate CA-signed certificate for Defguard proxy gRPC
737737
openssl genrsa -out ${SSL_DIR}/defguard-proxy-grpc.key 2048 2>&1 >> ${LOG_FILE}
738738

739739
openssl req -new -key ${SSL_DIR}/defguard-proxy-grpc.key -out ${SSL_DIR}/defguard-proxy-grpc.csr -subj "/C=PL/ST=Zachodniopomorskie/L=Szczecin/O=Example/OU=IT Department/CN=${CFG_DOMAIN}" 2>&1 >> ${LOG_FILE}
@@ -910,9 +910,9 @@ enable_vpn_gateway() {
910910

911911
print_instance_summary() {
912912
echo
913-
echo -e "${C_LGREEN} ${TXT_CHECK} defguard setup finished successfully${C_END}. The Docker image version used for the setup was: ${IMAGE_TYPE_NAME}"
913+
echo -e "${C_LGREEN} ${TXT_CHECK} Defguard setup finished successfully${C_END}. The Docker image version used for the setup was: ${IMAGE_TYPE_NAME}"
914914
echo
915-
echo "If your DNS configuration is correct your defguard instance should be available at:"
915+
echo "If your DNS configuration is correct your Defguard instance should be available at:"
916916
echo
917917
echo -e "\t${TXT_SUB} Web UI: ${C_BOLD}${CFG_DEFGUARD_URL}${C_END}"
918918
if [ "$CFG_ENABLE_ENROLLMENT" ]; then

index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ entries:
1515
- apiVersion: v2
1616
appVersion: 1.2.0
1717
created: "2025-01-22T13:08:49.18194+01:00"
18-
description: Defguard proxy is a public-facing proxy for core defguard service
18+
description: Defguard proxy is a public-facing proxy for core Defguard service
1919
digest: 4da4f264bea0fc94741abf1d31be308a8824f80f65a7edef2d7beb3f2ee3c0bb
2020
name: defguard-proxy
2121
type: application

terraform/modules/core/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ DEFGUARD_DB_USER="${db_username}"
5757
DEFGUARD_DB_PASSWORD="${db_password}"
5858
EOF
5959

60-
log "Enabling defguard service..."
60+
log "Enabling Defguard service..."
6161
systemctl enable defguard
6262

63-
log "Starting defguard service..."
63+
log "Starting Defguard service..."
6464
systemctl start defguard
6565

6666
%{ for network in vpn_networks ~}

terraform/modules/gateway/setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ GATEWAY_TOKEN="$${SIGNING_INPUT}.$${SIGNATURE}"
5757

5858
log "Writing gateway configuration to /etc/defguard/gateway.toml..."
5959
tee /etc/defguard/gateway.toml <<EOF
60-
# This is an example config file for defguard VPN gateway
60+
# This is an example config file for Defguard VPN gateway
6161
# To use it fill in actual values for your deployment below
6262
6363
# Required: secret token generated by defguard
6464
# NOTE: must replace default with actual value
6565
token = "$${GATEWAY_TOKEN}"
66-
# Required: defguard server gRPC endpoint URL
66+
# Required: Defguard server gRPC endpoint URL
6767
# NOTE: must replace default with actual value
6868
grpc_url = "http://${core_address}:${core_grpc_port}"
69-
# Optional: gateway name which will be displayed in defguard web UI
69+
# Optional: gateway name which will be displayed in Defguard web UI
7070
name = "${gateway_name}"
7171
# Required: use userspace WireGuard implementation (e.g. wireguard-go)
7272
userspace = false
7373
# Optional: path to TLS cert file
7474
# grpc_ca = cert.pem
75-
# Required: how often should interface stat updates be sent to defguard server (in seconds)
75+
# Required: how often should interface stat updates be sent to Defguard server (in seconds)
7676
stats_period = 60
7777
# Required: name of WireGuard interface
7878
ifname = "wg0"

0 commit comments

Comments
 (0)