Skip to content

Instantly share code, notes, and snippets.

View SeaJaredCode's full-sized avatar

Jared Stiff SeaJaredCode

View GitHub Profile
@SeaJaredCode
SeaJaredCode / README.md
Last active December 2, 2023 07:25
Command line support for getting tokens from Google IAP, with ArgoCD example for working with token.

Overview

The file iap_credentials_helper.sh is broadly applicable to fetch tokens for use by CLI tools that can't navigate Google's IAP via the API.

ArgoCD Wrapper Use

This wrapper is intended to be a very lightweight addition to the standard argocd command. Specifically, removing the need to type `-- header: Bearer ${IAP_TOKEN}" (or similar) onto every command!

@SeaJaredCode
SeaJaredCode / BUILD
Created July 13, 2019 05:59
Resource jars not included example
load("@rules_scala_annex//rules:scala.bzl", "scala_binary")
# Binary with resources works as expected
scala_binary(
name = "bin_res",
srcs = glob(["*.scala"]),
resources = ["some_resource.txt"],
main_class = "SomeClass",
)