File tree 22 files changed +351
-5
lines changed
22 files changed +351
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ # not use this file except in compliance with the License. A copy of the
5
+ # License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0
8
+ #
9
+ # or in the "license" file accompanying this file. This file is distributed
10
+ # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ # express or implied. See the License for the specific language governing
12
+ # permissions and limitations under the License.
13
+
14
+ coverage :
15
+ status :
16
+ project :
17
+ default :
18
+ target : 80%
Original file line number Diff line number Diff line change
1
+ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ # not use this file except in compliance with the License. A copy of the
5
+ # License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0
8
+ #
9
+ # or in the "license" file accompanying this file. This file is distributed
10
+ # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ # express or implied. See the License for the specific language governing
12
+ # permissions and limitations under the License.
13
+
14
+ version : 2
15
+ updates :
16
+ - package-ecosystem : " gomod"
17
+ directory : " /" # Location of package manifests
18
+ schedule :
19
+ interval : " weekly"
20
+
21
+ - package-ecosystem : " github-actions"
22
+ directory : " /" # default location of `.github/workflows`
23
+ schedule :
24
+ interval : " weekly"
Original file line number Diff line number Diff line change
1
+ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ # not use this file except in compliance with the License. A copy of the
5
+ # License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0
8
+ #
9
+ # or in the "license" file accompanying this file. This file is distributed
10
+ # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ # express or implied. See the License for the specific language governing
12
+ # permissions and limitations under the License.
13
+
14
+ name : build
15
+
16
+ on :
17
+ push :
18
+ pull_request :
19
+
20
+ permissions :
21
+ contents : read
22
+
23
+ jobs :
24
+ build :
25
+ runs-on : ubuntu-latest
26
+ strategy :
27
+ matrix :
28
+ go-version : [ "1.20", "1.21" ]
29
+ fail-fast : true
30
+ steps :
31
+ - name : Check out code
32
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33
+ - name : Set up Go ${{ matrix.go-version }}
34
+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
35
+ with :
36
+ go-version : ${{ matrix.go-version }}
37
+ check-latest : true
38
+ - name : Run unit tests
39
+ run : make test
40
+ - name : Upload coverage to codecov.io
41
+ uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
Original file line number Diff line number Diff line change
1
+ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ # not use this file except in compliance with the License. A copy of the
5
+ # License is located at
6
+ #
7
+ # http://aws.amazon.com/apache2.0
8
+ #
9
+ # or in the "license" file accompanying this file. This file is distributed
10
+ # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ # express or implied. See the License for the specific language governing
12
+ # permissions and limitations under the License.
13
+
14
+ name : " CodeQL"
15
+
16
+ on :
17
+ push :
18
+ branches : main
19
+ pull_request :
20
+ branches : main
21
+ schedule :
22
+ - cron : ' 29 2 * * 5'
23
+
24
+ jobs :
25
+ analyze :
26
+ name : Analyze
27
+ runs-on : ubuntu-latest
28
+ permissions :
29
+ actions : read
30
+ contents : read
31
+ security-events : write
32
+ strategy :
33
+ matrix :
34
+ go-version : ["1.20", "1.21"]
35
+ fail-fast : false
36
+ steps :
37
+ - name : Check out code
38
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39
+ - name : Set up Go ${{ matrix.go-version }}
40
+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
41
+ with :
42
+ go-version : ${{ matrix.go-version }}
43
+ check-latest : true
44
+ - name : Initialize CodeQL
45
+ uses : github/codeql-action/init@v3
46
+ with :
47
+ languages : go
48
+ - name : Perform CodeQL Analysis
49
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2
+
3
+ # These owners will be the default owners for everything in
4
+ # the repo. Unless a later match takes precedence, these accounts
5
+ # will be requested for review when someone opens a pull request.
6
+ * @ aws/aws-signer
Original file line number Diff line number Diff line change 1
- ## My Project
1
+ ## AWS Signer plugin for Notation
2
+
3
+ [ ![ Build Status] ( https://github.com/aws/aws-signer-notation-plugin/actions/workflows/build.yml/badge.svg?event=push&branch=main )] ( https://github.com/aws/aws-signer-notation-plugin/actions/workflows/build.yml?query=workflow%3Abuild+event%3Apush+branch%3Amain )
4
+ [ ![ Codecov] ( https://codecov.io/gh/aws/aws-signer-notation-plugin/branch/main/graph/badge.svg )] ( https://codecov.io/gh/aws/aws-signer-notation-plugin )
5
+ [ ![ Go Reference] ( https://pkg.go.dev/badge/github.com/aws/aws-signer-notation-plugin.svg )] ( https://pkg.go.dev/github.com/aws/aws-signer-notation-plugin@main )
2
6
3
7
TODO: Fill this README out!
4
8
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package main
2
15
3
16
import (
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
// Package client creates AWS service like AWS Signer client required by plugin.
2
15
package client
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package client
2
15
3
16
import (
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package client
2
15
3
16
import (
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
// Package logger provides logging functionality.
2
15
package logger
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package logger
2
15
3
16
import (
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
// Package signer provides functionality to generate signatures using AWS Signer
2
15
// in accordance with the NotaryProject Plugin contract.
3
16
package signer
@@ -14,8 +27,6 @@ import (
14
27
"github.com/aws/aws-sdk-go-v2/aws/arn"
15
28
"github.com/aws/aws-sdk-go-v2/aws/transport/http"
16
29
"github.com/aws/aws-sdk-go-v2/service/signer"
17
- "github.com/aws/smithy-go"
18
-
19
30
"github.com/notaryproject/notation-plugin-framework-go/plugin"
20
31
)
21
32
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package signer
2
15
3
16
import (
@@ -9,7 +22,6 @@ import (
9
22
"github.com/aws/aws-sdk-go-v2/aws/transport/http"
10
23
"github.com/aws/aws-sdk-go-v2/service/signer"
11
24
"github.com/aws/aws-signer-notation-plugin/internal/client"
12
- "github.com/aws/smithy-go"
13
25
smithyhttp "github.com/aws/smithy-go/transport/http"
14
26
"github.com/golang/mock/gomock"
15
27
"github.com/notaryproject/notation-plugin-framework-go/plugin"
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
// Package slices provides utility methods for slice.
2
15
package slices
3
16
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package slices
2
15
3
16
import (
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
// Package verifier verified provides functionality to verify signatures generated using AWS Signer
2
15
// in accordance with the NotaryProject Plugin contract.
3
16
package verifier
Original file line number Diff line number Diff line change
1
+ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License"). You may
4
+ // not use this file except in compliance with the License. A copy of the
5
+ // License is located at
6
+ //
7
+ // http://aws.amazon.com/apache2.0
8
+ //
9
+ // or in the "license" file accompanying this file. This file is distributed
10
+ // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11
+ // express or implied. See the License for the specific language governing
12
+ // permissions and limitations under the License.
13
+
1
14
package verifier
2
15
3
16
import (
@@ -9,7 +22,6 @@ import (
9
22
10
23
"github.com/aws/aws-sdk-go-v2/aws"
11
24
"github.com/aws/aws-signer-notation-plugin/internal/client"
12
- "github.com/aws/smithy-go"
13
25
"github.com/notaryproject/notation-plugin-framework-go/plugin"
14
26
"github.com/stretchr/testify/assert"
15
27
You can’t perform that action at this time.
0 commit comments