Skip to main content

Salt Extension for Andrisoft WANGuard

Manage Andrisoft WANGuard from Salt, through its REST API.

Provides:

  • an execution module and a runner for reading and manipulating roles, users, IP zones, threshold templates, responses, whitelist templates, BGP connectors, servers, sensors, filters, decoders, anomalies and more, plus generic verbs and a query escape hatch for any endpoint without a dedicated wrapper;
  • states for the configuration objects that make sense to manage declaratively, all supporting test=True.
salt '*' wanguard.list_roles
salt '*' wanguard.get_role role_name=Guest
Wanguard Guest role:
  wanguard.role_present:
    - name: Guest
    - description: Read-only access

Requires the wanrestapi package on the WANGuard Console and an account with REST API access enabled. See the User Documentation for setup.

Security

If you discover a security vulnerability, please refer to Salt's security guide.

User Documentation

For setup and usage instructions, please refer to the User Documentation.

Contributing

The saltext-wanguard project welcomes contributions from anyone!

The Salt Extensions guide provides comprehensive instructions on all aspects of Salt extension development, including writing tests, running tests, writing documentation and rendering the docs.

Quickstart

To get started contributing, first clone this repository (or your fork):

# Clone the repo
git clone --origin upstream git@gitlab.com:ggiesen/saltext-wanguard.git

# Change to the repo dir
cd saltext-wanguard

Automatic

If you have installed direnv, copying the included .envrc.example to .envrc and allowing it to run ensures a proper development environment is present and the virtual environment is active.

Without direnv, you can still run the automation explicitly:

make dev  # or python3 tools/initialize.py
source .venv/bin/activate

Manual

Please follow the first steps, skipping the repository initialization and first commit.

Ways to contribute

Contributions come in many forms, and they're all valuable! Here are some ways you can help without writing code:

  • Documentation: Especially examples showing how to use this project to solve specific problems.
  • Triaging issues: Help manage issues.

You can also contribute by:

  • Writing blog posts
  • Sharing your experiences using Salt + Andrisoft WANGuard on social media
  • Giving talks at conferences
  • Publishing videos
  • Engaging in IRC, Discord or email groups

Any of these things are super valuable to our community, and we sincerely appreciate every contribution!

Download files

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

Source Distribution

saltext_wanguard-0.1.0.tar.gz (107.4 kB view details)

Uploaded Source

Built Distribution

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

saltext_wanguard-0.1.0-py2.py3-none-any.whl (32.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file saltext_wanguard-0.1.0.tar.gz.

File metadata

  • Download URL: saltext_wanguard-0.1.0.tar.gz
  • Upload date:
  • Size: 107.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for saltext_wanguard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ddf425c7faeb8ecfa44bfda8168ff5bacdcc6ac2816de4e3e08873ab5ee24d2
MD5 e2fe8e2c1b0afadd33b8e22a71e640e0
BLAKE2b-256 d4947cfd61d059edf29ddce87b3a70ac7ea9801faa0da83d0abab89fe5f0d4cb

See more details on using hashes here.

File details

Details for the file saltext_wanguard-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for saltext_wanguard-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 206d25f548492cfbce5968adb3ead89501d6fc10ee5f69b2a880720aa9f32bb9
MD5 6febaa27e6145551c428631943c1e749
BLAKE2b-256 81432e14ae7c9768a152311b95d971be308bb43bae65abcce7c1efda7d7f1298

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page