cdk-ecr-deployment 2.5.0 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.gitattributes +0 -1
  2. package/.jsii +2 -2
  3. package/changelog.md +4 -8
  4. package/lambda/Dockerfile +8 -2
  5. package/lambda/go.mod +22 -31
  6. package/lambda/go.sum +425 -95
  7. package/lib/index.js +3 -3
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +93 -3
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +42 -11
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +31 -3
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +12 -0
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +3 -3
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +31 -1
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1 -1
  27. package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
  28. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  29. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +93 -3
  30. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +42 -11
  31. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  32. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +31 -3
  33. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
  34. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
  35. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
  36. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
  37. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +12 -0
  38. package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
  39. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
  40. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
  41. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -0
  42. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +3 -3
  43. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
  44. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +31 -1
  45. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1 -1
  46. package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
  47. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  48. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +93 -3
  49. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +42 -11
  50. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  51. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +31 -3
  52. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
  53. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
  54. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
  55. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
  56. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +12 -0
  57. package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
  58. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
  59. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
  60. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -0
  61. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +3 -3
  62. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
  63. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +31 -1
  64. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1 -1
  65. package/package.json +9 -6
  66. package/releasetag.txt +1 -1
  67. package/version.txt +1 -1
package/.gitattributes CHANGED
@@ -9,7 +9,6 @@
9
9
  /.github/workflows/pull-request-lint.yml linguist-generated
10
10
  /.github/workflows/release-v1-main.yml linguist-generated
11
11
  /.github/workflows/release.yml linguist-generated
12
- /.github/workflows/stale.yml linguist-generated
13
12
  /.github/workflows/upgrade-main.yml linguist-generated
14
13
  /.github/workflows/upgrade-v1-main.yml linguist-generated
15
14
  /.gitignore linguist-generated
package/.jsii CHANGED
@@ -3330,6 +3330,6 @@
3330
3330
  "symbolId": "src/index:S3ArchiveName"
3331
3331
  }
3332
3332
  },
3333
- "version": "2.5.0",
3334
- "fingerprint": "3mLYngpykDsoD4fk8zZhCKMcPe4fSNCho13J/iBIv18="
3333
+ "version": "2.5.3",
3334
+ "fingerprint": "wVg46eKSV8HZR9XFJGIEhtL18SwSCw5kC9+va6fZW5I="
3335
3335
  }
package/changelog.md CHANGED
@@ -1,13 +1,9 @@
1
1
 
