-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signoz alert manager setup for SMTP (#41)
* Set up SMTP settings with test email & Move to lets encrypt
- Loading branch information
1 parent
4161baa
commit 903bc50
Showing
25 changed files
with
291 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
# To implement using something like letsencrypt | ||
# apiVersion: cert-manager.io/v1 | ||
# kind: ClusterIssuer | ||
# metadata: | ||
# name: letsencrypt-staging | ||
# spec: | ||
# acme: | ||
# server: https://acme-staging-v02.api.letsencrypt.org/directory | ||
# email: "bryan.fauble@sagebase.org" | ||
# privateKeySecretRef: | ||
# name: letsencrypt-staging-account-key | ||
# solvers: | ||
# - http01: | ||
# gatewayHTTPRoute: | ||
# parentRefs: | ||
# - kind: Gateway | ||
# name: eg | ||
# namespace: envoy-gateway | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: selfsigned | ||
name: lets-encrypt-prod | ||
spec: | ||
selfSigned: {} | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: "dpe@sagebase.org" | ||
privateKeySecretRef: | ||
name: letsencrypt-prod-account-key | ||
solvers: | ||
- http01: | ||
gatewayHTTPRoute: | ||
parentRefs: | ||
- kind: Gateway | ||
name: eg | ||
namespace: envoy-gateway |
16 changes: 16 additions & 0 deletions
16
modules/envoy-gateway/resources/http-to-https-redirect.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Upgrades HTTP requests to HTTPS | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: tls-redirect | ||
spec: | ||
parentRefs: | ||
- name: eg | ||
sectionName: http | ||
hostnames: | ||
- "*.sagedpe.org" | ||
rules: | ||
- filters: | ||
- type: RequestRedirect | ||
requestRedirect: | ||
scheme: https |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Purpose | ||
This module is used to set up SES (Simple email service) in AWS. | ||
|
||
By setting a few variables we are able to create a number of Email addresses | ||
to AWS SES. The variables to be set are: | ||
|
||
- `email_identities`, example: `["example@sagebase.org"]` | ||
|
||
# Manual steps required | ||
After running this module a number of manual steps are required as they are external | ||
processes that need to happen: | ||
|
||
## Verify Email address | ||
1) Navigate to Amazon SES in the web console | ||
2) Navigate to `identities` | ||
3) Choose the Identity to verify | ||
4) Send a test email and click the link received to verify the email | ||
|
||
Optional: Send a test email after verifying to confirm you may receive emails | ||
|
||
# Request production access | ||
After creating AWS SES settings the first time you will be in "Sandbox" mode. In order | ||
to request production access follow the following document: <https://docs.aws.amazon.com/ses/latest/dg/request-production-access.html> | ||
under the section "To request that your account be removed from the Amazon SES sandbox using the AWS CLI". | ||
|
||
The command will look something like: | ||
|
||
``` | ||
aws sesv2 put-account-details \ | ||
--production-access-enabled \ | ||
--mail-type TRANSACTIONAL \ | ||
--website-url https://www.synapse.org/ \ | ||
--additional-contact-email-addresses dpe@sagebase.org \ | ||
--contact-language EN | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
data "aws_iam_policy_document" "ses_sender" { | ||
statement { | ||
actions = ["ses:SendRawEmail"] | ||
resources = ["*"] | ||
} | ||
} |
Oops, something went wrong.