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

Support authentication using encoded certificate bundle directly: [client_certificate] #488

Open
loomkoom opened this issue Apr 29, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@loomkoom
Copy link

loomkoom commented Apr 29, 2024

Description

The azapi provider documentation mentions that it supports service principal authentication using client certificates by using the client_certificate_path, which contains the path of a .pfx/.p12 file.

However, passing the client-certificate base64 encoded to the client_certificate value like in azurerm and azuread doesn't seem to be supported.

It would be nice for the azapi provider to also support this method of authentication through the extra client_certificate argument.

Error Log

Error: Unsupported argument

  on crossplane-provider-config.tf line 19, in provider "azapi":
  19:   client_certificate = var.clientCertificate

An argument named "client_certificate" is not expected here.

Config

variable "subscriptionId" {}
variable "tenantId" {}
variable "clientId" {}
variable "clientCertificate" {}

terraform {
  required_providers {
    azapi = {
        source  = "azure/azapi"
        version = "=1.13.1"
    }
  }
}

provider "azapi" {
  subscription_id = var.subscriptionId
  tenant_id = var.tenantId
  client_id = var.clientId
  client_certificate = var.clientCertificate
}
@ms-henglu ms-henglu added the enhancement New feature or request label Apr 29, 2024
@ms-henglu ms-henglu added this to the v1.14.0 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants