Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

google_auth_proxy (3) Versions 2.1.4

Installs/Configures google_auth_proxy

Berkshelf/Librarian
Policyfile
Knife
cookbook 'google_auth_proxy', '~> 2.1.4'
cookbook 'google_auth_proxy', '~> 2.1.4', :supermarket
knife cookbook site install google_auth_proxy
knife cookbook site download google_auth_proxy
README
Dependencies
Quality 44%

google_auth_proxy Cookbook

This cookbook sets up a Google Auth Proxy instance provider.

Dependencies

This cookbook requires golang (for source installs only) and must have Go version 1.1.1+

It only supports Upstart as a service provider at the moment.

How to use the provider

include_recipe "google_auth_proxy"
# Proxy definition example
# Get your own keys at https://code.google.com/apis/console
google_auth_proxy_install "my-app" do
  client_id "123456.apps.googleusercontent.com"
  client_secret "my_secret"
  google_apps_domains ["mycompany.com"] # Restrict login to a set of Google apps domains
  cookie_domain "my-app.mycompany.com"
  redirect_url "http://my-app.mycompany.com/oauth2/callback"
  listen_address "127.0.0.1:4180"
  upstreams ["http://127.0.0.1:4181/"]
end

The cookie secret will be stored as a node attribute, one for each resource name, under [:google_auth][:cookie_secret].

An Upstart service for the proxy will be created as google_auth_proxy_my-app.

nginx example vhost config

For more details, see the README of Google Auth Proxy.

# Send everything through the Google Auth Proxy
server {
    listen 0.0.0.0:80;

    server_name           my-app.mycompany.com;
    access_log            /var/log/nginx/my-app.mycompany.com.access.log;

    location / {
        proxy_pass http://127.0.0.1:4180;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_connect_timeout 1;
        proxy_send_timeout 30;
        proxy_read_timeout 30;
    }
}

# The actual service
server {
  listen                127.0.0.1:4181;

  location / {
    root  /var/www;
    index  index.html  index.htm; 
  }

License and Authors

Authors: De Marque Inc.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

2.1.4 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

2.1.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

2.1.4 failed this metric

FC052: Metadata uses the deprecated "suggests" keyword: google_auth_proxy/metadata.rb:11
FC064: Ensure issues_url is set in metadata: google_auth_proxy/metadata.rb:1
FC065: Ensure source_url is set in metadata: google_auth_proxy/metadata.rb:1
FC066: Ensure chef_version is set in metadata: google_auth_proxy/metadata.rb:1
FC075: Cookbook uses node.save to save partial node data to the chef-server mid-run: google_auth_proxy/providers/install.rb:11
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

2.1.4 passed this metric

No Binaries Metric
            

2.1.4 passed this metric

Publish Metric
            

2.1.4 passed this metric

Supported Platforms Metric
            

2.1.4 passed this metric

Testing File Metric
            

2.1.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

2.1.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number