-
-
Notifications
You must be signed in to change notification settings - Fork 126
v2.4.0 Fixes & Features #670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
d75a4c7
fix: prevent clobbering session during model deletions in forms #630
jaredhendrickson13 3d4e46d
Merge branch 'master' into next_minor
jaredhendrickson13 13b80a2
Merge branch 'master' of github.com:jaredhendrickson13/pfsense-api in…
jaredhendrickson13 96eb2ee
fix: make HAProxyBackend:: a Base64Field #640
jaredhendrickson13 5622a45
tests: assert HAProxyBackend::advanced_backend is stored as b64 #640
jaredhendrickson13 f826c6b
Add ssloffload and ha_certificates to HAProxyFrontend
fd31cc7
Correct SSL offload cert field name, correct help text and doc string
b1b545a
Remove whitespace to make prettier happy
b8f82fb
Add HAProxy certificate endpoint, add parent constructor/fix paramete…
70a4ff7
Actually add ServicesHAProxyFrontendCertificateEndpoint
cc10028
Remove extra line to make prettier happy
e39f4f2
Add tests for HAProxy SSL objects
c29bbfc
Prettier fixes on HAProxy frontend test case
95940c7
Merge branch 'master' of github.com:jaredhendrickson13/pfsense-api in…
jaredhendrickson13 ede2f0c
fix!: change BINDZone refresh, retry, expire and minimum fields to St…
jaredhendrickson13 91e175a
Merge branch 'jaredhendrickson13:master' into haproxy_ssl_support
colindclare d37d947
Merge branch 'master' of github.com:jaredhendrickson13/pfsense-api in…
jaredhendrickson13 562652a
Merge pull request #661 from colindclare/haproxy_ssl_support
jaredhendrickson13 671162e
fix!: better utilize internal service handlers #634, #635
jaredhendrickson13 4885bcd
tests: adjust Service model tests for new structure
jaredhendrickson13 4cc8874
style: run prettier on changed files
jaredhendrickson13 1c90611
tests: adjust WireGuardSettings tests to work with new Service structure
jaredhendrickson13 6a5950a
feat: add model and endpoint for DHCPRelay #121
jaredhendrickson13 c2a16d8
fix: use DHCPRelay model in DHCPServer validation checks instead of d…
jaredhendrickson13 e1e0bb0
style: run prettier on changed files
jaredhendrickson13 f6535a2
docs: improve updates and versioning documentation
jaredhendrickson13 e7408bf
fix: use correct DHCP relay config path
jaredhendrickson13 4614bd5
fix: prevent any DHCPServer from being enabled if DHCPRelay is enabled
jaredhendrickson13 dde6702
tests: add tests for DHCPRelay model #121
jaredhendrickson13 8289e30
tests: correct usage of DHCPRelay and DHCPServer tests
jaredhendrickson13 67fba19
style: run prettier on changed files
jaredhendrickson13 53ad692
tests: adjustments to DHCPServer and DHCPRelay model tests
jaredhendrickson13 32fe485
docs: provide methods of scripting initial installation
jaredhendrickson13 9693698
docs: add security policy to mkdocs site
jaredhendrickson13 38c0a3d
docs: whitespace fix in readme
jaredhendrickson13 c389a4f
style: run prettier on changed files
jaredhendrickson13 450d34e
Merge branch 'master' into next_minor
jaredhendrickson13 94a1c44
docs(oas): add id field to POST endpoints with auto_create_id off
jaredhendrickson13 8f809c3
Merge branch 'next_minor' of github.com:jaredhendrickson13/pfsense-ap…
jaredhendrickson13 436fd17
ci: add stale issues/pr job
jaredhendrickson13 dd67086
style: run prettier on changed files
jaredhendrickson13 d3fe0e1
ci: make verified bugs exempt from stale issues
jaredhendrickson13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: Weekly Schedule | ||
|
|
||
| on: | ||
| workflow_dispatch: # Enable manual triggering | ||
| schedule: | ||
| - cron: "0 18 * * 1" | ||
|
|
||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| stale: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| DAYS_BEFORE_STALE: 60 | ||
| steps: | ||
| - uses: actions/stale@v9 | ||
| with: | ||
| stale-issue-message: | | ||
| This issue has been automatically marked as stale because it has had no recent activity in the last ${{ env.DAYS_BEFORE_STALE }} days. | ||
| stale-pr-message: | | ||
| This pull request has been automatically marked as stale because it has had no recent activity in the last ${{ env.DAYS_BEFORE_STALE }} days. | ||
| days-before-stale: ${{ env.DAYS_BEFORE_STALE }} | ||
| days-before-close: 0 | ||
| exempt-issue-labels: "feature request,enhancement,bug" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,29 @@ | ||
| # Security Policy | ||
|
|
||
| ## Supported Versions | ||
| Security is a top priority for this project. The REST API package is designed to be secure and provide granular controls | ||
| to help admins implement a multi-layered security approach to API access. This document outlines the security policy | ||
| for the project and provides information on how to report a security vulnerability. | ||
|
|
||
| Below are versions that are currently supported and will receive security updates when available. | ||
| ## Supported Versions | ||
|
|
||
| | Version | Supported | | ||
| |---------| ------------------ | | ||
| | 2.2.x | :white_check_mark: | | ||
| | 1.7.x | :white_check_mark: | | ||
| | <=1.6.x | :x: | | ||
| Currently, there are two supported versions of the package: the v2 package (pfSense-pkg-RESTAPI) and the legacy v1 | ||
| package (pfSense-pkg-API). The v2 package is the latest version of the package and is actively developed and fully | ||
| maintained. The legacy v1 package is no longer actively developed and is only receiving compatibility fixes and critical | ||
| security updates when necessary. It is highly recommended to regularly update to the latest version of the package to | ||
| ensure you are receiving important bug fixes and security updates. | ||
|
|
||
| ## Reporting a Vulnerability | ||
|
|
||
| Should you discover a vulnerability in the pfSense-API code, please report the issue in one of the following ways: | ||
| Should you discover a vulnerability in the codebase, please report the issue using the order of preference below: | ||
|
|
||
| 1. A pull request with code that fixes the discovered vulnerability | ||
| 2. A private email to either the project owner or the respective code owner | ||
| 3. As a last resort, you may open a public issue on the repository | ||
|
|
||
| Please note this is an independent and open-source project and no bug bounty or reward can be granted. | ||
| Please do not disclose the details of the vulnerability publicly until it has been addressed by the maintainers. | ||
| The maintainers will work to address the vulnerability as quickly as possible and will provide updates on the issue | ||
| as they become available. | ||
|
|
||
| !!! Notice | ||
| This is an open-source project and is developed and maintained by members of the pfSense community. No bug bounty | ||
| can be offered for reported vulnerabilities. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Endpoints/ServicesDHCPRelayEndpoint.inc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| namespace RESTAPI\Endpoints; | ||
|
|
||
| require_once 'RESTAPI/autoloader.inc'; | ||
|
|
||
| use RESTAPI\Core\Endpoint; | ||
|
|
||
| /** | ||
| * Defines an Endpoint for interacting with the DHCPRelay Model object at /api/v2/services/dhcp_relay. | ||
| */ | ||
| class ServicesDHCPRelayEndpoint extends Endpoint { | ||
| public function __construct() { | ||
| # Set Endpoint attributes | ||
| $this->url = '/api/v2/services/dhcp_relay'; | ||
| $this->model_name = 'DHCPRelay'; | ||
| $this->request_method_options = ['GET', 'PATCH']; | ||
|
|
||
| # Construct the parent Endpoint object | ||
| parent::__construct(); | ||
| } | ||
| } |
23 changes: 23 additions & 0 deletions
23
...TAPI/files/usr/local/pkg/RESTAPI/Endpoints/ServicesHAProxyFrontendCertificateEndpoint.inc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <?php | ||
|
|
||
| namespace RESTAPI\Endpoints; | ||
|
|
||
| require_once 'RESTAPI/autoloader.inc'; | ||
|
|
||
| use RESTAPI\Core\Endpoint; | ||
|
|
||
| /** | ||
| * Defines an Endpoint for interacting with a singular HAProxyFrontendCertificate Model object at | ||
| * /api/v2/services/haproxy/frontend/certificate. | ||
| */ | ||
| class ServicesHAProxyFrontendCertificateEndpoint extends Endpoint { | ||
| public function __construct() { | ||
| # Set Endpoint attributes | ||
| $this->url = '/api/v2/services/haproxy/frontend/certificate'; | ||
| $this->model_name = 'HAProxyFrontendCertificate'; | ||
| $this->request_method_options = ['GET', 'POST', 'PATCH', 'DELETE']; | ||
|
|
||
| # Construct the parent Endpoint object | ||
| parent::__construct(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.