-
Notifications
You must be signed in to change notification settings - Fork 49
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
DLP profile rule "type" property value "fos_message" isn't obeyed #312
Comments
I propose the following changes: Change "fos_message" to "message". This has been tested in my dev environment and works. Not certain what happened here. Perhaps a carry over to 7.2.x and 7.4.x when DLP was revamped. |
PR open to apply this proven fix to the main branch. |
Hi @andrewlass Thank you for bringing this issue to our attention. Thanks, |
Okay, thank you. It seems like the dev team has taken this case into account with the function "valid_attr_to_invalid_attr". Issue is that the function never accesses the "type" field in the data. Seems like a design bug that will need to be revisited. I'll post any useful suggestions in the meantime. |
Hi @andrewlass We just released Ansible FOS 2.3.7. This issue should be fixed, so you could upgrade to it and give it a try at your convenience. in this version, we are still using "fos_message" and making a convert at Ansible backend, let me know if you still have questions.
Thanks, |
Issue: DLP profile rule "type" property value "fos_message" isn't obeyed.
https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios_dlp_profile_module.html#parameter-dlp_profile/rule/type
Reproduction: Create a DLP profile rule with "type" property with value "fos_message". It will take the default value on FortiOS upon application, which is "file".
Note: If you manually change the value from "file" to "message" in FortiOS, Ansible won't change it.
Note: The API docs say to use value "messae" not "fos_message".
https://fndn.fortinet.net/index.php?/fortiapi/1-fortios/3826/1/dlp/
The text was updated successfully, but these errors were encountered: