Recommended mitigation:
Replace this dangerous code:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.isIgnoringElementContentWhitespace();
DocumentBuilder builder = factory.newDocumentBuilder();
variable "version" {} |
Recommended mitigation:
Replace this dangerous code:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.isIgnoringElementContentWhitespace();
DocumentBuilder builder = factory.newDocumentBuilder();
from lib.secret_config import load_secret_config_from_env | |
def lambda_handler(event, context): | |
""" | |
The Handler function, which receives the lambda event and orchestrates the | |
response. It is called and passed args by Lambda. | |
Args: | |
event: The lambda event, which includes arguments from API Gateway. | |
context: Info about the execution context of the lambda. | |
""" |
# The CircleCi builds will run in the Docker image built from this Dockerfile. To build a new image: | |
# | |
# 1. docker build -t <ACCOUNT_ID>.dkr.ecr.ca-central-1.amazonaws.com/circle-ci-build:<VERSION> --build-arg GITHUB_OAUTH_TOKEN=<YOUR_TOKEN> . | |
# 2. eval "$(aws ecr get-login --region ca-central-1 --no-include-email)" | |
# 3. docker push <ACCOUNT_ID>.dkr.ecr.ca-central-1.amazonaws.com/circle-ci-build:<VERSION> | |
# 4. Update the image setting in config.yml to your new VERSION. | |
# | |
# Note that we use a multi-stage build. This allows us to pass in the GITHUB_OAUTH_TOKEN secret (which we use to access | |
# the private gruntwork-io repos) as a build arg without it being stored in the build history. For more info, see: | |
# |
1024 = 1 vCPU 1024 = 1 GB
cpu | legal memory settings |
---|---|
256 | 512, 1024, 2048 |
512 | 1024, 2048, 3072, 4096 |
1024 | 2048, 3072, 4096, 5120, 6144, 7168, 8192 |
A Squid transparent proxy server with Postfix configured as a SASL-authenticated SMTP relay to Amazon Simple Email Service (SES).
Using Squid and getting TAG_NONE on sls.update.microsoft.com and several other domains?
The problem is certificate related. These domains use Microsoft Root Certificate Authority 2011 which is not publicly trusted. It is trusted by Windows, but not in general.
import json | |
from requests.auth import HTTPBasicAuth | |
from oauthlib.oauth2 import BackendApplicationClient | |
from requests_oauthlib import OAuth2Session | |
from getpass import getpass | |
domain = "alienvault.cloud" | |
subdomain = "example" # use your actual subdomain | |
This is an example implementation of supporting sending Lightning Email Templates from a Flow using @InvocableMethod
.
Example__c won't necessarily exist or have matching fields. It is in here to inspire what you might do.
If you want to try this unmodified, you'll need to create a custom Object with an API name of Example. It will need to have fields with API names Email__c (Lookup(Contact)) and ExampleEmail__c (String or Email).