Skip to content
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

feat: Added user/firewall endpoint and Tests #258

Closed
wants to merge 59 commits into from
Closed

feat: Added user/firewall endpoint and Tests #258

wants to merge 59 commits into from

Conversation

jahknem
Copy link

@jahknem jahknem commented Dec 1, 2023

Files that have been added:
./pkg/probe/user_firewall.go
./pkg/probe/user_firewall_test.go
./pkg/probe/testdata/user_firewall.jsonnet

Files that have been changed:
./pkg/probe/probe.go
./README.md

Tested on FortiGate with FortiOS Version v7.0.12

Hugo Blom and others added 30 commits July 15, 2021 11:42
* Add BGP neighbour path and best path count
* Add probe selection capability from configuration file

* Add probe prefix matching + documentation

* fix typo in README.md

Co-authored-by: Christian Svensson <[email protected]>

* fix typo in README.md

Co-authored-by: Christian Svensson <[email protected]>

* fix-fmt internal/config/main.go

Co-authored-by: Christian Svensson <[email protected]>
* refactor(config): Add re-init function for testing

This will allow tests to re-initialize the config structure to apply any
calls to e.g. flag.Set() that may have happened.

* Fix typo
* rebase: Add probe for vpn SSL users

* probe VPN/Ssl: patch test file for handeling cli option + fix probe logic to always provide fortigate_vpn_connections

* probe VPN/Ssl: default max-vpn-users to 0 + doc
* Add probe for vpn SSL stats

* Add specification on SSL VPN metric description

Co-authored-by: Christian Svensson <[email protected]>

* vpn_ssl_stats_test.go Error message fix

Co-authored-by: Christian Svensson <[email protected]>

* probe vpn_ssl_stats: fix test output + metric description

* VPN/Ssl probe name specified to VPN/Ssl/Connections to allow include/exclude without collision with VPN/Ssl/Stats

* probe vpn_ssl_stats: remove current from metric name

Co-authored-by: Christian Svensson <[email protected]>
Boolean flags behave a bit differently.
… queue (#121)


Co-authored-by: Sebastian Poxhofer <[email protected]>
Co-authored-by: Christian Svensson <[email protected]>
…f mutliple connections

Co-authored-by: Sebastian Poxhofer <[email protected]>
* Add probe for Fsso Infos

* fix user-fsso example file comment

* probe User/Fsso: add support and example for fsso-polling mode

* probe User/Fsso: add id label to follow fsso-polling naming and not merge it with fsso name label
Add a chat room for discussions
…file configuration (#139)

* doc(readme): detail permissions per probe + update global monitor profile configuration

* move monitor profile configuration bloc description
* feat(probe): Add probe for fortigate internal clock time

* add seconds to mectric name + fix typo

Co-authored-by: Christian Svensson <[email protected]>

* Change category name to System/Time/Clock

* add probe to permission table

Co-authored-by: Christian Svensson <[email protected]>
* ci(Makefile): add coverage report and run additional tests

* ci(Makefile): remove snapshot update from Makefile
* feat(probe): Add probe for sensors
* add probe to permission table
* switch log prefix from error to warning because probe will fail on small fortigate units
…tatus (#133)

* Add probe for Fortimanager connection and registration status
* probe System/Fortimanager/status: add support for mutiVDOM, merge 2 status metrics in 1 info metric, fix indentation issue
* probe System/Fortimanager/status: fix metrics name in documentation
* probe System/Fortimanager/status: split into 2 status metrics with value meaning + fix doc
Apparently pagination does not work on newer FortiOS on this particular
API call. It seems unlikely that somebody with more than 1000 APs would
complain about large API calls, so remove the limit for now.
* feat(probe): Add system reboot and snapshot time

* Apply suggestions from code review

Co-authored-by: Sebastian Poxhofer <[email protected]>
renovate bot and others added 24 commits March 25, 2023 18:56
….0 (#198)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: Add support for managed switches

* fix: update to go 1.18
* feat: Add support for managed switches
* feat: Add dynamic configuration
* fix: update to go 1.18
* doc(readme): enforce text about protecting the api tokens in Prometheus
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update README.md

---------

Co-authored-by: Faizan Syed <[email protected]>
Co-authored-by: Christian Svensson <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
….0 (#212)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Target our own documentation for PR issues
* Adding functionality for querying the status of SDN Connectors
* fix(BGP Info): Added support for bgp session state as value next to label

* test(bgp): Updated tests to account for new value

* test(bgp): Also change metric description in tests

---------

Co-authored-by: Gianni Stubbe <[email protected]>
* docs: Updated descriptions of metrics to be self-explanatory

* test(interface): Fixed tests for system and ipsec interfaces

---------

Co-authored-by: Gianni Stubbe <[email protected]>
* feat(ippool): Added support for ippool info

This merge adds support for ippool information. This closes #231

* fix(naming): Updated metric names to be in line with prometheus conventions

* test(ippool): Added tests for the firewall ippool feature

* style: Updated tests and readme to align for new naming

* style: Changed metric name to match other percentage metrics

* fix(ippool): Updated value percentage to be 0-1.0

---------

Co-authored-by: Gianni Stubbe <[email protected]>
….0 (#250)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Christian Svensson <[email protected]>
@jahknem jahknem changed the title Added user/firewall endpoint and Tests feat: Added user/firewall endpoint and Tests Dec 1, 2023
@jahknem jahknem closed this Dec 9, 2023
@jahknem
Copy link
Author

jahknem commented Dec 9, 2023

There was a security issue. I'll create a new PR.

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.