Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

source "https://rubygems.org"

gem "entitlements", "0.1.7"
gem "entitlements", "0.1.8"
gem "entitlements-github-plugin", "0.0.2"
gem "contracts"
gem "faraday"
gem "net-ldap"
gem "octokit"
gem "concurrent-ruby"
gem "sawyer"
gem 'debase'
Expand Down
49 changes: 29 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,47 +1,56 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
concurrent-ruby (1.1.9)
contracts (0.16.0)
debase (0.2.4.1)
debase-ruby_core_source (>= 0.10.2)
debase-ruby_core_source (0.10.15)
entitlements (0.1.7)
debase-ruby_core_source (0.10.16)
entitlements (0.1.8)
concurrent-ruby (= 1.1.9)
contracts (= 0.16.0)
faraday (>= 0.17.3, < 0.18)
net-ldap (~> 0.17.0)
octokit (~> 4.18)
optimist (= 3.0.0)
faraday (0.17.4)
multipart-post (>= 1.2, < 3)
multipart-post (2.1.1)
net-ldap (0.17.0)
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
entitlements-github-plugin (0.0.2)
concurrent-ruby (= 1.1.9)
contracts (= 0.16.0)
faraday (>= 1, < 3)
net-ldap (~> 0.17.0)
octokit (~> 4.25)
optimist (= 3.0.0)
faraday (2.5.2)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.0)
net-ldap (0.17.1)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
optimist (3.0.0)
public_suffix (4.0.6)
public_suffix (5.0.0)
rake (13.0.6)
ruby-debug-ide (0.7.3)
rake (>= 0.8.1)
sawyer (0.8.2)
ruby2_keywords (0.0.5)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
faraday (>= 0.17.3, < 3)

PLATFORMS
ruby
x86_64-darwin-19
x86_64-darwin-20

DEPENDENCIES
concurrent-ruby
contracts
debase
entitlements (= 0.1.7)
entitlements (= 0.1.8)
entitlements-github-plugin (= 0.0.2)
faraday
net-ldap
octokit
ruby-debug-ide
sawyer

BUNDLED WITH
2.3.9
25 changes: 15 additions & 10 deletions config/entitlements.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<%-
begin
require_relative "/data/entitlements/lib/entitlements-and-plugins"
rescue Exception
begin
require_relative "lib/entitlements-and-plugins"
rescue Exception
# We might not have the plugins installed and still want this file to be
# loaded. Don't raise anything but silently fail.
end
end
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", File.dirname(__FILE__))
require "bundler/setup"
require "entitlements"

# require entitlements plugins here
require "entitlements/backend/github_org"
require "entitlements/backend/github_team"
require "entitlements/service/github"
-%>
---
backends:
Expand Down Expand Up @@ -37,6 +35,13 @@ groups:
base: ou=strictly-audited,ou=Entitlements,ou=Groups,dc=example,dc=org
dir: entitlements/strictly-audited
create_if_missing: true
github.com/danhoerst-test/teams:
addr: <%= ENV["GITHUB_API_BASE"] %>
base: ou=teams,ou=github,ou=GitHub,dc=github,dc=com
dir: github.com/danhoerst-test/org
org: danhoerst-test
token: <%= ENV["GITHUB_ORG_TOKEN"] %>
type: "github_org"
people:
ldap:
type: ldap
Expand Down
3 changes: 3 additions & 0 deletions github.com/danhoerst-test/org/admin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description = Admins of the danhoerst-test org
username = danhoerst
username = rick
6 changes: 6 additions & 0 deletions github.com/danhoerst-test/org/member.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description = Members of the danhoerst-test

# Prefer admin over member if defined in both places
group != github.com/github/org/admin
metadata_no_conditions_ok = true
metadata_no_members_ok = true
Binary file removed vendor/cache/addressable-2.8.0.gem
Binary file not shown.
Binary file added vendor/cache/addressable-2.8.1.gem
Binary file not shown.
Binary file removed vendor/cache/debase-ruby_core_source-0.10.15.gem
Binary file not shown.
Binary file added vendor/cache/debase-ruby_core_source-0.10.16.gem
Binary file not shown.
Binary file removed vendor/cache/entitlements-0.1.7.gem
Binary file not shown.
Binary file added vendor/cache/entitlements-0.1.8.gem
Binary file not shown.
Binary file added vendor/cache/entitlements-github-plugin-0.0.2.gem
Binary file not shown.
Binary file removed vendor/cache/faraday-0.17.4.gem
Binary file not shown.
Binary file added vendor/cache/faraday-2.5.2.gem
Binary file not shown.
Binary file added vendor/cache/faraday-net_http-3.0.0.gem
Binary file not shown.
Binary file removed vendor/cache/multipart-post-2.1.1.gem
Binary file not shown.
Binary file removed vendor/cache/net-ldap-0.17.0.gem
Binary file not shown.
Binary file added vendor/cache/net-ldap-0.17.1.gem
Binary file not shown.
Binary file removed vendor/cache/octokit-4.21.0.gem
Binary file not shown.
Binary file added vendor/cache/octokit-4.25.1.gem
Binary file not shown.
Binary file removed vendor/cache/public_suffix-4.0.6.gem
Binary file not shown.
Binary file added vendor/cache/public_suffix-5.0.0.gem
Binary file not shown.
Binary file added vendor/cache/ruby2_keywords-0.0.5.gem
Binary file not shown.
Binary file removed vendor/cache/sawyer-0.8.2.gem
Binary file not shown.
Binary file added vendor/cache/sawyer-0.9.2.gem
Binary file not shown.