Skip to content

Instantly share code, notes, and snippets.

{
"_index": "alllogs-2014-03-12",
"_type": "message",
"_id": "842s_JjTRd6B5WIRHAd5jQ",
"_score": 0.044194173,
"_source": {
"Uuid": "4cd5808c-5c7a-48f0-aa0e-ac91e4fc654f",
"Timestamp": "2014-03-12T02:11:54.868Z",
"Type": "request.summary",
"Logger": "fxa-auth-server",

Keybase proof

I hereby claim:

  • I am dannycoates on github.
  • I am antiserf (https://keybase.io/antiserf) on keybase.
  • I have a public key whose fingerprint is A47A B66F A105 C2FF 7B94 D2A4 2C5D E6D9 E52B D826

To claim this, I am signing this object:

@dannycoates
dannycoates / Vagrantfile
Last active August 29, 2015 14:01
vagrant vmware trace
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", type: "dhcp"
end
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Single machine Fxa Dev environment",
"Parameters" : {
"KeyName": {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the web server",
"Type": "String",
"MinLength": "1",
@dannycoates
dannycoates / abuse.lua
Last active January 14, 2016 11:29
heka anomalies and alerts
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
require "math"
require "string"
local alert = require "alert"
local message_variable = read_config("message_variable") or error("must specify a 'message_variable'")
local max_items = read_config("max_items") or 25000
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
@dannycoates
dannycoates / logs.md
Last active August 29, 2015 14:04
FxA Log Format

FxA Log Format

version 0.0.1-draft-1

Goals

A standard base log format that enables log messages to be easily routed and filtered while allowing applications maximum flexibility in data they are able to record.

@dannycoates
dannycoates / q3-goals.md
Last active August 29, 2015 14:04
Q3 FxA Internal Goals

Q3 FxA Internal Goals

  • common standards for log, stats, and config formats
    • all repos following these standards
    • collaborate with larger Cloud Services team on these standards (especially logs)
    • (stretch) common library implementations
  • noticeably easier deployment compared to train-16 for fxa services
    • as determined by us
  • documented dev guidelines
  • a new contributor should be able to read this and not be surprised by any steps between fixing a bug and seeing it in production
@dannycoates
dannycoates / outline.md
Created September 15, 2014 21:06
FxA Auth Server Intro Outline

FxA Auth Server

  • Purely an API server
  • Stores account credentials, secret keys, "sessions"
  • signs keys for assertions

Data Model

  • Accounts
  • SessionTokens

FxA-dev

  • ansible based combined dev environment
  • AWS CloudFormation
  • meant to be prod-like but simpler

Structure

  • base roles
  • role per project