Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Service page
Yandex Lockbox
Documentation
Yandex Lockbox
  • Getting started
    • All tutorials
    • Syncing with Managed Service for Kubernetes secrets
    • Storing Apache Airflow™ connections and variables in Yandex Lockbox
    • Building a CI/CD pipeline in GitLab with serverless products
    • Secure storage of GitLab CI passwords as Yandex Lockbox secrets
      • Overview
      • CLI
      • Terraform
    • Loading data from Yandex Direct to a Yandex Managed Service for ClickHouse® data mart using Yandex Cloud Functions, Yandex Object Storage, and Yandex Data Transfer
    • Deploying a fault-tolerant architecture with preemptible VMs
    • Creating an interactive serverless application using WebSocket
    • Automatically copying objects from one Object Storage bucket to another
    • Secure password transmission to an initialization script
  • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Tutorials
  2. Storing a static access key in a Yandex Lockbox secret
  3. Overview

Using a Yandex Lockbox secret to store a static access key

Written by
Yandex Cloud
Updated at May 7, 2025

If you frequently use services with an AWS-compatible API, such as Yandex Object Storage, Yandex Data Streams, or Yandex Message Queue, it is up to you to ensure safe storage of your static access keys.

This tutorial covers a scenario where a Yandex Lockbox secret serves as the static access key storage. In this configuration, the access key value is neither stored locally on the user's computer nor displayed on the screen.

When accessing a resource of an AWS-compatible service (Object Storage), the static access key and its ID will be extracted from the Yandex Lockbox secret into special environment variables, which will be used for request authentication.

This approach will ensure safe storage and use of your key when accessing the services.

You can use the following tools to create an infrastructure:

  • CLI: Use this method to create an infrastructure step-by-step via the CLI.
  • Terraform: Streamline creating and managing your resources using the infrastructure as code (IaC) approach. Download a Terraform configuration example from the GitHub repository and then deploy the infrastructure using the Terraform Yandex Cloud provider.

Was the article helpful?

Previous
Secure storage of GitLab CI passwords as Yandex Lockbox secrets
Next
CLI
© 2025 Direct Cursus Technology L.L.C.