Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex MetaData Hub
  • About Yandex MetaData Hub
    • Getting started
        • Creating a namespace
        • Viewing a list of namespaces
        • Editing a namespace
        • Connecting to a namespace
        • Deleting a namespace
    • Service roles for access management
    • Troubleshooting
  • Access management
  • Quotas and limits
  • Pricing policy
  • Public materials
  • Release notes
  1. Schema Registry
  2. Step-by-step guides
  3. Namespace
  4. Connecting to a namespace

Connecting to a namespace

Written by
Yandex Cloud
Updated at August 25, 2025
View in Markdown

To connect to a namespace, use cURL or Debezium.

Before connecting to a namespace, create a service account and assign it the relevant roles.

cURL
Debezium
  1. Install the certificate:

    sudo mkdir --parents /usr/local/share/ca-certificates/Yandex && \
    sudo wget "https://crls.yandex.net/YandexInternalCA.crt" \
       --output-document /usr/local/share/ca-certificates/Yandex/IntermediateCA.crt && \
    sudo chmod 655 /usr/local/share/ca-certificates/Yandex/IntermediateCA.crt && \
    sudo update-ca-certificates
    
  2. Create an API key with a limited scope and place it in the SECRET local variable:

    yc iam api-key create --folder-id <folder_ID> \
      --service-account-name <name_of_service_account_for_operations_with_Schema_Registry> \
      --scopes yc.schema-registry.schemas.manage \
      --expires-at '2030-01-01T00:00:00Z' >./api-key.yaml && \
    SECRET=`cat ./api-key.yaml | grep 'secret:' | awk '{print $2}'`
    

    If using a key with a limited scope, you can set any TTL you need.

  3. Connect to the namespace:

    curl -X GET "https://<namespace_ID>.schema-registry.yandexcloud.net:443/subjects" \
       -H "accept: application/json" --user 'api-key:'$SECRET
    
  1. Install the certificate:

    sudo mkdir ./cert && \
    sudo wget "https://storage.yandexcloud.net/cloud-certs/CA.pem" --output-document ./cert/CA.pem && \
    sudo openssl x509 -outform der -in ./cert/CA.pem -out ./cert/CA.der && \
    sudo keytool -importcert -noprompt -alias ca -file ./cert/CA.der -keystore ./cert/CA.p12 -storepass STOREPASSW0RD
    
  2. Download an up-to-date Debezium connector and unpack it to the /etc/debezium/plugins/ directory.

  3. Create an API key with a limited scope and place it in the SECRET local variable:

    yc iam api-key create --folder-id <folder_ID> \
      --service-account-name <name_of_service_account_for_operations_with_Schema_Registry> \
      --scopes yc.schema-registry.schemas.manage \
      --expires-at '2030-01-01T00:00:00Z' >./api-key.yaml && \
    SECRET=`cat ./api-key.yaml | grep 'secret:' | awk '{print $2}'`
    

    If using a key with a limited scope, you can set any TTL you need.

  4. Add the following parameters to the Debezium connector configuration file:

    "ssl.truststore.location": "/cert/CA.p12",
    "ssl.truststore.type": "PKCS12",
    "ssl.truststore.password": "STOREPASSW0RD",
    "value.converter": "io.confluent.connect.json.JsonSchemaConverter",
    "value.converter.schema.registry.url": "https://<namespace_ID>.schema-registry.yandexcloud.net:443",
    "value.converter.basic.auth.credentials.source": "USER_INFO",
    "value.converter.basic.auth.user.info": "api-key:%SECRET%"
    
  5. To connect to the namespace, run Debezium.

Was the article helpful?

Previous
Editing a namespace
Next
Deleting a namespace
© 2026 Direct Cursus Technology L.L.C.