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.1.tar.gz (111.2 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.1-py2.py3-none-any.whl (32.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: saltext_wanguard-0.1.1.tar.gz
  • Upload date:
  • Size: 111.2 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.1.tar.gz
Algorithm Hash digest
SHA256 1c63b52e32d0e1a4eaa8dd3b7c91e2ba98cff0a020533bdda3fc33683ae1ff86
MD5 c0d66197abb7ba99ffd440ba57628a58
BLAKE2b-256 9e9e80e66f98c9eaf90a9c2559fdc1dba68ed71d8449bc549191382ba32b7841

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for saltext_wanguard-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bb10673687df3739e2fc882172096d0f97406aa8d40de2b6733ae354ec81bb8
MD5 9093928de2f30b789b42de0af77f730d
BLAKE2b-256 946e36ccce03bbea9c3db5d0fbaf70e2b5cf9dc668af5e2414d1b0ac19f74fa5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

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