Glue Schema Registry
Configuration
Kpow connects to a Schema registry with environment variables.
| Variable | Description |
|---|---|
| SCHEMA_REGISTRY_NAME | UI and logs friendly name for this Schema Registry |
| SCHEMA_REGISTRY_ARN | The ARN of your AWS Glue Schema Registry |
| SCHEMA_REGISTRY_REGION | The Region of your AWS Glue Schema Registry (default: us-east-1) |
| SCHEMA_REGISTRY_OBSERVATION_VERSION | Optional, sets the observation version used to snapshot schema resources. Default=2. See Observation version. |
AWS Glue authentication
By default, Kpow will use the DefaultAWSCredentialsProviderChain to authenticate with AWS Glue schema registry.
Static credentials
You can authenticate using static credentials by specifying:
SCHEMA_REGISTRY_ACCESS_KEY_ID=xxx
SCHEMA_REGISTRY_SECRET_ACCESS_KEY=xxx
Cross-account AWS Access (STS Assume Role)
If you wish to configure cross-account AWS Schema registry access (where for example Kpow is living in AWS Account A and AWS Glue is living in Account B) you can configure an IAM role+trust policy.
This blog post demonstrates how to configure an IAM role for this exact scenario with example Terraform in the GitHub repo.
You can configure Kpow to assume a role with the following environment variables:
SCHEMA_REGISTRY_STS_ROLE_ARN="arn:aws:iam::ACCOUNT_B_ID:root"
SCHEMA_REGISTRY_STS_SESSION_NAME="session_name"
SCHEMA_REGISTRY_STS_REGION="us-east-2" # (default us-east-1)
Observation version
From Kpow 97.1, AWS Glue Schema Registry uses observation version 2 by default.
Version 2 gets all of its schema information from a single, paged AWS Glue ListSchemas call. For AWS Glue, that call returns a reduced set of information for each schema: its name, ARN, description, and created and updated timestamps. Details such as the schema type, latest version and schema definition aren't shown in the schemas table.
Version 1 makes the same ListSchemas call, then makes an individual AWS Glue API call for each schema to fetch the full schema information. This gives you the same information you see for a Confluent Schema Registry, but the number of API calls made each observation grows with the number of schemas in your registry.
If you want the full schema information and don't mind the extra API calls (for example, when observing a smaller registry), switch back to the previous behaviour:
SCHEMA_REGISTRY_OBSERVATION_VERSION=1
Access control
User permissions to Kafka cluster resources are defined by Schema actions. See: User Authorization.