3. Trusted source
Test case 1: a change to the stack goes through a pull request and the pipeline.
What you will see
-
Your public address added to the management allow-list by pull request.
-
The plan comment on the pull request, the review, and the deployment on merge.
-
The FortiGate, FortiManager and FortiAnalyzer GUIs.
3.1 Add your address
-
On your laptop, read your public address:
curl https://checkip.amazonaws.com -
On your laptop, in the clone, create a branch:
git switch main && git pull git switch -c trusted/<your-name> -
Open
config/global.yaml, line 48,trusted_mgmt_sources, and add your address as the last line of the list:trusted_mgmt_sources: # ... existing entries ... - "<your address>/32" -
Commit and push:
git add config/global.yaml git commit -m "chore: trust <your-name>'s address" git push -u origin trusted/<your-name> -
Open the link that
git pushprints and create the pull request.
The list feeds one managed prefix list. The security groups of FortiManager, FortiAnalyzer and the FortiGates reference it, so no rule changes.
3.2 Watch the pipeline
-
On the pull request, watch the gates, then read the plan comment: one prefix list entry added in each region.
-
After approval and merge, open Actions and follow the
deploy.ymlrun.
3.3 Open the appliances
-
In Systems Manager, Parameter Store, read the admin passwords:
/cloud-firewall/s01/<region>/fmg-admin-password,faz-admin-password,fgt-admin-password. -
In CloudShell, list the public addresses of the appliances:
aws ec2 describe-instances \ --filters "Name=tag:Name,Values=$PREFIX-fmg-*,$PREFIX-faz-*,$PREFIX-ew-fgt,$PREFIX-ns-fgt" \ Name=instance-state-name,Values=running \ --query 'Reservations[].Instances[].[Tags[?Key==`Name`]|[0].Value,InstanceId,PublicIpAddress,Placement.AvailabilityZone]' \ --output table -
In your browser, open
https://<fmg-a-address>and sign in to FortiManager asadmin. The HA primary accepts changes; its dashboard shows the HA role. Iffmg-ais secondary, usefmg-b. -
Open
https://<faz-a-address>the same way for FortiAnalyzer. -
On your laptop, open a member over SSH:
ssh admin@<member-address>Or, in the FortiManager primary, open Device Manager, select the member, then Remote Access.
Make every change in code, by pull request: the next deployment overwrites a change made in a GUI. Do not change the admin passwords (see the ground rules).
Check
- Your address opens the FortiManager, FortiAnalyzer and FortiGate login pages, and the admin passwords sign you in.
Limits
-
Every GUI shows a certificate warning, and the FortiGates share the default hostname.
-
Two pull requests to the same list: the second needs a rebase after the first merges.
Where to look
| What | Where |
|---|---|
| The allow-list | config/global.yaml, line 48 |
| Plan and deployment | The pull request, and Actions |