Skip to content

Commit

Permalink
MinTLS Version is a read only property
Browse files Browse the repository at this point in the history
  • Loading branch information
janboll committed Nov 22, 2024
1 parent 5c801ff commit f7df719
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion config/config.msft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ defaults:
eventGrid:
name: arohcp-maestro-{{ .ctx.regionShort }}
maxClientSessionsPerAuthName: '4'
minTLSVersion: '1.2'
certDomain: 'selfsigned.maestro.keyvault.azure.com'
postgres:
name: arohcp-maestro-{{ .ctx.regionShort }}
Expand Down
7 changes: 1 addition & 6 deletions config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,12 @@
},
"name": {
"type": "string"
},
"minTLSVersion": {
"type": "string",
"enum": ["1.2"]
}
},
"additionalProperties": false,
"required": [
"maxClientSessionsPerAuthName",
"name",
"minTLSVersion"
"name"
]
},
"imageBase": {
Expand Down
1 change: 0 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ defaults:
eventGrid:
name: arohcp-maestro-{{ .ctx.regionShort }}
maxClientSessionsPerAuthName: '4'
minTLSVersion: '1.2'
certDomain: 'selfsigned.maestro.keyvault.azure.com'
postgres:
name: arohcp-maestro-{{ .ctx.regionShort }}
Expand Down
1 change: 0 additions & 1 deletion config/public-cloud-cs-pr.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"consumerName": "hcp-underlay-cspr-mgmt-1",
"eventGrid": {
"maxClientSessionsPerAuthName": "4",
"minTLSVersion": "1.2",
"name": "arohcp-maestro-cspr"
},
"imageBase": "quay.io/redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro",
Expand Down
1 change: 0 additions & 1 deletion config/public-cloud-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"consumerName": "hcp-underlay-dev-mgmt-1",
"eventGrid": {
"maxClientSessionsPerAuthName": "4",
"minTLSVersion": "1.2",
"name": "arohcp-maestro-dev"
},
"imageBase": "quay.io/redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro",
Expand Down
1 change: 0 additions & 1 deletion config/public-cloud-msft-int.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"consumerName": "hcp-underlay-int-mgmt-1",
"eventGrid": {
"maxClientSessionsPerAuthName": "4",
"minTLSVersion": "1.2",
"name": "arohcp-maestro-int"
},
"imageBase": "quay.io/redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro",
Expand Down
1 change: 0 additions & 1 deletion config/public-cloud-personal-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"consumerName": "hcp-underlay-usw3tst-mgmt-1",
"eventGrid": {
"maxClientSessionsPerAuthName": "4",
"minTLSVersion": "1.2",
"name": "arohcp-maestro-usw3tst"
},
"imageBase": "quay.io/redhat-user-workloads/maestro-rhtap-tenant/maestro/maestro",
Expand Down
1 change: 0 additions & 1 deletion dev-infrastructure/configurations/region.tmpl.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ param regionalDNSSubdomain = '{{ .regionalDNSSubdomain }}'
param maestroKeyVaultName = '{{ .maestro.keyVaultName }}'
param maestroEventGridNamespacesName = '{{ .maestro.eventGrid.name }}'
param maestroEventGridMaxClientSessionsPerAuthName = {{ .maestro.eventGrid.maxClientSessionsPerAuthName }}
param maestroEventGridMinimumTlsVersionAllowed = '{{ .maestro.eventGrid.minTLSVersion }}'
4 changes: 0 additions & 4 deletions dev-infrastructure/modules/maestro/maestro-infra.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ param maestroKeyVaultName string
@description('The name for the Managed Identity that will be created for Key Vault Certificate management.')
param kvCertOfficerManagedIdentityName string

@description('Minimum TLS version allowed for the EventGrid Namespace')
param minimumTlsVersionAllowed string = '1.2'

@description('Allow public network access to the EventGrid Namespace')
@allowed([
'Enabled'
Expand Down Expand Up @@ -121,7 +118,6 @@ resource eventGridNamespace 'Microsoft.EventGrid/namespaces@2024-06-01-preview'
properties: {
isZoneRedundant: true
publicNetworkAccess: publicNetworkAccess
minimumTlsVersionAllowed: minimumTlsVersionAllowed
topicSpacesConfiguration: {
state: 'Enabled'
maximumSessionExpiryInHours: 1
Expand Down
4 changes: 0 additions & 4 deletions dev-infrastructure/templates/region.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ param maestroEventGridNamespacesName string
@description('The maximum client sessions per authentication name for the EventGrid MQTT broker')
param maestroEventGridMaxClientSessionsPerAuthName int

@description('Minimum TLS version allowed for the EventGrid Namespace')
param maestroEventGridMinimumTlsVersionAllowed string = '1.2'

@description('Set to true to prevent resources from being pruned after 48 hours')
param persist bool = false

Expand Down Expand Up @@ -70,6 +67,5 @@ module maestroInfra '../modules/maestro/maestro-infra.bicep' = {
maestroKeyVaultName: maestroKeyVaultName
kvCertOfficerManagedIdentityName: maestroKeyVaultCertOfficerMSIName
publicNetworkAccess: 'Enabled'
minimumTlsVersionAllowed: maestroEventGridMinimumTlsVersionAllowed
}
}

0 comments on commit f7df719

Please sign in to comment.