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

[DEVOPS-282] Set access restrictions on Container app ingress #65

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ephemeral-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ on:
type: string
description: "Location of resources in Azure"
default: "centralus"
ingressWhitelist:
required: false
type: string
description: "IP address that will be allowed to access the ephemeral deployment"
default: "207.67.20.252/32"
secrets:
azureCredentials:
required: true
Expand Down Expand Up @@ -182,6 +187,10 @@ jobs:
ingress: external
disableTelemetry: true

- name: Add access restrictions to Container App ingress
run: |
az containerapp ingress access-restriction set --action Allow --ip-address "${{ inputs.ingressWhitelist }}" --rule-name allow-range --name "${{ needs.prepare.outputs.repositoryName }}-${{ needs.prepare.outputs.jiraTicketIdLc }}" --resource-group "${{ inputs.clusterResourceGroup }}"

- name: Get Container App Hostname
id: hostname
run: |
Expand Down
Loading