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
#!/usr/bin/env bash | |
# | |
# K8s-Vault, like AWS-Vault is a helper for AWS related CLI tools | |
# is a helper for CLI tools using kubectl config and K8s API. | |
# Unlike AWS-Vault, vault here is used as a verb, | |
# synonymous to leap, jump, spring, etc.. | |
# Copyright (C) 2019-2020 Anastas Dancha (aka @anapsix) | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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
#!/usr/bin/env bash | |
# | |
# K8s-OIDC-LOGIN helper to simplify configuration of OIDC authentication for kubectl | |
# | |
# Heavily influenced by oidckube project by @mrbobbytables | |
# https://github.com/mrbobbytables/oidckube | |
# | |
# Copyright (C) 2019 Anastas Dancha (aka @anapsix) | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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
#!/usr/bin/env bash | |
# | |
# RKIND is a naive helper script to start KIND and Rancher Management Server | |
# | |
set -u | |
set -o pipefail | |
RANCHER_CONTAINER_NAME="rancher-for-kind" | |
RANCHER_HTTP_HOST_PORT=$[$[RANDOM%9000]+30000] |
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
#!/usr/bin/env bash | |
set -e | |
set -u | |
set -o pipefail | |
renew_cert() { | |
local cert="${1:-}" | |
local renew="n" | |
if [[ "${cert:-_unset_}" == "_unset_" ]]; then |
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 JQ script parses Cloudflare API call listing Firewall Rules | |
# and generates cloudflare_filter_and cloudflare_firewall_rule | |
############################################################################## | |
# Copyright (c) 2020 Anastas Dancha (@anapsix) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
#!/usr/bin/env sh | |
for dep in curl jq grep awk; do | |
if ! which ${dep} >&/dev/null; then | |
echo >&2 "ERROR: required ${dep} binary is not found, exiting.." | |
exit 1 | |
fi | |
done | |
TOKEN=$( |
OlderNewer