Skip to content

Commit

Permalink
Don't read AWS creds from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Oct 13, 2024
1 parent 9ecf3da commit aa2d916
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Mortein/Mqtt/MqttAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ public static class MqttAuthentication
private static readonly string credentialBucketName = "api-mqtt-certificate";
private static readonly string objectName = "api.pfx";

private static readonly AmazonS3Client s3 = new(
Environment.GetEnvironmentVariable("AWS_ACCESS_KEY_ID"),
Environment.GetEnvironmentVariable("AWS_SECRET_ACCESS_KEY"),
RegionEndpoint.APSoutheast2
);
private static readonly AmazonS3Client s3 = new(RegionEndpoint.APSoutheast2);

private static async Task<GetObjectResponse?> GetCredentialFileObject()
{
Expand Down

0 comments on commit aa2d916

Please sign in to comment.