Skip to content

Enhancement# Add Connect IoT Provisioning Org Configuration to Terraform HSDP Provider #480

@akodhawan

Description

Connect IoT support Evidence Based Provisioning and to be able to setup the backend configurations for it Organization and Proposition level configurations are needed.

HSDP IO:
Context - Evidence based provisioning
https://www.hsdp.io/documentation/provisioning/how-to/evidence-based-provisioning

APIs:
https://www.hsdp.io/documentation/provisioning/api-documents/provisioning-api#/OrgConfiguration

Go-API Implementation:
https://github.com/dip-software/go-dip-api/tree/main/connect/provisioning

Generic Details:
https://healthsuite.atlassian.net/wiki/spaces/IEN/pages/6188204269/Work+with+DIP+HSDP+Terraform+Provider

Expected Usage:

resource "hsdp_connectiot_provisioning_orgconfiguration" "my-orgconfig" {
      organizationGuid: "1ac2e233-8146-4661-8ec4-dc956aeb5a4b",
      serviceAccount: {
        serviceAccountId:"demo_test_tf.xyx-app.xyz-prop@demo.iot__connect__sandbox.apmplatform.philips-healthsuite.com",
        serviceAccountKey:"-----BEGIN RSA PRIVATE KEY-----\nMIIEowBlahBlahI1KExUm\n-----END RSA PRIVATE KEY-----"
      },
      bootstrapSignature: {
        algorithm: "RSA-SHA256",
        publicKey:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSBlahBlahBlahMqgzQIDAQAB\n-----END PUBLIC KEY-----",
        config: {
          type:"RSA",
          padding:"RSA_PKCS1_PSS_PADDING",
          saltLength:"RSA_PSS_SALTLEN_MAX_SIGN"
        }
      }
  }

and datasource:

data "hsdp_connectiot_provisioning_orgconfiguration" "myconfig" {
  organizationGuid        = var.organizationGuid
}

output "org_config" {
  value = data.hsdp_connectiot_provisioning_orgconfiguration.myconfig
}

Supported algorithms for evidence based provisioning

RSA
RSA-MD5
RSA-RIPEMD160
RSA-SHA1
RSA-SHA1-2
RSA-SHA224
RSA-SHA256
RSA-SHA3-224
RSA-SHA3-256
RSA-SHA3-384
RSA-SHA3-512
RSA-SHA384
RSA-SHA512
SHA256
SHA512

ECC
SHA256
SHA512

DSA
SHA256
SHA512

Supported Padding and SaltLength
RSA algorithms can be combined with padding and saltLength values to generate signatures.
Padding
RSA_PKCS1_PSS_PADDING
SaltLength
RSA_PSS_SALTLEN_DIGEST
RSA_PSS_SALTLEN_MAX_SIGN
RSA_PSS_SALTLEN_AUTO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions