Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for secretbox (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox.go

    limitations under the License.
    */
    
    // Package secretbox transforms values for storage at rest using XSalsa20 and Poly1305.
    package secretbox
    
    import (
    	"context"
    	"crypto/rand"
    	"fmt"
    
    	"golang.org/x/crypto/nacl/secretbox"
    
    	"k8s.io/apiserver/pkg/storage/value"
    )
    
    // secretbox implements at rest encryption of the provided values given a 32 byte secret key.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 16:31:31 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/apiserver/types_encryption.go

    	AESGCM *AESConfiguration
    	// aescbc is the configuration for the AES-CBC transformer.
    	AESCBC *AESConfiguration
    	// secretbox is the configuration for the Secretbox based transformer.
    	Secretbox *SecretboxConfiguration
    	// identity is the (empty) configuration for the identity transformer.
    	Identity *IdentityConfiguration
    	// kms contains the name, cache size and path to configuration file for a KMS based envelope transformer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/types_encryption.go

    	AESGCM *AESConfiguration `json:"aesgcm,omitempty"`
    	// aescbc is the configuration for the AES-CBC transformer.
    	AESCBC *AESConfiguration `json:"aescbc,omitempty"`
    	// secretbox is the configuration for the Secretbox based transformer.
    	Secretbox *SecretboxConfiguration `json:"secretbox,omitempty"`
    	// identity is the (empty) configuration for the identity transformer.
    	Identity *IdentityConfiguration `json:"identity,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox_test.go

    		t.Fatalf("unexpected data: %t %q", stale, from)
    	}
    
    	// verify changing the context does not fails storage
    	// Secretbox is not currently an authenticating store
    	_, _, err = p.TransformFromStorage(ctx, out, value.DefaultContext([]byte("incorrect_context")))
    	if err != nil {
    		t.Fatalf("secretbox is not authenticated")
    	}
    
    	// reverse the order, use the second key
    	p = value.NewPrefixTransformers(testErr,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 17 16:31:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/kms-first.yaml

              cachesize: 10
              timeout: 7s
          - kms:
              apiVersion: v2
              name: testproviderv2
              endpoint: unix:///tmp/testprovider.sock
          - secretbox:
              keys:
                - name: key1
                  secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
          - aescbc:
              keys:
                - name: key1
                  secret: c2VjcmV0IGlzIHNlY3VyZQ==
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 30 23:18:14 UTC 2023
    - 883 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/aes-cbc-first.yaml

              cachesize: 10
              timeout: 5s
          - kms:
              apiVersion: v2
              name: testproviderv2
              endpoint: unix:///tmp/testprovider.sock
          - identity: {}
          - secretbox:
              keys:
                - name: key1
                  secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
          - aesgcm:
              keys:
                - name: key1
                  secret: c2VjcmV0IGlzIHNlY3VyZQ==
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 30 23:18:14 UTC 2023
    - 883 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go

    			case provider.AESCBC != nil:
    				allErrs = append(allErrs, validateKeys(provider.AESCBC.Keys, path.Child("aescbc").Child("keys"), aesKeySizes)...)
    			case provider.Secretbox != nil:
    				allErrs = append(allErrs, validateKeys(provider.Secretbox.Keys, path.Child("secretbox").Child("keys"), secretBoxKeySizes)...)
    			}
    		}
    	}
    
    	return allErrs
    }
    
    var anyGroupAnyResource = schema.GroupResource{
    	Group:    "*",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/identity-first.yaml

          - aescbc:
              keys:
                - name: key1
                  secret: c2VjcmV0IGlzIHNlY3VyZQ==
                - name: key2
                  secret: dGhpcyBpcyBwYXNzd29yZA==
          - secretbox:
              keys:
                - name: key1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 30 23:18:14 UTC 2023
    - 903 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/kmsv2-first.yaml

              endpoint: unix:///tmp/testprovider.sock
              timeout: 15s
          - kms:
              name: testprovider
              endpoint: unix:///tmp/testprovider.sock
              cachesize: 10
          - secretbox:
              keys:
                - name: key1
                  secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
          - aescbc:
              keys:
                - name: key1
                  secret: c2VjcmV0IGlzIHNlY3VyZQ==
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 30 23:18:14 UTC 2023
    - 884 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/testdata/valid-configs/secret-box-first.yaml

    kind: EncryptionConfiguration
    apiVersion: apiserver.config.k8s.io/v1
    resources:
      - resources:
          - secrets
        providers:
          - secretbox:
              keys:
                - name: key1
                  secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=
          - aescbc:
              keys:
                - name: key1
                  secret: c2VjcmV0IGlzIHNlY3VyZQ==
                - name: key2
                  secret: dGhpcyBpcyBwYXNzd29yZA==
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 30 23:18:14 UTC 2023
    - 883 bytes
    - Viewed (0)
Back to top