Skip to content

Failed to create new session client - missing selected ALPN property #722

@Conacious

Description

@Conacious

When using the Terraform provider inside the runner and in the Github action we receive the following error:

│ Error: failed to create new session client
│ 
│   with argocd_application.ingress_app,
│   on argocd.tf line 316, in resource "argocd_application" "ingress_app":
│  316: resource "argocd_application" "ingress_app" {
│ 
│ credentials: cannot check peer: missing selected ALPN property. If you
│ upgraded from a grpc-go version earlier than 1.67, your TLS connections may
│ have stopped working due to ALPN enforcement. For more details, see:
│ https://github.com/grpc/grpc-go/issues/434

I've tried to reproduce it locally on my macOS but is working fine.

The error only appears when using the provider inside the Amazon Linux 2023 in the Github action.

[root@ip-10-64-37-113 bin]# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.8.20250818"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2029-06-30"
[root@ip-10-64-37-113 bin]# uname -r
6.1.147-172.266.amzn2023.x86_64

Terraform Version, ArgoCD Provider Version and ArgoCD Version


Terraform is setup using the `setup-terraform` github action:
ArgoCD installed using helm. 


Terraform version: 1.9.6
ArgoCD provider version: 7.11.0
ArgoCD version: v2.11.5

Affected Resource(s)

We are trying to create the following resources with the provider:

  • argocd_application_set
  • argocd_application

Panic Output

│ Error: failed to create new session client
│ 
│   with argocd_application.ingress_app,
│   on argocd.tf line 316, in resource "argocd_application" "ingress_app":
│  316: resource "argocd_application" "ingress_app" {
│ 
│ credentials: cannot check peer: missing selected ALPN property. If you
│ upgraded from a grpc-go version earlier than 1.67, your TLS connections may
│ have stopped working due to ALPN enforcement. For more details, see:
│ https://github.com/grpc/grpc-go/issues/434
╵
Error: Terraform exited with code 1.

Steps to Reproduce

Run a custom Gh runner with an Amazon linux 23 and try to deploy resources to a running ArgoCD server using the Terraform provider.

Expected Behavior

The provider works fine without errors.

Actual Behavior

The provider is not working inside the gh runner.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions