"az k8s-configuration flux create" ssl verify false option
I have an AKS cluster and I am using Azure Devops Server 2019 (OnPrem).
I am using a GoDaddy certificate on Azure Devops Server.
I am running the following command:
az k8s-configuration flux create \
--name cluster-config \
--cluster-name arc-cicd-cluster \
--namespace cluster-config \
--resource-group myResourceGroup \
-u https://dev.azure.com/<Your organization>/<Your project>/arc-cicd-demo-gitops \
--https-user <Azure Repos username> \
--https-key <Azure Repos PAT token> \
--scope cluster \
--cluster-type managedClusters \
--branch master \
--kustomization name=cluster-config prune=true path=arc-cicd-cluster/manifests
The result:
{
"bucket": null,
"complianceState": "Non-Compliant",
"configurationProtectedSettings": {
"httpsKey": "<redacted>"
},
"errorMessage": "",
"gitRepository": {
"httpsCaCert": null,
"httpsUser": "***********",
"localAuthRef": null,
"repositoryRef": {
"branch": "master",
"commit": null,
"semver": null,
"tag": null
},
"sshKnownHosts": null,
"syncIntervalInSeconds": 600,
"timeoutInSeconds": 600,
"url": "https://******************/arc-cicd-demo-gitops"
},
"id": "/subscriptions/***************/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/cluster-config",
"kustomizations": {
"cluster-config": {
"dependsOn": null,
"force": false,
"name": "cluster-config",
"path": "arc-cicd-cluster/manifests",
"prune": true,
"retryIntervalInSeconds": null,
"syncIntervalInSeconds": 600,
"timeoutInSeconds": 600
}
},
"name": "cluster-config",
"namespace": "cluster-config",
"provisioningState": "Succeeded",
"repositoryPublicKey": "",
"resourceGroup": "*******",
"scope": "cluster",
"sourceKind": "GitRepository",
"sourceSyncedCommitId": "",
"sourceUpdatedAt": null,
"statusUpdatedAt": "2022-04-25T12:10:19.732000+00:00",
"statuses": [
{
"appliedBy": null,
"complianceState": "Non-Compliant",
"helmReleaseProperties": null,
"kind": "GitRepository",
"name": "cluster-config",
"namespace": "cluster-config",
"statusConditions": [
{
"lastTransitionTime": "2022-04-25T12:10:05+00:00",
"message": "unable to clone: user rejected certificate for ***************",
"reason": "GitOperationFailed",
"status": "False",
"type": "Ready"
}
]
},
{
"appliedBy": null,
"complianceState": "Non-Compliant",
"helmReleaseProperties": null,
"kind": "Kustomization",
"name": "cluster-config-cluster-config",
"namespace": "cluster-config",
"statusConditions": [
{
"lastTransitionTime": "2022-04-25T11:51:00+00:00",
"message": "Source is not ready, artifact not found",
"reason": "ArtifactFailed",
"status": "False",
"type": "Ready"
}
]
}
],
"suspend": false,
"systemData": {
"createdAt": "2022-04-25T11:50:30.938613+00:00",
"createdBy": null,
"createdByType": null,
"lastModifiedAt": "2022-04-25T12:09:34.020172+00:00",
"lastModifiedBy": null,
"lastModifiedByType": null
},
"type": "Microsoft.KubernetesConfiguration/fluxConfigurations"
}
I think Flux on AKS can not verify the SSL certificate. Is there an option to skip ssl verification?
By the way, when I check my private azure devops URL: " Verify return code: 21 (unable to verify the first certificate)"
I think there is a problem with my certificate, even if Chrome and Firefox says the certificate is OK.
But is there a way to skip the SSL Verification with this "az k8s-configuration flux create" command?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 883985f6-4e1c-9f6c-87ac-8ce3542f9e17
- Version Independent ID: 3533616e-dec6-f2a5-0b47-abd49b5b725d
- Content: az k8s-configuration flux
- Content Source: latest/docs-ref-autogen/k8s-configuration/flux.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
route to CXP team
Hello @fkucuk Thanks for reaching out on this issue!
We are routing this issue to the Service Team's attention!
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
Issue Details
I have an AKS cluster and I am using Azure Devops Server 2019 (OnPrem).
I am using a GoDaddy certificate on Azure Devops Server.
I am running the following command:
az k8s-configuration flux create \
--name cluster-config \
--cluster-name arc-cicd-cluster \
--namespace cluster-config \
--resource-group myResourceGroup \
-u https://dev.azure.com/<Your organization>/<Your project>/arc-cicd-demo-gitops \
--https-user <Azure Repos username> \
--https-key <Azure Repos PAT token> \
--scope cluster \
--cluster-type managedClusters \
--branch master \
--kustomization name=cluster-config prune=true path=arc-cicd-cluster/manifests
The result:
{
"bucket": null,
"complianceState": "Non-Compliant",
"configurationProtectedSettings": {
"httpsKey": "<redacted>"
},
"errorMessage": "",
"gitRepository": {
"httpsCaCert": null,
"httpsUser": "***********",
"localAuthRef": null,
"repositoryRef": {
"branch": "master",
"commit": null,
"semver": null,
"tag": null
},
"sshKnownHosts": null,
"syncIntervalInSeconds": 600,
"timeoutInSeconds": 600,
"url": "https://******************/arc-cicd-demo-gitops"
},
"id": "/subscriptions/***************/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/cluster-config",
"kustomizations": {
"cluster-config": {
"dependsOn": null,
"force": false,
"name": "cluster-config",
"path": "arc-cicd-cluster/manifests",
"prune": true,
"retryIntervalInSeconds": null,
"syncIntervalInSeconds": 600,
"timeoutInSeconds": 600
}
},
"name": "cluster-config",
"namespace": "cluster-config",
"provisioningState": "Succeeded",
"repositoryPublicKey": "",
"resourceGroup": "*******",
"scope": "cluster",
"sourceKind": "GitRepository",
"sourceSyncedCommitId": "",
"sourceUpdatedAt": null,
"statusUpdatedAt": "2022-04-25T12:10:19.732000+00:00",
"statuses": [
{
"appliedBy": null,
"complianceState": "Non-Compliant",
"helmReleaseProperties": null,
"kind": "GitRepository",
"name": "cluster-config",
"namespace": "cluster-config",
"statusConditions": [
{
"lastTransitionTime": "2022-04-25T12:10:05+00:00",
"message": "unable to clone: user rejected certificate for ***************",
"reason": "GitOperationFailed",
"status": "False",
"type": "Ready"
}
]
},
{
"appliedBy": null,
"complianceState": "Non-Compliant",
"helmReleaseProperties": null,
"kind": "Kustomization",
"name": "cluster-config-cluster-config",
"namespace": "cluster-config",
"statusConditions": [
{
"lastTransitionTime": "2022-04-25T11:51:00+00:00",
"message": "Source is not ready, artifact not found",
"reason": "ArtifactFailed",
"status": "False",
"type": "Ready"
}
]
}
],
"suspend": false,
"systemData": {
"createdAt": "2022-04-25T11:50:30.938613+00:00",
"createdBy": null,
"createdByType": null,
"lastModifiedAt": "2022-04-25T12:09:34.020172+00:00",
"lastModifiedBy": null,
"lastModifiedByType": null
},
"type": "Microsoft.KubernetesConfiguration/fluxConfigurations"
}
I think Flux on AKS can not verify the SSL certificate. Is there an option to skip ssl verification?
By the way, when I check my private azure devops URL: " Verify return code: 21 (unable to verify the first certificate)"
I think there is a problem with my certificate, even if Chrome and Firefox says the certificate is OK.
But is there a way to skip the SSL Verification with this "az k8s-configuration flux create" command?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 883985f6-4e1c-9f6c-87ac-8ce3542f9e17
- Version Independent ID: 3533616e-dec6-f2a5-0b47-abd49b5b725d
- Content: az k8s-configuration flux
- Content Source: latest/docs-ref-autogen/k8s-configuration/flux.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
| Author: | fkucuk |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
@bavneetsingh16 , can you pl. take a look at this?
The k8s-configuration cli does not support the parameter to skip ssl verification.