Skip to content

Instantly share code, notes, and snippets.

@cohix
cohix / suborbital_secrets.md
Last active May 18, 2022 15:43
Proposal for secrets management in Suborbital projects

Suborbital Secrets Management Proposal

For Atmo, Reactr, and possibly Vektor, I propose the following secrets management system.

Requirements:

  1. The ability to have a dependency-free local file based system
  2. The ability to pull secrets from environment variables
  3. The ability to have an alternate external API-based system
  4. The ability to easily manage secrets using the subo CLI
@cohix
cohix / AlamofireHelperFuncs.swift
Last active November 30, 2015 23:56
Safe and tested GET POST and DELETE wrapper functions for Alamofire and SwiftyJSON
// From Cocoapods
import Alamofire
import SwiftyJSON
func get(endpoint: String, params: [String: AnyObject], completion: (response: JSON) -> Void)
{
Alamofire.request(.GET, "\(self.url)/\(endpoint)", parameters: params).responseJSON { (json)
in
if (json.result.error != nil)
{