Fortigate Config version management

In this post, I’m going to configure Google Cloud Function as an interface among Fortigate, Slack and Github. Once all deploy completed, all the configuration changes on Fortigate will be automatically notified to Slack, and it will be uploaded to Github for version control.

I re-use most of the code from my previous posts. And there are some work needs to be done on Fortigate, Slack and Github before you configure Google Cloud Function.

1. Configure Google Cloud Function

When you setup Cloud Functions with my code, you need to configure a few environment variables.


Main code would be as follows:

If you want to replicate the function you can git clone from repository.

Once all the setup complete, and once you make changes on Fortigate, your slack channel should receive notification, as well as the latest config should be uploaded onto the github.