-
Notifications
You must be signed in to change notification settings - Fork 27
Firewall settings modules #681
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
Firewall settings modules #681
Conversation
aeb4ca5 to
decc5fe
Compare
|
This looks great, nice work! For the null |
ezilber-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tests passing locally.
|
Hi @lgarber-akamai, I enabled |
lgarber-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for addressing my feedback in the Python SDK!
1239b60
into
linode:proj/linode-interfaces
* Override Python SDK version to be the feature branch * Add interface as an allowed firewall device (#676) * Add interface as an allowed firewall device * Add todo * Firewall settings modules (#681) * Fix `parse_linode_types` for `JSONObject` * Add `firewall_settings` module and docs * Add `firewall_settings_info` module, docs, and tests * Fix helper * lint fix * more lint fix * more more lint fixes * Add interface_id to IP docs (#684) * Update VPC docs (#675) * Fix doc for entity_type * Fix lint * Implement firewall template modules (#686) * Implement firewall template modules * Fix lint * Linode Interfaces: Support endpoints under /linode/instances/{id}/interfaces (#687) * Linode Interfaces: Support endpoints under /linode/instances/{id}/interfaces * Revert inventory * make gendocS * oops * Add docs example * Finishing touches * Adjustments * oops * make gendocs * oops * WIP * Fix weird wording * Scope attributes in settings info module * instance_id -> linode_id * oops * fix firewall issue * Update tests/integration/targets/instance_linode_interface/tasks/main.yaml Co-authored-by: Erik Zilber <ezilber@akamai.com> --------- Co-authored-by: Erik Zilber <ezilber@akamai.com> * Fix doc * Fix null firewall_id during creation of instance with linode interface (#719) * VPC Dual Stack: Add support for Linode Interfaces (#721) * Implement Linode Interfaces IPv6 * minor bug fix * Minor docs fix * Fix expecting error test (#724) * Catch all exceptions from running `exec_module` * Fail when the error message is not in `msg` * make format * Change BaseException to Exception * Update format_generic_error --------- Co-authored-by: Lena Garber <114949949+lgarber-akamai@users.noreply.github.com> Co-authored-by: Erik Zilber <ezilber@akamai.com>
📝 Description
This is to add
firewall_settingsandfirewall_settings_infomodule.✔️ How to Test
You might need to enable default firewall for your account to test it.
Note that once it's enabled for an account, it cannot be turned off, which means you will have to permanently have a default firewall for each of the resources in you account.
curl --request PUT \ --url https://api.linode.com/v4beta/networking/firewalls/settings \ --header 'accept: application/json' \ --header "authorization: Bearer $TOKEN" \ --header 'content-type: application/json' \ --data ' { "default_firewall_ids": { "public_interface": YOUR_DEFAULT_FIREWALL_ID, "vpc_interface": YOUR_DEFAULT_FIREWALL_ID, "linode": YOUR_DEFAULT_FIREWALL_ID, "nodebalancer": YOUR_DEFAULT_FIREWALL_ID } } 'Testing the modules: