Skip to content

Commit

Permalink
add AGPL license file and license header
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Auernhammer committed Dec 6, 2019
1 parent 7a49fb3 commit ace5904
Show file tree
Hide file tree
Showing 24 changed files with 769 additions and 20 deletions.
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import (
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/config.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
"os"
"time"

"github.com/aead/key"
"github.com/minio/key"
"github.com/pelletier/go-toml"
)

Expand Down
6 changes: 5 additions & 1 deletion cmd/key/create.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -7,7 +11,7 @@ import (
"fmt"
"os"

"github.com/aead/key"
"github.com/minio/key"
)

const createCmdUsage = `usage: %s name [key]
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/decrypt.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -7,7 +11,7 @@ import (
"fmt"
"os"

"github.com/aead/key"
"github.com/minio/key"
)

const decryptCmdUsage = `usage: %s <name> <ciphertext> [<context>]
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/delete.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -6,7 +10,7 @@ import (
"fmt"
"os"

"github.com/aead/key"
"github.com/minio/key"
)

const deleteCmdUsage = `usage: %s name
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -7,7 +11,7 @@ import (
"fmt"
"os"

"github.com/aead/key"
"github.com/minio/key"
)

const generateCmdUsage = `usage: %s name [context]
Expand Down
4 changes: 4 additions & 0 deletions cmd/key/identify.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/identity.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -7,7 +11,7 @@ import (
"os"
"sort"

"github.com/aead/key"
"github.com/minio/key"
)

const identityCmdUsage = `usage: %s <command>
Expand Down
4 changes: 4 additions & 0 deletions cmd/key/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand Down
6 changes: 5 additions & 1 deletion cmd/key/policy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -9,7 +13,7 @@ import (
"os"
"sort"

"github.com/aead/key"
"github.com/minio/key"
)

const policyCmdUsage = `Manage named key policies.
Expand Down
12 changes: 8 additions & 4 deletions cmd/key/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package main

import (
Expand All @@ -11,10 +15,10 @@ import (
"syscall"
"time"

"github.com/aead/key"
"github.com/aead/key/fs"
"github.com/aead/key/mem"
"github.com/aead/key/vault"
"github.com/minio/key"
"github.com/minio/key/fs"
"github.com/minio/key/mem"
"github.com/minio/key/vault"
)

const serverCmdUsage = `usage: %s [options]
Expand Down
4 changes: 4 additions & 0 deletions error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

// NewError returns an error that formats as the given text.
Expand Down
8 changes: 6 additions & 2 deletions fs/fs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

// Package fs implements a secret key store that
// stores secret keys as files on the file system.
package fs
Expand All @@ -14,8 +18,8 @@ import (
"sync/atomic"
"time"

"github.com/aead/key"
"github.com/aead/key/internal/cache"
"github.com/minio/key"
"github.com/minio/key/internal/cache"
)

// KeyStore is a file system secret key store
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aead/key
module github.com/minio/key

go 1.13

Expand Down
4 changes: 4 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import (
Expand Down
6 changes: 5 additions & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

// Package cache implements an in-memory cache
// for secret keys.
package cache
Expand All @@ -8,7 +12,7 @@ import (
"sync/atomic"
"time"

"github.com/aead/key"
"github.com/minio/key"
)

// An Entry holds a cached secret key and additional
Expand Down
6 changes: 5 additions & 1 deletion internal/cache/cache_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package cache

import (
"testing"

"github.com/aead/key"
"github.com/minio/key"
)

func TestCacheSet(t *testing.T) {
Expand Down
8 changes: 6 additions & 2 deletions mem/mem.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

// Package mem implements an in-memory secret key store.
package mem

Expand All @@ -6,8 +10,8 @@ import (
"sync"
"time"

"github.com/aead/key"
"github.com/aead/key/internal/cache"
"github.com/minio/key"
"github.com/minio/key/internal/cache"
)

// KeyStore is an in-memory secret key store.
Expand Down
4 changes: 4 additions & 0 deletions policy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import (
Expand Down
4 changes: 4 additions & 0 deletions secret.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import (
Expand Down
4 changes: 4 additions & 0 deletions secret_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import (
Expand Down
4 changes: 4 additions & 0 deletions store.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

package key

import "net/http"
Expand Down
8 changes: 6 additions & 2 deletions vault/vault.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2019 - MinIO, Inc. All rights reserved.
// Use of this source code is governed by the AGPL
// license that can be found in the LICENSE file.

// Package vault implements a secret key store that
// stores secret keys as key-value entries on the
// Hashicorp Vault K/V secret backend.
Expand All @@ -16,9 +20,9 @@ import (
"sync/atomic"
"time"

"github.com/aead/key"
"github.com/aead/key/internal/cache"
vaultapi "github.com/hashicorp/vault/api"
"github.com/minio/key"
"github.com/minio/key/internal/cache"
)

// AppRole holds the Vault AppRole
Expand Down

0 comments on commit ace5904

Please sign in to comment.