Sign inSign up

hedius/bfacpcloudflaresync

By hedius

•Updated almost 2 years ago

Syncs users of your BFACP installation to Cloudflare ZeroTrust Access.

Image
0

1.1K

hedius/bfacpcloudflaresync repository overview

⁠E4GL BFACP to Cloudflare Zero Trust Syncer

Discord Docker Pulls

This project syncs users of your Battlefield Admin Control panel to Cloudflare ZeroTrust access groups. Syncs are performed once per minute to apply changes asap to the gateway. An internal cache is used to hold the state at Cloudflare in memory to reduce requests to Cloudflare.

It is possible to assign a BFACP role to several Cloudflare access groups. Furthermore, several roles can be assigned to an access group.

Follow the setup to get this tool running.

⁠Setup

⁠docker (docker-compose)

  1. clone the repository
  2. adjust docker-compose.yml with your settings if needed
    • vim docker-compose.yml
  3. cp config.ini.example config.ini and adjust the config.
  4. sudo docker-compose up -d

⁠Configuration

[AdKatsDB]
host =
port = 3306
user =
pw =
db =

[Cloudflare]
# Cloudflare API token
# Needs edit permissions for : account - access: organisation, identity providers and groups
# + Include your ZeroTrust account
token =
# The ID of your ZeroTrust account.
# You can extract it from the URL:
# https://one.dash.cloudflare.com/{account_id}/home
account_id =

[GroupMapping]
# Mapping between access groups and BFACP groups
# Key = Access Group
# Value = BFACP roles/groups with access to this group
# Seperator between groups: ,
# Example:
Admin = First Tier Admin, Second Tier Admin
Management = Server Management

⁠Updating

  1. sudo docker-compose down --rmi all
  2. git pull
  3. sudo docker-compose up -d

⁠License

This project is free software and licensed under the GPLv3.

Tag summary

Content type

Image

Digest

sha256:0fb46a911…

Size

402.1 MB

Last updated

almost 2 years ago

docker pull hedius/bfacpcloudflaresync