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
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • 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 Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • Verifying signatures for custom images
    • All guides
    • Projects
    • Resource model
    • Scaling a cluster
    • Licensing
      • Overview
      • Certificate Manager
      • DNS
      • IAM
      • Logging Stack
      • Managed Service for Apache Kafka®
      • Managed Service for PostgreSQL
      • Managed Service for Apache Airflow™
      • Managed Service for ClickHouse®
      • Iceberg REST Catalog
      • Managed Service for Trino
      • YTsaurus
      • DataLens
      • Monitoring
      • Object Storage
      • Disk subsystem
      • NVIDIA® GPU support
      • Policy Manager
      • Secrets Store
      • SpeechSense
      • AI Studio
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting

In this article:

  • Security policies
  • Image scanning
  • Configuration
  1. Concepts
  2. Components
  3. Policy Manager

Policy Manager

Written by
Yandex Cloud
Updated at October 30, 2026
View in Markdown
  • Security policies
  • Image scanning
  • Configuration

Policy Manager checks Kubernetes resources for compliance with policies and scans custom application images for known vulnerabilities. Kyverno runs policy checks, while images are scanned by Trivy

Operator. You can get the results in the management console and in Kubernetes resources.

Warning

Discovered vulnerabilities do not block creating, starting up, or restarting pods. Trivy work only in report generation mode.

Security policiesSecurity policies

Policy Manager provides two policy presets:

  • Baseline: Basic standard in Pod Security Standards.
  • Restricted: Protected standard in Pod Security Standards.

The baseline preset is applied by default. It works best for applications whose failures or unavailability do not cause major consequences. The restricted preset is designed for critical applications and users with a low level of trust.

The default preset is specified in the PolicyManagerConfig resource. You can activate an additional preset using the ClusterPolicySet resource by following the Activating a policy preset guide.

Both presets work in audit mode and generate violation reports.

Image scanningImage scanning

Scanning is enabled by default. For each image of the current user load version, Trivy Operator creates a VulnerabilityReport resource.

If it contains findings, the adapter creates a separate standard PolicyReport available to the existing consumers of Policy Manager reports. When the list of findings becomes empty, the adapter deletes only the related PolicyReport. All severity levels are saved in VulnerabilityReport.

For a private custom image, the operator reads ServiceAccount of the source load, finds the imagePullSecrets specified in it, and provides these credentials to the scan job. The scan job itself works on behalf of the operator ServiceAccount in the Policy Manager namespace. If the discovered data is not sufficient for downloading an image, no report is generated.

Databases for OS packages and Java libraries are delivered in separate images.
The main database is installed by the initContainer of the Trivy server, while the Java DB, by a separate initContainer, to the common cache of each scan job. The scanner image does not contain any database archives. The delivery includes offline databases, so internet access is not required to get their standard configuration. To update databases separately from Stackland releases, specify the available mirrors: database.registry along with database.repository for the main database and database.javaRegistry along with database.javaRepository for the Java DB. Both mirrors must allow anonymous reading of images: the registry credentials of the user load are not used for downloading the databases. A single Trivy Server downloads the main database. The external Java DB is downloaded separately into each scan job (approximately 1 GB per scan), so when using it, factor in the registry throughput and scanJobTimeout. The built-in Java DB does not require downloading over network. Each scanner container in the scan job requests 3Gi and is limited to 6Gi of temporary storage for the Java DB and unpacked image layers. The total values for the job are multiplied by the number of source load containers.

To learn more about viewing results, see the Viewing vulnerability reports guide.

ConfigurationConfiguration

Here is an example:

apiVersion: stackland.yandex.cloud/v1alpha1
kind: PolicyManagerConfig
metadata:
  name: main # This is a required field you must set to `main`
spec:
  enabled: true
  settings:
    defaultPolicySet:
      engines:
        kyverno: # tool name
          presets:
            - baseline      # based on Pod Security Standard Baseline (default)
            # - restricted  # based on Pod Security Standard Restricted (optional)
    trivy:
      enabled: true # image scanning is enabled by default
      settings:
        scanner:
          reportTTL: 24h
          scanJobTimeout: 5m
          concurrentScanJobs: 5
          excludeNamespaces:
            - tenant-sandbox
        # Do not specify `database` to use the bundled database.
        # For independent updates, specify both `registry` and `repository`:
        # database:
        #   registry: registry.example.com
        #   repository: security/trivy-db
        # To update Java DB outside of a release, set both Java parameters:
        #   javaRegistry: registry.example.com
        #   javaRepository: security/trivy-java-db

Where:

  • enabled: Enables Policy Manager. If set to false, Kyverno, Policy Reporter, the policy controller, and the scanner are deleted.
  • settings.defaultPolicySet.engines.kyverno.presets: Specifies Kyverno presets.
  • settings.trivy.enabled: Enables the scanner and report adapter separately from Policy Manager's other parts.
  • settings.trivy.settings.scanner.reportTTL: Sets a retention period for a report and an effective rescan interval. The minimum number is 1s.
  • settings.trivy.settings.scanner.concurrentScanJobs: Limits the number of simultaneously performed scan jobs.
  • settings.trivy.settings.scanner.scanJobTimeout: Limits the duration of a single job. The minimum value is 1s.

Was the article helpful?

Previous
NVIDIA® GPU support
Next
Secrets Store
© 2026 Direct Cursus Technology L.L.C.