mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 00:17:07 +08:00
Add CORE_TLS_SECRET configuration
This secret will be used to encrypt automatically obtained secrets at rest, i.e. in a storage. They will be decrypted on demand. If the secret is wrong, stored certificates can't be decrypted. For changing the secret, the stored certificated must be deleted first in order to obtain new ones that will be encrypted with the new secret.
This commit is contained in:
15
slices/copy_test.go
Normal file
15
slices/copy_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package slices
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestCopy(t *testing.T) {
|
||||
a := []string{"a", "b", "c"}
|
||||
|
||||
b := Copy(a)
|
||||
|
||||
require.Equal(t, []string{"a", "b", "c"}, b)
|
||||
}
|
Reference in New Issue
Block a user