Skip to content

Instantly share code, notes, and snippets.

View yottta's full-sized avatar

Andrei Ciobanu yottta

  • Brasov, Romania
View GitHub Profile
@yottta
yottta / gist:882f6d2f9eb96abf918f58a9e2a3b63c
Created March 18, 2025 13:30
OpenTofu s3 backend error on backblaze with skip_s3_checksum=false
2025-03-18T15:11:58.526+0200 [DEBUG] backend-s3: HTTP Response Received: aws.region=us-west-1 aws.s3.bucket=<bucket> aws.s3.key=issue-2570-state-file rpc.method=PutObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" http.duration=175 http.status_code=400 http.response.header.connection=keep-alive http.response.header.cache_control="max-age=0, no-cache, no-store" http.response.header.date="Tue, 18 Mar 2025 13:11:58 GMT" http.response.header.strict_transport_security=max-age=63072000
http.response.body=
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <Error>
| <Code>InvalidArgument</Code>
| <Message>Unsupported header 'x-amz-checksum-sha256' received for this API call.</Message>
| </Error>
http.response_content_length=200 http.response.header.server=nginx http.response.header.x_amz_request_id=3579085b00e92d6b http.response.header.x_amz_id_2="aMzkzjjU0MJ41ozAxZXJmL2E+ZWtmFDSu" http.response.header.content_type=application/xml
@yottta
yottta / gist:5692df8626e7c5d9fd316a712e446e61
Created March 18, 2025 09:13
Error locking with s3 backend against Hetzner
2025-03-18T11:06:42.857+0200 [DEBUG] backend-s3: HTTP Request Sent: aws.region=us-west-1 aws.s3.bucket=<bucket-name> aws.s3.key=<lock-state-object-name>.tflock rpc.method=PutObject rpc.service=S3 rpc.system=aws-api tf_aws.sdk=aws-sdk-go-v2 tf_aws.signing_region="" http.request.header.authorization="AWS4-HMAC-SHA256 Credential=<obfuscated>, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;content-encoding;content-length;content-type;host;if-none-match;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length;x-amz-trailer, Signature=*****" http.request.header.accept_encoding=identity http.request.header.x_amz_decoded_content_length=253 http.request.header.amz_sdk_request="attempt=1; max=5" http.request.header.x_amz_date=20250318T090642Z http.request.body="[Redacted: 295 bytes, Type: application/json]" http.request.header.amz_sdk_invocation_id=d4288450-6932-4996-aaef-0c9559af9580 http.request.header.content_encoding=aws-chunked http.request.header.x_amz_content_sha256=STREAMING-UNSIGNED-PA
@yottta
yottta / docker-compose.yml
Last active March 26, 2019 10:25
Medium article about WebSockets throughout Varnish - docker-compose.yml with varnish
version: "3"
services:
web:
build: ./web
container_name: web-client
networks:
- internal-network
server:
build: ./server
container_name: product-service
@yottta
yottta / user.vcl
Last active March 27, 2019 09:16
Medium article about WebSockets throughout Varnish - user.vcl 1
vcl 4.1;
backend default {
.host = "web-client";
.port = "80";
}
backend productService {
.host = "product-service";
.port = "8080";
@yottta
yottta / Dockerfile
Last active March 27, 2019 09:16
Medium article about WebSockets throughout Varnish - varnish Dockerfile 1
FROM debian:jessie
RUN \
useradd -r -s /bin/false varnishd
# Install Varnish source build dependencies.
RUN \
apt-get update && apt-get install -y --no-install-recommends \
automake \
build-essential \
@yottta
yottta / docker-compose.yml
Last active March 26, 2019 06:40
Medium article about WebSockets throughout Varnish - docker-compose.yml without varnish
version: "3"
services:
web:
build: ./web
container_name: websocket-client
ports:
- "8081:80"
server:
build: ./server
container_name: product-service
@yottta
yottta / Dockerfile
Created March 26, 2019 06:17
Medium article about WebSockets throughout Varnish - Web Client Dockerfile
FROM nginx
COPY index.html /usr/share/nginx/html
@yottta
yottta / Dockerfile
Last active March 26, 2019 06:14
Medium article about WebSockets throughout Varnish - dockerfile productService
FROM golang:1.12.1
WORKDIR /ws-server
ADD main.go go.sum go.mod /ws-server/
RUN go build
ENTRYPOINT ["/ws-server/product-service"]
@yottta
yottta / index.html
Created March 25, 2019 13:27
Medium article about WebSockets throughout Varnish - initial web client
<!DOCTYPE html>
<html>
<head>
<title>Products</title>
</head>
<body>
<p>Product List:</p>
<ul id="products">
</ul>
<script>
@yottta
yottta / main.go
Last active March 25, 2019 14:12
Medium article about WebSockets throughout Varnish
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"