AllianceAuth Authenticator for Mumble server with support for templinks
Project description
Alliance Auth - Mumble Temp Links Authenticator
This is a thoroughly reviewed version of the Authenticator.
Major changes:
- Utilized uv for project management.
- Codebase is now modular, split into several files for better organization.
- Configuration is managed through YAML files and/or environment variables. See examples.
- Implemented diskcache to cache avatars.
- Utilized diskcache to cache specific database queries, allowing the authenticator to function even if the database connection is unavailable.
- Added Docker support. See Dockerfile, docker-compose.yml.
- Included connection check to ensure proper ICE server functionality.
- Added Prometheus metrics for monitoring.
Important Warning
It is highly discouraged to run this container with multiple networks, as shown below:
networks:
network_alpha:
network_omega:
This setup can lead to issues where the callback announcement:
self.adapter = ice.createObjectAdapterWithEndpoints(
"Callback.Client", f"tcp -h {host} -p {port}"
)
might use the wrong network interface. Consequently, the Mumble server could attempt to connect to an address that is unreachable from the given network. This can cause unpredictable behavior and connectivity issues.
Requirements
The authenticator is designed to work in conjunction with the following applications:
Configuration
The application can be configured using either YAML files or environment variables. The structure of environment variables corresponds to the structure of the YAML configuration file.
For example, given the following YAML configuration:
database:
host: 127.0.0.1
name: alliance_auth
You can set the equivalent environment variables as:
MA__DATABASE__HOST=127.0.0.1
MA__DATABASE__NAME=alliance_auth
Similarly, for a more complex configuration such as:
ice_properties:
- "Ice.ThreadPool.Server.Size = 5"
You can set the corresponding environment variable as:
MA__ICE_PROPERTIES__0="Ice.ThreadPool.Server.Size = 5"
Environment Variable Syntax
- The variable names are constructed by converting YAML keys to uppercase and replacing nested keys with double underscores (
__). - Arrays (lists) are represented using index numbers (
0,1, etc.) in the environment variable names. - All environment variable names should be prefixed with
MA__to avoid conflicts with other environment variables.
See also
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mumble_authenticator_templinks-2.0.8.tar.gz.
File metadata
- Download URL: mumble_authenticator_templinks-2.0.8.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Gentoo","version":"2.18","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ba309fcb557daf5ea0f9ed657d397b3d4ca7ecabeb656173350f0c6dcb30a3
|
|
| MD5 |
0e73c660d9bb39a0c8fc493ae8187fbc
|
|
| BLAKE2b-256 |
043bdbce00e1b0cd7902ddc3b424dd85169c64ee959312d22a8fea89558f82eb
|
File details
Details for the file mumble_authenticator_templinks-2.0.8-py3-none-any.whl.
File metadata
- Download URL: mumble_authenticator_templinks-2.0.8-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Gentoo","version":"2.18","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2536f4d5d9a030148815a310a5e0a175dd49ef12c0df1f5ad15a7b6bf4e76494
|
|
| MD5 |
48ee2ee5306b4a21bfaadaa942123da2
|
|
| BLAKE2b-256 |
03b0f32979505743e2124776129c8d6d329565a3c1aedb56337c9e66638457da
|