Skip to content

Commit

Permalink
chore: remove strong-named key references and signing for .NET (#12632)
Browse files Browse the repository at this point in the history
The benefits of strong-name signing assemblies are marginal at best, and it
turns out we actually weren't strong-name signing our assemblies anyway, making
all of this extra infrastructure unnecessary.

This removes the strong-name key (SNK) prebuild script, updates the buildspec
to remove the reference to it, and removes the linter rule that enforced the
strong-named assembly properties. Prior to removal, the rule was reversed and
used to update the package.json files.

This change will be accompanied by a change to our pipeline definition to
remove the references on that side.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored Jan 21, 2021
1 parent 6be5a92 commit 2a032ea
Show file tree
Hide file tree
Showing 185 changed files with 2 additions and 464 deletions.
3 changes: 0 additions & 3 deletions buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ phases:

# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
pre_build:
commands:
- /bin/bash ./fetch-dotnet-snk.sh
build:
commands:
- 'if ${BUMP_CANDIDATE:-false}; then /bin/bash ./scripts/bump-candidate.sh; fi'
Expand Down
60 changes: 0 additions & 60 deletions fetch-dotnet-snk.sh

This file was deleted.

2 changes: 0 additions & 2 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.Alexa.Ask",
"packageId": "Amazon.CDK.Alexa.Ask",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AppDelivery",
"packageId": "Amazon.CDK.AppDelivery",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.Assets",
"packageId": "Amazon.CDK.Assets",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AccessAnalyzer",
"packageId": "Amazon.CDK.AWS.AccessAnalyzer",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ACMPCA",
"packageId": "Amazon.CDK.AWS.ACMPCA",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AmazonMQ",
"packageId": "Amazon.CDK.AWS.AmazonMQ",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Amplify",
"packageId": "Amazon.CDK.AWS.Amplify",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGateway",
"packageId": "Amazon.CDK.AWS.APIGateway",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2-integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGatewayv2.Integrations",
"packageId": "Amazon.CDK.AWS.APIGatewayv2.Integrations",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.APIGatewayv2",
"packageId": "Amazon.CDK.AWS.APIGatewayv2",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppConfig",
"packageId": "Amazon.CDK.AWS.AppConfig",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppFlow",
"packageId": "Amazon.CDK.AWS.AppFlow",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ApplicationAutoScaling",
"packageId": "Amazon.CDK.AWS.ApplicationAutoScaling",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-applicationinsights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.ApplicationInsights",
"packageId": "Amazon.CDK.AWS.ApplicationInsights",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appmesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppMesh",
"packageId": "Amazon.CDK.AWS.AppMesh",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppStream",
"packageId": "Amazon.CDK.AWS.AppStream",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AppSync",
"packageId": "Amazon.CDK.AWS.AppSync",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Athena",
"packageId": "Amazon.CDK.AWS.Athena",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-auditmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AuditManager",
"packageId": "Amazon.CDK.AWS.AuditManager",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling.Common",
"packageId": "Amazon.CDK.AWS.AutoScaling.Common",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling-hooktargets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling.HookTargets",
"packageId": "Amazon.CDK.AWS.AutoScaling.HookTargets",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling",
"packageId": "Amazon.CDK.AWS.AutoScaling",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-autoscalingplans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScalingPlans",
"packageId": "Amazon.CDK.AWS.AutoScalingPlans",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Backup",
"packageId": "Amazon.CDK.AWS.Backup",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Batch",
"packageId": "Amazon.CDK.AWS.Batch",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-budgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Budgets",
"packageId": "Amazon.CDK.AWS.Budgets",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cassandra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Cassandra",
"packageId": "Amazon.CDK.AWS.Cassandra",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-ce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CE",
"packageId": "Amazon.CDK.AWS.CE",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-certificatemanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CertificateManager",
"packageId": "Amazon.CDK.AWS.CertificateManager",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Chatbot",
"packageId": "Amazon.CDK.AWS.Chatbot",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"java": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloud9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.Cloud9",
"packageId": "Amazon.CDK.AWS.Cloud9",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloudformation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CloudFormation",
"packageId": "Amazon.CDK.AWS.CloudFormation",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloudfront-origins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CloudFront.Origins",
"packageId": "Amazon.CDK.AWS.CloudFront.Origins",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CloudFront",
"packageId": "Amazon.CDK.AWS.CloudFront",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloudtrail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CloudTrail",
"packageId": "Amazon.CDK.AWS.CloudTrail",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
2 changes: 0 additions & 2 deletions packages/@aws-cdk/aws-cloudwatch-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"dotnet": {
"namespace": "Amazon.CDK.AWS.CloudWatch.Actions",
"packageId": "Amazon.CDK.AWS.CloudWatch.Actions",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png"
},
"python": {
Expand Down
Loading

0 comments on commit 2a032ea

Please sign in to comment.