NOTE: This script is a work in progress
Bash script to sync secrets from Doppler to Cloudflare Pages using the Pages Update Project API.
The following enviroment variables must be set or else you will be prompted when running the script:
openapi: "3.1.0" | |
info: | |
title: "Discord HTTP API (Preview)" | |
description: "Preview of the Discord v10 HTTP API specification. See https://discord.com/developers/docs for more details." | |
termsOfService: "https://discord.com/developers/docs/policies-and-agreements/developer-terms-of-service" | |
license: | |
name: "MIT" | |
identifier: "MIT" | |
version: "10" | |
externalDocs: |
from dataclasses import dataclass | |
import random | |
pybites_init_questions = [ | |
'If you were to build a chatbot what would it do' | |
] | |
@dataclass | |
class PybitesIntro: |
#!/usr/bin/env sh | |
apk add --update openssl | |
echo '\n[info]: Verify private key by extracting public key\n' | |
openssl rsa -in ./secrets/tls.key -pubout | |
tail -f /dev/null # Pretend to be a long-running process |
projects: | |
- name: mandaloriongifs-python | |
description: Mandalorion GIFS generator using the Flask framework | |
environments: | |
- slug: dev | |
name: Development | |
configs: | |
- slug: dev | |
secrets: | |
dev: |
/** | |
* From https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-secrets-secrets_getsecretvalue.js.html | |
* | |
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* | |
* This file is licensed under the Apache License, Version 2.0 (the "License"). | |
* You may not use this file except in compliance with the License. A copy of | |
* the License is located at | |
* | |
* http://aws.amazon.com/apache2.0/ |
NOTE: This script is a work in progress
Bash script to sync secrets from Doppler to Cloudflare Pages using the Pages Update Project API.
The following enviroment variables must be set or else you will be prompted when running the script:
import os | |
from typing import get_type_hints, Union | |
from dotenv import load_dotenv | |
load_dotenv() | |
class AppConfigError(Exception): | |
pass | |
def _parse_bool(val: Union[str, bool]) -> bool: # pylint: disable=E1136 |
{ | |
"paddingVertical": "0px", | |
"paddingHorizontal": "0px", | |
"backgroundImage": null, | |
"backgroundImageSelection": null, | |
"backgroundMode": "color", | |
"backgroundColor": "rgba(255,255,255,1)", | |
"dropShadow": false, | |
"dropShadowOffsetY": "0px", | |
"dropShadowBlurRadius": "85px", |
#!/usr/bin/env bash | |
# Requires a CLI token | |
DOPPLER_TOKEN="$(doppler configure get token --plain)" \ | |
DOPPLER_PROJECT="$(doppler configure get project --plain)" \ | |
DOPPLER_CONFIG="$(doppler configure get config --plain)" \ | |
\ | |
SERVICE_TOKEN=$(curl -sS --request POST \ | |
--url https://api.doppler.com/v3/configs/config/tokens \ |
template-deployment.yaml |