Skip to content

Instantly share code, notes, and snippets.

Avatar

William Huba hexedpackets

View GitHub Profile
View keybase.md

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:

@hexedpackets
hexedpackets / create_consul_user.py
Created Jul 24, 2015
Script for creating users in Consul in the format expected by nsscache.
View create_consul_user.py
#!/usr/bin/env python
import argparse
import base64
import requests
import os
class ConsulUser(object):
@hexedpackets
hexedpackets / pam_script_acct.py
Created Jul 22, 2015
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.
View pam_script_acct.py
#!/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
You can’t perform that action at this time.