okta-terraform-generator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be1b5bad3e26a996c3b4dfcd6d2bc1f50b272f9b2bf8f7c4e9e2b6999693fc92
4
- data.tar.gz: 7745ad91a8734e6c66afc17537231caecc0422935cfd47944af0224f47e34161
3
+ metadata.gz: 5dde92813729b82cfc384cc31546bcdea4ee8b4f164d7677f1d14547f0398b53
4
+ data.tar.gz: 135e23f9790529c46511f9139ad73ec1421daccad07008fe251d8ffc0ca24aa8
5
5
  SHA512:
6
- metadata.gz: aacb28e2014b333edfa5a6be4342bc11aa6919241fca6a19ff722f50cabeabf63936d362b98a468680ccc4bba9ae3e278ac225d0f83a0f99c9660d4cc8da91db
7
- data.tar.gz: 6a82e0741eea6ad0c14ae7bb0ab7025e70cd0d434a714478ca76826a1e1559af635f9fd33fc550c9071119438370d7fb3f9bfca8e915923e966ce8302963b7cf
6
+ metadata.gz: 57cd4b06c7f2b252c4a7c3cdf9305c0fe368b7d57c9a1c7845082c7717d0a1a04bcfa14564a2a6f9f52f7208f3763988db096b9fd187ec2907ced36d3425dd8b
7
+ data.tar.gz: 9814108190b3a1ec30966d3083a1438f3f624212c9a9bf35a65143e191105fea15ca29f1ecf5f37f0faf8d5b5b5bbd4780e272197cf20b00bf46cebf86b03b9d
data/.gitignore CHANGED
@@ -6,3 +6,6 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+
10
+ *.gem
11
+ *.tf
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 0.1.1 (2018-07-06)
8
+
9
+ Fixed bug that removes users that had a state of `LOCKED_OUT`, `PASSWORD_EXPIRED` or `RECOVERY`; these users still exist and should not be ignored.
10
+
7
11
  ## 0.1.0 (2018-06-13)
8
12
 
9
13
  First release.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # okta-terraform-generator
2
2
 
3
+ [![Build Status](https://travis-ci.org/schubergphilis/okta-terraform-generator.svg?branch=master)](https://travis-ci.org/schubergphilis/okta-terraform-generator)
4
+ [![Gem](https://img.shields.io/gem/v/okta-terraform-generator.svg)](https://rubygems.org/gems/okta-terraform-generator)
5
+
3
6
  A command line helper to generate [Terraform](https://www.terraform.io/) files based on data found in an [Okta](https://www.okta.com/) tenant.
4
7
 
5
8
  ## Installation
@@ -16,6 +19,27 @@ The installed bin writes a file matching the name of the generator used in the c
16
19
 
17
20
  Running `okta-terraform-generator` will print available generators, running `okta-terraform-generator GENERATOR_NAME` will print generator specific usage.
18
21
 
22
+ ## Current Generators
23
+
24
+ The following resource generators are available:
25
+ * github_membership
26
+
27
+ ### `github_membership`
28
+
29
+ ```
30
+ Usage: okta-terraform-generator github_membership (options)
31
+
32
+ Options:
33
+ -h, --github-token GITHUB_TOKEN Specifies the GitHub API token (required)
34
+ -a OKTA_GITHUB_ADMIN_GROUP, Specifies the Okta group containing GitHub admin users (required)
35
+ --okta-github-admin-group
36
+ -e OKTA_ENDPOINT, Specifies the Okta API endpoint (e.g. https://myorg.okta.com/api/v1) (required)
37
+ --okta-endpoint
38
+ -g OKTA_GITHUB_USER_GROUP, Specifies the Okta group containing GitHub users (can be a comma separated list) (required)
39
+ --okta-github-user-group
40
+ -t, --okta-token OKTA_TOKEN Specifies the Okta API token (required)
41
+ ```
42
+
19
43
  ## Contributing
20
44
 
21
45
  We welcome contributed improvements and bug fixes via the usual work flow:
@@ -16,5 +16,5 @@
16
16
  #
17
17
 
18
18
  module OktaTerraformGenerator
19
- VERSION = '0.1.0'.freeze
19
+ VERSION = '0.1.1'.freeze
20
20
  end
@@ -22,9 +22,11 @@ module Oktakit
22
22
  module ExtendedGroups
23
23
  include Oktakit::Client::Groups
24
24
 
25
+ VALID_STATUSES = %w[ACTIVE LOCKED_OUT PASSWORD_EXPIRED RECOVERY].freeze
26
+
25
27
  def list_active_group_members(group_id)
26
28
  list_group_members(group_id).shift.select do |user|
27
- user.status == 'ACTIVE'
29
+ VALID_STATUSES.include?(user.status)
28
30
  end
29
31
  end
30
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okta-terraform-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Hoekstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-13 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facets