Simple test to show TLS over UDS
To run:
go test -v -timeout 1s
The third test hangs (ClientUsesTLS) at the moment. The output does look like the client has encrypted the data as it got sent to the listner.
| FROM python:3.11 | |
| WORKDIR /usr/src/app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . |
Simple test to show TLS over UDS
To run:
go test -v -timeout 1s
The third test hangs (ClientUsesTLS) at the moment. The output does look like the client has encrypted the data as it got sent to the listner.
| # syntax=docker/dockerfile:1 | |
| # Allows to cheange the JDK image used | |
| ARG JRE_DOCKER_IMAGE=eclipse-temurin:11 | |
| # Use the official JDK image as the base image | |
| FROM ${JRE_DOCKER_IMAGE} | |
| WORKDIR /app |
| --- | |
| version: "3.9" | |
| services: | |
| zookeeper: | |
| image: quay.io/debezium/zookeeper:2.3 | |
| ports: | |
| - 2181:2181 | |
| - 2888:2888 | |
| - 3888:3888 | |
| kafka: |
| # syntax=docker/dockerfile:1 | |
| FROM python:3.11-alpine | |
| COPY random-logger.py /usr/bin/ | |
| ENTRYPOINT [ "python" ] | |
| CMD [ "/usr/bin/random-logger.py" ] |
| --- | |
| - name: Create/update CloudFront origin access identity | |
| command: aws cloudfront create-cloud-front-origin-access-identity --cloud-front-origin-access-identity-config "CallerReference={{ site }},Comment=access-identity-{{ site }}.site.s3.amazonaws.com" | |
| environment: | |
| AWS_ACCESS_KEY_ID: "{{ aws_access_key }}" | |
| AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}" | |
| AWS_DEFAULT_REGION: "{{ aws_region }}" | |
| no_log: true | |
| register: aws_cli_out |
| type SomeResource struct { | |
| counter int | |
| } | |
| func (sr *SomeResource) incCounter(rw http.ResponseWriter, r *http.Request) { | |
| sr.counter++ | |
| } | |
| func (sr *SomeResource) getCounter(rw http.ResponseWriter, r *http.Request) { | |
| v := strconv.Itoa(sr.counter) |
| { | |
| "ua": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0", | |
| "browser": { | |
| "name": "Firefox", | |
| "version": "48.0", | |
| "major": "48" | |
| }, | |
| "engine": { | |
| "version": "48.0", | |
| "name": "Gecko" |
| package com.example.sqs.large.message; | |
| import com.amazon.sqs.javamessaging.AmazonSQSExtendedClient; | |
| import com.amazon.sqs.javamessaging.ExtendedClientConfiguration; | |
| import com.amazonaws.auth.AWSCredentials; | |
| import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider; | |
| import com.amazonaws.regions.Region; | |
| import com.amazonaws.regions.Regions; | |
| import com.amazonaws.services.s3.AmazonS3; | |
| import com.amazonaws.services.s3.AmazonS3Client; |