2
- ## [2.5.0](https://github.com/cdklabs/cdk-ecr-deployment/compare/v2.4.4...v2.5.0) (2022-04-10)
3
-
4
-
5
- ### Features
6
-
7
- * add FORCE_PREBUILT_LAMBDA env ([ad3359f](https://github.com/cdklabs/cdk-ecr-deployment/commit/ad3359fde560597f4d3bda1d5da0c67fd1f6d97b))
2
+ ### [2.5.3](https://github.com/cdklabs/cdk-ecr-deployment/compare/v2.5.2...v2.5.3) (2022-05-28)
8
3
 
9
4
 
10
5
  ### Bug Fixes
11
6
 
12
- * github.com/urfave/cli@v1.20.0: reading https://goproxy.cn/github.com/urfave/cli/@v/v1.20.0.mod: 504 Gateway Timeout ([11a0397](https://github.com/cdklabs/cdk-ecr-deployment/commit/11a0397b5db39a7567dd4fa42f4cb9affa3d1f77))
13
- * test Dockerfile GOPROXY seperator to pipe(|) ([99c72ee](https://github.com/cdklabs/cdk-ecr-deployment/commit/99c72ee5c9c53cf1cd79271a1ed2893afe8c80ba))
7
+ * GOPROXY naming conflicts ([303e3b4](https://github.com/cdklabs/cdk-ecr-deployment/commit/303e3b478d78830cdac24e2c8a3b735e2ce74a45))
8
+ * security issues ([2f10629](https://github.com/cdklabs/cdk-ecr-deployment/commit/2f106294febd2d6602b6e43dda4c57af71c779fc))
9
+ * wrong ARG position leading to GOPROXY unset ([66b66e5](https://github.com/cdklabs/cdk-ecr-deployment/commit/66b66e52770f7e37ea48343e95e29d368c52fac4))
package/lambda/Dockerfile CHANGED
@@ -13,16 +13,22 @@ RUN yum -y install \
13
13
  libassuan-devel \
14
14
  libudev-devel
15
15
 
16
+ # In https://github.com/aws/aws-sam-build-images/blob/0a39eebc0d1d462afbe155d4e6a4cbcb12888847/build-image-src/Dockerfile-go1x#L29
17
+ # already defined GOPROXY env.
18
+ # To avoid naming conflict which will lead to weird error like https://github.com/laradock/laradock/issues/2618
19
+ # , use the following name instead
20
+ ARG _GOPROXY
21
+
16
22
  ENV GOOS=linux \
17
23
  GOARCH=amd64 \
18
24
  GO111MODULE=on \
19
- GOPROXY=https://goproxy.cn|https://goproxy.io|direct
25
+ GOPROXY="${_GOPROXY}"
20
26
 
21
27
  WORKDIR /ws
22
28
 
23
29
  COPY go.mod go.sum ./
24
30
 
25
- RUN go mod download -x
31
+ RUN go env && go mod download -x
26
32
 
27
33
  COPY . /ws
28
34
 
package/lambda/go.mod CHANGED
@@ -3,39 +3,30 @@ module cdk-ecr-deployment-handler
3
3
  go 1.15
4
4
 
5
5
  require (
6
- github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
7
- github.com/Microsoft/go-winio v0.5.1 // indirect
8
- github.com/Microsoft/hcsshim v0.9.2 // indirect
9
- github.com/aws/aws-lambda-go v1.23.0
10
- github.com/aws/aws-sdk-go-v2 v1.14.0
11
- github.com/aws/aws-sdk-go-v2/config v1.1.6
12
- github.com/aws/aws-sdk-go-v2/internal/ini v1.3.6 // indirect
13
- github.com/aws/aws-sdk-go-v2/service/ecr v1.2.2
14
- github.com/aws/aws-sdk-go-v2/service/s3 v1.5.0
15
- github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.14.0
16
- github.com/cespare/xxhash/v2 v2.1.2 // indirect
17
- github.com/containerd/cgroups v1.0.3 // indirect
18
- github.com/containerd/containerd v1.5.10 // indirect
19
- github.com/containers/image/v5 v5.17.0
20
- github.com/docker/distribution v2.8.0+incompatible // indirect
21
- github.com/docker/docker v20.10.12+incompatible // indirect
6
+ github.com/BurntSushi/toml v1.1.0 // indirect
7
+ github.com/aws/aws-lambda-go v1.29.0
8
+ github.com/aws/aws-sdk-go-v2 v1.16.2
9
+ github.com/aws/aws-sdk-go-v2/config v1.15.3
10
+ github.com/aws/aws-sdk-go-v2/service/ecr v1.17.3
11
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.26.4
12
+ github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.15.4
13
+ github.com/containerd/containerd v1.6.2 // indirect
14
+ github.com/containers/image/v5 v5.21.0
15
+ github.com/containers/storage v1.39.0 // indirect
22
16
  github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
23
- github.com/hashicorp/errwrap v1.1.0 // indirect
24
- github.com/moby/term v0.0.0-20210610120745-9d4ed1856297 // indirect
17
+ github.com/gorilla/mux v1.8.0 // indirect
18
+ github.com/imdario/mergo v0.3.13 // indirect
25
19
  github.com/opencontainers/go-digest v1.0.0
26
- github.com/opencontainers/image-spec v1.0.3-0.20211202193544-a5463b7f9c84 // indirect
27
- github.com/opencontainers/runc v1.1.0 // indirect
20
+ github.com/opencontainers/runc v1.1.2 // indirect
28
21
  github.com/pkg/errors v0.9.1
29
- github.com/prometheus/common v0.30.0 // indirect
30
- github.com/prometheus/procfs v0.7.3 // indirect
22
+ github.com/prometheus/common v0.33.0 // indirect
31
23
  github.com/sirupsen/logrus v1.8.1
32
- github.com/stretchr/testify v1.7.0
33
- golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
34
- golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect
35
- golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
36
- golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
37
- google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
38
- google.golang.org/grpc v1.43.0 // indirect
39
- gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
40
- gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
24
+ github.com/stretchr/testify v1.7.1
25
+ github.com/vbauerster/mpb/v7 v7.4.1 // indirect
26
+ go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
27
+ golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 // indirect
28
+ golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 // indirect
29
+ golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f // indirect
30
+ google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
31
+ gopkg.in/square/go-jose.v2 v2.6.0 // indirect
41
32
  )