Skip to content

Instantly share code, notes, and snippets.

@hexedpackets
hexedpackets / pam_script_acct.py
Created July 22, 2015 16:35
Consul PAM account script for authenticating SSH users on an EC2 host based on the name of the host, as passed into the user data.
#!/usr/bin/env python
"""Authenticates a user in PAM based on the name of the current host."""
import re
import requests
import os
import sys
@hexedpackets
hexedpackets / create_consul_user.py
Created July 24, 2015 15:12
Script for creating users in Consul in the format expected by nsscache.
#!/usr/bin/env python
import argparse
import base64
import requests
import os
class ConsulUser(object):

Keybase proof

I hereby claim:

  • I am hexedpackets on github.
  • I am hexedpackets (https://keybase.io/hexedpackets) on keybase.
  • I have a public key ASDEJnreX8YCGdeqqs-36VHgM4HzUZ5SjH1fq3GP8HgbxAo

To claim this, I am signing this object: