Skip to content

Hasync issue 843 - #920

Closed
hydro-b wants to merge 29 commits into
pfrest:next_minorfrom
hydro-b:hasync_issue_843
Closed

Hasync issue 843#920
hydro-b wants to merge 29 commits into
pfrest:next_minorfrom
hydro-b:hasync_issue_843

Conversation

@hydro-b

@hydro-b hydro-b commented Jul 22, 2026

Copy link
Copy Markdown

I've created this code with opencode (Qwen3.5-122B-A10B-AWQ-4bit) to add High Availability support:

  • Add SystemHasync Model with 21 fields for HA synchronization settings
  • Add SystemHasyncEndpoint at /api/v2/system/hasync (GET, PATCH)
  • Add APIModelsSystemHasyncTestCase with 8 test methods
  • Fields include IP validation for synchronizetoip and pfsyncpeerip
  • Interface validation for pfsyncinterface
  • Password field marked as write_only and sensitive
  • Apply method calls filter_configure_sync() and filter_configure()
  • All fields include verbose_name and help_text based on pfSense GUI

Tested on a pfSense 2.8.1 CE VM.

Fixes #843

jaredhendrickson13 and others added 29 commits May 16, 2026 12:59
Updates the requirements on [black](https://github.com/psf/black) to permit the latest version.

Updates `black` to 26.5.1
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@26.5.0...26.5.1)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.5.1
  dependency-type: direct:production
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the github-actions group with 2 updates: [psf/black](https://github.com/psf/black) and [actions/stale](https://github.com/actions/stale).


Updates `psf/black` from 26.5.0 to 26.5.1
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@d2490e2...87928e6)

Updates `actions/stale` from 10.2.0 to 10.3.0
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@b5d41d4...eb5cf3a)

---
updated-dependencies:
- dependency-name: psf/black
  dependency-version: 26.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jared Hendrickson <github@jaredhendrickson.com>
…ing pfrest#902

The previous fix did not address the outer nested model field validation, only the inner validation which rendered the fix unusable for many use cases. This commits introduces a new injection point to update() that allows us to apply pre-conditions before model validation, thefor allow us to negate addresses before validation if an iface assignment exists.
…ing pfrest#902 (pfrest#908)

The previous fix did not address the outer nested model field validation, only the inner validation which rendered the fix unusable for many use cases. This commits introduces a new injection point to update() that allows us to apply pre-conditions before model validation, thefor allow us to negate addresses before validation if an iface assignment exists.
Bumps the github-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [shivammathur/setup-php](https://github.com/shivammathur/setup-php), [actions/setup-python](https://github.com/actions/setup-python) and [softprops/action-gh-release](https://github.com/softprops/action-gh-release).


Updates `actions/checkout` from 6.0.2 to 7.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@de0fac2...9c091bb)

Updates `shivammathur/setup-php` from 2.37.1 to 2.37.2
- [Release notes](https://github.com/shivammathur/setup-php/releases)
- [Commits](shivammathur/setup-php@7c071df...f3e473d)

Updates `actions/setup-python` from 6.2.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@a309ff8...ece7cb0)

Updates `softprops/action-gh-release` from 3.0.0 to 3.0.1
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@b430933...718ea10)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: shivammathur/setup-php
  dependency-version: 2.37.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: actions/setup-python
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [pylint](https://github.com/pylint-dev/pylint) to permit the latest version.

Updates `pylint` to 4.0.6
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](pylint-dev/pylint@v4.0.5...v4.0.6)

---
updated-dependencies:
- dependency-name: pylint
  dependency-version: 4.0.6
  dependency-type: direct:production
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the composer group with 2 updates: [firebase/php-jwt](https://github.com/googleapis/php-jwt) and [webonyx/graphql-php](https://github.com/webonyx/graphql-php).


Updates `firebase/php-jwt` from 7.0.5 to 7.1.0
- [Release notes](https://github.com/googleapis/php-jwt/releases)
- [Changelog](https://github.com/googleapis/php-jwt/blob/main/CHANGELOG.md)
- [Commits](googleapis/php-jwt@v7.0.5...v7.1.0)

Updates `webonyx/graphql-php` from 15.32.3 to 15.33.1
- [Release notes](https://github.com/webonyx/graphql-php/releases)
- [Changelog](https://github.com/webonyx/graphql-php/blob/master/CHANGELOG.md)
- [Commits](webonyx/graphql-php@v15.32.3...v15.33.1)

---
updated-dependencies:
- dependency-name: firebase/php-jwt
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: composer
- dependency-name: webonyx/graphql-php
  dependency-version: 15.33.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: composer
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Add SystemHasync Model with 21 fields for HA synchronization settings
- Add SystemHasyncEndpoint at /api/v2/system/hasync (GET, PATCH)
- Add APIModelsSystemHasyncTestCase with 8 test methods
- Fields include IP validation for synchronizetoip and pfsyncpeerip
- Interface validation for pfsyncinterface
- Password field marked as write_only and sensitive
- Apply method calls filter_configure_sync() and filter_configure()
- All fields include verbose_name and help_text based on pfSense GUI
@jaredhendrickson13

Copy link
Copy Markdown
Member

Duplicate of #901. This feature is already a part of the next minor release cycle and will be in REST API v2.9.0.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants