github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ccl/baseccl/encryption_options.proto (about)

     1  // Copyright 2017 The Cockroach Authors.
     2  //
     3  // Licensed as a CockroachDB Enterprise file under the Cockroach Community
     4  // License (the "License"); you may not use this file except in compliance with
     5  // the License. You may obtain a copy of the License at
     6  //
     7  //     https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt
     8  
     9  syntax = "proto3";
    10  package cockroach.ccl.baseccl;
    11  option go_package = "baseccl";
    12  
    13  import "gogoproto/gogo.proto";
    14  
    15  enum EncryptionKeySource {
    16    // Plain key files.
    17    KeyFiles = 0;
    18  }
    19  
    20  // EncryptionKeyFiles is used when plain key files are passed.
    21  message EncryptionKeyFiles {
    22    string current_key = 1;
    23    string old_key = 2;
    24  }
    25  
    26  // EncryptionOptions defines the per-store encryption options.
    27  message EncryptionOptions {
    28    // The store key source. Defines which fields are useful.
    29    EncryptionKeySource key_source = 1;
    30  
    31    // Set if key_source == KeyFiles.
    32    EncryptionKeyFiles key_files = 2;
    33  
    34    // Default data key rotation in seconds.
    35    int64 data_key_rotation_period = 3;
    36  }