Skip to main content

Improved SRP Module for Alliance Auth

Project description

AA SRP

Badge: Version Badge: License Badge: Supported Python Versions Badge: Supported Django Versions Badge: pre-commit Badge: pre-commit.ci status Badge: Code Style: black Badge: Support Discord Badge: Automated Tests Badge: Code Coverage Badge: Translation Status Badge: Contributor Covenant

Badge: Buy me a coffee

SRP Module for Alliance Auth



Overview

Features

  • Overview of SRP links
  • Overview of your own SRP requests and their status
  • Accepting kill mails from zKillboard, EveTools Killboard and EVE-Kill
  • SRP Request administration is mostly done via ajax and without page reloads
  • Use modern DataTables with filters where ever they're useful
  • Tables fully searchable and sortable
  • Mandatory reason on SRP reject
  • Notifications in AA with detailed information on SRP rejection
  • Discord notification via PM to the user on SRP request approval or rejection, if either AA-Discordbot, Discord Notify or Discord Proxy is installed
  • Notify your SRP team (optional) in their Discord channel about new SRP requests, if AA-Discordbot or Discord Proxy is installed

Screenshots

Dashboard

Image: AA SRP Dashboard

Dashboard (View All)

Image: AA SRP Dashboard (View All)

Your SRP Requests

Image: Your SRP Requests View

SRP Requests Overview

Image: SRP Requests Overview

SRP Request Details

Image: SRP Request Details

Installation

Prerequisites

[!IMPORTANT]

Please make sure you meet all prerequisites before you proceed!

  • AA SRP is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official Alliance Auth installation guide for details)
  • AA SRP needs at least Alliance Auth v4.12.0
  • AA SRP needs Eve Universe to function. Please make sure it is installed, before continuing.

Bare Metal Installation

Step 1: Install the Package

Make sure you're in the virtual environment (venv) of your Alliance Auth installation Then install the latest release directly from PyPi.

pip install aa-srp==3.3.1

Step 2: Configure Alliance Auth

This is fairly simple, just add the following to the INSTALLED_APPS of your local.py

Configure your AA settings (local.py) as follows:

  • Add "eveuniverse", to INSTALLED_APPS
  • Add "aasrp", to INSTALLED_APPS

Step 3: Finalizing the Installation

Run static files collection and migrations

python manage.py collectstatic
python manage.py migrate

Restart your supervisor services for Auth

Step 4: Preload Eve Universe Data

AA SRP utilizes the EveUniverse module, so it doesn't need to ask ESI for ship information. To set this up, you now need to run the following command.

python manage.py aasrp_load_eve

Docker Installation

Step 1: Add the App

Add the app to your conf/requirements.txt

aa-srp==3.3.1

Step 2: Update Your AA Settings

Configure your AA settings as (conf/local.py) follows:

  • Add "eveuniverse", to INSTALLED_APPS if not already done
  • Add "aasrp", to INSTALLED_APPS

Step 3: Build Auth and Restart Your Containers

docker compose build --no-cache
docker compose --env-file=.env up -d

Step 4: Finalizing the Installation

Run migrations, copy static files and load EVE universe data:

docker compose exec allianceauth_gunicorn bash

auth collectstatic
auth migrate
auth aasrp_load_eve

Common Installation Steps

Setting up Permissions

Now it's time to set up access permissions for your new SRP module. You can do so in your admin backend in the AA SRP section. Read the Permissions section for more information about the available permissions.

(Optional) Import From Built-in SRP Module

[!NOTE]

This step is only needed when you have been using the built-in SRP module until now.

The import process can be done at any given time and doesn't necessarily have to be during the installation.

[!IMPORTANT]

Make sure you don't have any open SRP requests before. All SRP links in the built-in module will be closed during the import process, to make sure to not import any duplicates.

To import your SRP information from the built-in SRP module, run the following:

Bare Metal Installation
python manage.py aasrp_migrate_srp_data
Docker Installation
docker compose exec allianceauth_gunicorn bash

auth aasrp_migrate_srp_data

(Optional) Settings for Discord Proxy (If Used)

[!NOTE]

This step is only needed if you want to use Discord notifications and have Discord Proxy installed.

If you are using Discord Proxy to send Discord messages, you can configure the host and port in your local.py settings.

Name Description Default
DISCORDPROXY_HOST Hostname used to communicate with Discord Proxy. localhost
DISCORDPROXY_PORT Port used to communicate with Discord Proxy. 50051
Docker Installation

If you have Discord Proxy installed via Docker (see here), you should set the following:

DISCORDPROXY_HOST = "allianceauth_discordproxy"

Updating

Bare Metal Installation

To update your existing installation of AA SRP, first enable your virtual environment (venv) of your Alliance Auth installation.

Then run the following command to update AA SRP to the latest version.

pip install aa-srp==3.3.1

python manage.py collectstatic
python manage.py migrate

redis-cli flushall

Restart your supervisor services for Auth.

Docker Installation

To update your existing installation of AA SRP, first update the version in your conf/requirements.txt to the latest version.

aa-srp==3.3.1

Then build your Auth container and restart your containers.

docker compose build
docker compose --env-file=.env up -d

After that, run the following commands to update your database and static files:

docker compose exec allianceauth_gunicorn bash

auth collectstatic
auth migrate

Permissions

ID Description Notes
basic_access Can access the AA SRP module Your line members should have this permission.
create_srp Can create new SRP links Your FCs should have this permission.
manage_srp Can manage SRP Users with this permission can manage the AA SRP Module. Like changing and removing SRP links and requests.
manage_srp_requests Can manage SRP requests Users with this permission can manage the SRP requests. Like changing and removing SRP requests.

Changelog

See CHANGELOG.md

Translation Status

Translation status

Do you want to help translate this app into your language or improve the existing translation? - Join our team of translators!

Contributing

You want to contribute to this project? That's cool!

Please make sure to read the Contribution Guidelines.
(I promise, it's not much, just some basics)

Project details


Release history Release notifications | RSS feed

This version

3.3.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aa_srp-3.3.1.tar.gz (361.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aa_srp-3.3.1-py3-none-any.whl (459.7 kB view details)

Uploaded Python 3

File details

Details for the file aa_srp-3.3.1.tar.gz.

File metadata

  • Download URL: aa_srp-3.3.1.tar.gz
  • Upload date:
  • Size: 361.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aa_srp-3.3.1.tar.gz
Algorithm Hash digest
SHA256 ed4586a41179e60331087cc59ad8848499e0d4c141181239581565409cee261c
MD5 2cd0b28df27fd97a1489513d61ffd1f6
BLAKE2b-256 620fa19673892106d253ac07b6c7ed6c70ba3828ab4a0407578302a471c22043

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_srp-3.3.1.tar.gz:

Publisher: release.yml on ppfeufer/aa-srp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aa_srp-3.3.1-py3-none-any.whl.

File metadata

  • Download URL: aa_srp-3.3.1-py3-none-any.whl
  • Upload date:
  • Size: 459.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aa_srp-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9691f18e802c024eb34a7c374a03896b763a1cce90aad29528db07a1674f4203
MD5 6f53e55cb1aa3a5123fef061f439bd3c
BLAKE2b-256 01a46eb526a1b9efb3c7adad0ca91ad9d9e43dfc11473ebfa494f57c863a9350

See more details on using hashes here.

Provenance

The following attestation bundles were made for aa_srp-3.3.1-py3-none-any.whl:

Publisher: release.yml on ppfeufer/aa-srp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page