Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 30d9927

Browse files
author
Joshua Leaverton
committed
Disabling user signup in Cognito
1 parent 4580224 commit 30d9927

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.2] - BUGFIX 2020-09-28
8+
- Changed Cognito user pool to only allow account creation by the Cognito Admin user
9+
710
## [3.2] - 2019-12-18
811

912
### Added

deployment/centralized-logging-demo.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ Resources:
9191
Tags:
9292
- Key: Name
9393
Value: centralized-logging-demo VPC
94+
Metadata:
95+
cfn_nag:
96+
rules_to_suppress:
97+
- id: W60
98+
reason: "This is a demo VPC with no ingress other than to the demo web server. VPC flow logs are not necessary."
9499

95100
PublicSubnet:
96101
Type: AWS::EC2::Subnet

deployment/centralized-logging-primary.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ Resources:
162162
AttributeDataType: String
163163
Mutable: false
164164
Required: true
165+
AdminCreateUserConfig:
166+
AllowAdminCreateUserOnly: True
167+
Metadata:
168+
cfn_nag:
169+
rules_to_suppress:
170+
- id: F78
171+
reason: "MFAConfiguration can be enabled by the customer upon implementation."
165172

166173
# Custom resource to configure Cognito and ES
167174
SetupESCognito:
@@ -795,6 +802,11 @@ Resources:
795802
S3Key: !Join ["/", [!FindInMap ["SourceCode", "General", "KeyPrefix"], "clog-indexing-service.zip"]]
796803
Runtime: nodejs12.x
797804
Timeout: 300
805+
Metadata:
806+
cfn_nag:
807+
rules_to_suppress:
808+
- id: W58
809+
reason: "CloudWatch Logs write permissions granted to lambda-specific loggroup via LogStreamerRole"
798810

799811
LogStreamerInvokePermission:
800812
Type: AWS::Lambda::Permission

deployment/centralized-logging-spoke.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ Resources:
161161
S3Key: !Join ["/", [!FindInMap ["SourceCode", "General", "KeyPrefix"], "clog-indexing-service.zip"]]
162162
Runtime: nodejs12.x
163163
Timeout: 300
164+
Metadata:
165+
cfn_nag:
166+
rules_to_suppress:
167+
- id: W58
168+
reason: "CloudWatch Logs write permissions granted to lambda-specific loggroup via LogStreamerRole"
164169

165170
LogStreamerInvokePermission:
166171
Type: AWS::Lambda::Permission

source/services/indexing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"aws-sdk": "*",
1919
"chai": "*",
20-
"sinon": "*",
20+
"sinon": ">=4.0.0 <5.0.0",
2121
"sinon-chai": "*",
2222
"mocha": "*",
2323
"aws-sdk-mock": "*",

0 commit comments

Comments
 (0)