Commit Graph

376 Commits

Author SHA1 Message Date
Vishal Nayak
6b9ce0c8c5 Porting identity store (#3419)
* porting identity to OSS

* changes that glue things together

* add testing bits

* wrapped entity id

* fix mount error

* some more changes to core

* fix storagepacker tests

* fix some more tests

* fix mount tests

* fix http mount tests

* audit changes for identity

* remove upgrade structs on the oss side

* added go-memdb to vendor
2017-10-11 10:21:20 -07:00
Vishal Nayak
8e1ffd3135 update deps (#3425)
Update deps for Kubernetes and GCP auth plugins
2017-10-04 22:59:12 -04:00
Chris Hoffman
a393b20cb6 fixing dependencies 2017-10-02 13:47:03 -04:00
Chris Hoffman
44aed8f71a fixing dependencies 2017-10-02 13:46:42 -04:00
Nicolas Corrarello
6a33bf0bf2 Adding further nomad deps 2017-10-02 16:56:39 +01:00
Oluwafemi Sule
f76633c8bc fix spellings errors (#3400) 2017-09-29 11:52:42 -04:00
Nicolas Corrarello
ff4f920917 Adding vendor dir 2017-09-29 14:39:59 +01:00
Brian Kassouf
4fb3f163ee Kubernetes auth (#3350)
* Import the kubernetes credential backend

* Add kubernetes docs

* Escape * characters

* Revert "Import the kubernetes credential backend"

This reverts commit f12627a942.

* Update the vendored directory
2017-09-19 09:27:26 -05:00
Jeff Mitchell
0911358f1a more dep syncing 2017-09-15 21:47:22 -04:00
Jeff Mitchell
da1eb4cf16 Update to new gcp-auth plugin 2017-09-15 15:35:34 -04:00
Jeff Mitchell
3c143bd0d3 Bump deps 2017-09-15 12:44:57 -04:00
Chris Hoffman
3aa68c0034 Adding support for base_url for Okta api (#3316)
* Adding support for base_url for Okta api

* addressing feedback suggestions, bringing back optional group query

* updating docs

* cleaning up the login method

* clear out production flag if base_url is set

* docs updates

* docs updates
2017-09-15 00:27:45 -04:00
Calvin Leung Huang
2fffe60fa0 Update vendored docker deps 2017-09-07 11:05:33 -04:00
Jeff Mitchell
b0e29bb2ec Bump deps 2017-09-05 18:06:47 -04:00
Jeff Mitchell
117de0ab8b Bump gcp plugin dep 2017-09-05 10:56:32 -04:00
Jeff Mitchell
a9509d7017 Bump hclog dep 2017-09-03 12:33:44 -04:00
Chris Hoffman
e54a3dbe47 Updating Okta lib for credential backend (#3245)
* migrating to chrismalek/oktasdk-go Okta library

* updating path docs

* updating bool reference from config
2017-08-30 22:37:21 -04:00
Jeff Mitchell
c14d445de4 Bump go-plugin dep 2017-08-16 11:41:06 -04:00
Jeff Mitchell
27c2386f4a Add gcp auth backend (#3183) 2017-08-16 10:31:34 -04:00
Jeff Mitchell
542b5da8f2 Bump go-plugin version 2017-08-15 16:06:56 -04:00
Jeff Mitchell
f2f0082ba5 Sync go-plugin from upstream 2017-08-07 15:27:03 -04:00
Jeff Mitchell
02ebc5cc81 Update go-plugin to include go-hclog support 2017-08-05 15:34:57 -04:00
Jeff Mitchell
608322b546 Add PROXY protocol support (#3098) 2017-08-02 18:24:12 -04:00
Tony Cai
b3a505cb45 Update vendored library go-hdb (#3097) 2017-08-02 12:53:45 -04:00
Brian Kassouf
dd9cf42ba6 Add Testing Interface to test helpers (#3091)
* Add testing interface

* Add vendored files
2017-08-01 11:07:08 -07:00
Jeff Mitchell
75c8c88c47 Sirupsen->sirupsen 2017-07-25 15:49:10 -04:00
Jeff Mitchell
78afc7ccea Remove uppercase Sirupsen logrus dep 2017-07-25 15:36:14 -04:00
Chris Hoffman
317ae32ca7 CockroachDB Physical Backend (#2713) 2017-07-23 08:54:33 -04:00
Jeff Mitchell
79c47b9433 Bump deps 2017-07-18 10:15:54 -04:00
Tony Cai
f92f4d4972 Added HANA database plugin (#2811)
* Added HANA dynamic secret backend

* Added acceptance tests for HANA secret backend

* Add HANA backend as a logical backend to server

* Added documentation to HANA secret backend

* Added vendored libraries

* Go fmt

* Migrate hana credential creation to plugin

* Removed deprecated hana logical backend

* Migrated documentation for HANA database plugin

* Updated HANA DB plugin to use role name in credential generation

* Update HANA plugin tests

* If env vars are not configured, tests will skip rather than succeed

* Fixed some improperly named string variables

* Removed unused import

* Import SAP hdb driver
2017-07-07 13:11:23 -07:00
Jeff Mitchell
1e5a44410e Add missing datadog vendored lib 2017-06-17 01:29:42 -04:00
Jeff Mitchell
f5de93f1bf Add DogStatsD metrics output. (#2883)
Fixes #2490
2017-06-16 23:51:46 -04:00
Jeff Mitchell
18b941eef8 Update Azure dep (#2881) 2017-06-16 12:06:09 -04:00
Jeff Mitchell
08cea6aad1 Bump deps 2017-06-16 11:14:18 -04:00
Jeff Mitchell
b938163ad1 Update vendoring 2017-06-05 10:51:53 -04:00
Jeff Mitchell
1265e6d7e3 Finish dep update 2017-05-24 21:16:17 -04:00
Jeff Mitchell
cfd739d783 Add peer cluster address cache 2017-05-24 20:51:53 -04:00
Jeff Mitchell
c4377e1ce5 Revert azure vendor updates 2017-05-24 10:12:06 -04:00
Jeff Mitchell
d468da79e0 Bump deps 2017-05-24 09:40:58 -04:00
Mitchell Hashimoto
4dc061e923 audit: hash time.Time values in map fields (#2689)
This enables audit.Hash to hash time.Time values that may exist as
direct fields in the map. This will error (instead of panic) for any
time.Time values that don't occur within map values. For example, this
does not support a time.Time within a slice. If that needs to be
supported then modifications will need to be made.

This also requires an update to reflectwalk (included in this PR). This
is a minimal change that allows SkipEntry to signal to skip an entire
struct. We do this because we don't want to walk any of time.Time since
we handle it directly.
2017-05-08 14:06:08 -04:00
Brian Kassouf
fcd4f903c3 Merge remote-tracking branch 'oss/master' into database-refactor 2017-05-04 12:40:00 -07:00
mymercurialsky
461d658e88 Implemented TOTP Secret Backend (#2492)
* Initialized basic outline of TOTP backend using Postgresql backend as template

* Updated TOTP backend.go's structure and help string

* Updated TOTP path_roles.go's structure and help strings

* Updated TOTP path_role_create.go's structure and help strings

* Fixed typo in path_roles.go

* Fixed errors in path_role_create.go and path_roles.go

* Added TOTP secret backend information to cli commands

* Fixed build errors in path_roles.go and path_role_create.go

* Changed field values of period and digits from uint to int, added uint conversion of period when generating passwords

* Initialized TOTP test file based on structure of postgresql test file

* Added enforcement of input values

* Added otp library to vendor folder

* Added test steps and cleaned up errors

* Modified read credential test step, not working yet

* Use of vendored package not allowed - Test error

* Removed vendor files for TOTP library

* Revert "Removed vendor files for TOTP library"

This reverts commit fcd030994b.

* Hopefully fixed vendor folder issue with TOTP Library

* Added additional tests for TOTP backend

* Cleaned up comments in TOTP backend_test.go

* Added default values of period, algorithm and digits to field schema

* Changed account_name and issuer fields to optional

* Removed MD5 as a hash algorithm option

* Implemented requested pull request changes

* Added ability to validate TOTP codes

* Added ability to have a key generated

* Added skew, qr size and key size parameters

* Reset vendor.json prior to merge

* Readded otp and barcode libraries to vendor.json

* Modified help strings for path_role_create.go

* Fixed test issue in testAccStepReadRole

* Cleaned up error formatting, variable names and path names. Also added some additional documentation

* Moveed barcode and url output to key creation function and did some additional cleanup based on requested changes

* Added ability to pass in TOTP urls

* Added additional tests for TOTP server functions

* Removed unused QRSize, URL and Generate members of keyEntry struct

* Removed unnecessary urlstring variable from pathKeyCreate

* Added website documentation for TOTP secret backend

* Added errors if generate is true and url or key is passed, removed logger from backend, and revised parameter documentation.

* Updated website documentation and added QR example

* Added exported variable and ability to disable QR generation, cleaned up error reporting, changed default skew value, updated documentation and added additional tests

* Updated API documentation to inlude to exported variable and qr size option

* Cleaned up return statements in path_code, added error handling while validating codes and clarified documentation for generate parameters in path_keys
2017-05-04 10:49:42 -07:00
Brian Kassouf
55f1f5116a Merge remote-tracking branch 'oss/master' into database-refactor 2017-05-04 10:45:18 -07:00
Michael Ansel
8da4405c99 Add constraints on the Common Name for certificate-based authentication (#2595)
* Refactor to consolidate constraints on the matching chain

* Add CN prefix/suffix constraint

* Maintain backwards compatibility (pick a random cert if multiple match)

* Vendor go-glob

* Replace cn_prefix/suffix with required_name/globbing

Move all the new tests to acceptance-capable tests instead of embedding in the CRL test

* Allow authenticating against a single cert

* Add new params to documentation

* Add CLI support for new param

* Refactor for style

* Support multiple (ORed) name patterns

* Rename required_names to allowed_names

* Update docs for parameter rename

* Use the new TypeCommaStringSlice
2017-04-30 11:37:10 -04:00
Jeff Mitchell
d2f081ef79 Flip back to sstarcher go-okta post-merge 2017-04-28 17:21:49 -04:00
Jeff Mitchell
b2db9c35f6 Switch to jefferai/go-okta for now to work around Fatal lines in upstream (#2658)
Switch to jefferai/go-okta for now to work around Fatal lines in upstream
2017-04-28 08:39:51 -04:00
Brian Kassouf
afc5be1c67 Merge remote-tracking branch 'oss/master' into database-refactor 2017-04-19 15:16:00 -07:00
Jeff Mitchell
f11f4bca86 Update to new Azure code after dep update (#2603) 2017-04-17 12:15:12 -04:00
Jeff Mitchell
cccfb2dc13 Bump deps 2017-04-17 11:17:06 -04:00
Brian Kassouf
c9dc7b800b vendor go-plugin 2017-04-12 14:23:15 -07:00
Jeff Mitchell
7902612773 Bump deps 2017-03-30 20:03:13 -04:00
Jeff Mitchell
7a31da8d94 Add dockertest.v3 to vendor 2017-02-26 16:53:19 -05:00
Jeff Mitchell
ec7ec42e4c Update deps 2017-02-24 14:36:54 -05:00
Jeff Mitchell
cda27d5834 Update deps, particularly to ensure https://aws.amazon.com/blogs/developer/aws-sdk-for-go-update-needed-for-go-1-8/ is covered 2017-02-16 23:42:07 -05:00
Jeff Mitchell
a18f77e69c Update go-cleanhttp 2017-02-10 19:34:41 -05:00
Jeff Mitchell
25bcca2fad Bump deps 2017-02-08 02:13:15 -05:00
Jeff Mitchell
5e20429298 Update deps 2017-02-02 16:19:55 -05:00
Jeff Mitchell
15993a9934 Update deps 2017-01-26 20:16:19 -05:00
Shane Starcher
a0b5eecc6d Okta implementation (#1966) 2017-01-26 19:08:52 -05:00
Xiang Li
73ad5b7da8 etcdbackend: support version auto discovery (#2299) 2017-01-26 17:19:13 -05:00
Jeff Mitchell
fc1d75032b Bump deps 2017-01-13 09:06:34 -05:00
Jeff Mitchell
454ddd4c48 Use dockertest.v2 (#2247)
New dockertest has a totally different API and will require some serious
refactoring. This will tide over until then by pinning the API version.
2017-01-09 13:46:54 -05:00
Jeff Mitchell
de5d4f8f08 Bump deps 2017-01-04 16:47:38 -05:00
Jeff Mitchell
0dd5a2a6ba JWT wrapping tokens (#2172) 2017-01-04 16:44:03 -05:00
Xiang Li
e086a81353 physical: add etcd3 backend (#2168) 2017-01-03 14:43:46 -05:00
Conor Mongey
1c7f9a6954 Update go-syslog package (#2219) 2016-12-31 10:22:25 -06:00
Jeff Mitchell
5a5b9a689e Bump go-multierror to fix panic 2016-12-16 13:45:55 -05:00
Jeff Mitchell
4cc781f511 Fix up vendor reverting 2016-12-16 13:35:12 -05:00
Jeff Mitchell
a57666b693 Reset vendoring to 0.6.3 2016-12-16 13:31:07 -05:00
Jeff Mitchell
35a1917bc7 bump deps 2016-12-13 19:12:26 -05:00
Jeff Mitchell
d79afd9e24 Update deps 2016-12-01 14:46:57 -05:00
Christopher Pauley
973e3c2b1e gcs physical backend (#2099) 2016-12-01 11:42:31 -08:00
Jeff Mitchell
7c21a9a3e7 Bump deps 2016-11-16 18:22:54 -05:00
matt maier
2cd3cfd83e Vendor circonus (#2082) 2016-11-10 16:17:55 -05:00
Jeff Mitchell
ebf4318dae Bump deps 2016-11-02 15:34:30 -04:00
Jeff Mitchell
023aa9640f Bump deps 2016-09-30 09:50:46 -04:00
Jeff Mitchell
f62f53a09f Add missing dep 2016-09-21 14:02:35 -04:00
Jeff Mitchell
8482118ac6 Transit and audit enhancements 2016-09-21 10:49:26 -04:00
Jeff Mitchell
abd621a9e4 Update deps 2016-09-12 15:16:55 -04:00
Jeff Mitchell
a26fe991ba Update deps 2016-09-02 18:05:09 -04:00
Jeff Mitchell
68345eb770 Convert to logxi 2016-08-21 18:13:37 -04:00
Jeff Mitchell
3eba24de39 Change to keybase openpgp fork as it has important fixes 2016-08-11 08:31:43 -04:00
Jeff Mitchell
593954d40c Fix tests and update mapstructure 2016-08-08 16:00:31 -04:00
Jeff Mitchell
3b80b83313 Update Consul lib to use headers for tokens 2016-08-02 17:05:24 -04:00
Jeff Mitchell
968212b650 Bump deps before RC 2016-07-26 09:55:35 -04:00
Jeff Mitchell
5a454e1afa Update vendored deps 2016-07-22 20:11:59 -04:00
matt maier
a1b50427f2 Circonus integration for telemetry metrics 2016-07-22 15:49:23 -04:00
Jeff Mitchell
97360e55bd Whoops, fix vendoring 2016-07-11 23:13:26 +00:00
Jeff Mitchell
7129fd5785 Switch to pester from go-retryablehttp to avoid swallowing 500 error messages 2016-07-11 21:37:46 +00:00
Jeff Mitchell
28ed4f4c9b Add go-retryablehttp dep 2016-07-07 10:42:08 -04:00
Jeff Mitchell
50e44b750d Update dockertest dep 2016-07-05 15:13:42 -04:00
Jeff Mitchell
77c071a889 Incorporate consul dockertest review feedback 2016-07-01 14:16:38 -04:00
Jeff Mitchell
7fc4ae959a Migrate Consul acceptance tests to Docker 2016-07-01 13:59:56 -04:00
Jeff Mitchell
132974ccfa Minor mode update for some deps 2016-06-30 14:52:28 -04:00
Jeff Mitchell
91a73cf330 Merge branch 'master-oss' into dockerize-pg-secret-tests 2016-06-30 14:21:05 -04:00
Jeff Mitchell
1651787019 Update deps 2016-06-30 14:19:03 -04:00
Jeff Mitchell
f9d40aa63b Dockerize Postgres secret backend acceptance tests
Additionally enable them on all unit test runs.
2016-06-30 13:46:39 -04:00
Jeff Mitchell
4fef72807e Update deps, this time removing appengine/go1.7 filter 2016-06-08 16:23:42 -04:00
Jeff Mitchell
fb8817896d Update deps 2016-06-08 16:14:05 -04:00
Jeff Mitchell
8103675f72 Merge remote-tracking branch 'origin/master' into pr-1425 2016-06-08 12:10:29 -04:00
Jeff Mitchell
ff16f0d157 Change vendoring 2016-06-08 12:10:12 -04:00
Jeff Mitchell
d5fb9ee98d Migrate to go-uuid 2016-06-08 10:36:16 -04:00
Jeff Mitchell
3e8271123d Update deps 2016-06-08 10:33:08 -04:00
Jeff Mitchell
cd6e91ac09 Update/add vendor 2016-06-03 10:29:46 -04:00
Jeff Mitchell
7fd919f908 Update vendoring 2016-06-01 10:24:48 -04:00
sayden
57030707f1 Zookeeper vendor package updated to fix issue https://github.com/samuel/go-zookeeper/pull/102 2016-05-25 10:32:43 +02:00
Stuart Glenn
e3be578a37 Add vendor of ncw/swift for OpenStack Swift backend 2016-05-17 10:22:34 -05:00
Jeff Mitchell
50e3f7d40e Merge remote-tracking branch 'origin/master' into aws-auth-backend 2016-05-05 10:04:52 -04:00
Jeff Mitchell
bb3a8d844a Update deps 2016-05-03 13:23:05 -04:00
Jeff Mitchell
d3f1176e03 Switch our tri-copy ca loading code to go-rootcerts 2016-05-03 12:23:25 -04:00
Jeff Mitchell
e2091c34e7 Bump deps. 2016-05-02 20:11:05 -04:00
Jeff Mitchell
6a68ff45a9 Add vendored pkcs7 lib 2016-04-29 14:33:08 +00:00
Sean Chittenden
c0bbeba5ad Teach Vault how to register with Consul
Vault will now register itself with Consul.  The active node can be found using `active.vault.service.consul`.  All standby vaults are available via `standby.vault.service.consul`.  All unsealed vaults are considered healthy and available via `vault.service.consul`.  Change in status and registration is event driven and should happen at the speed of a write to Consul (~network RTT + ~1x fsync(2)).

Healthy/active:

```
curl -X GET 'http://127.0.0.1:8500/v1/health/service/vault?pretty' && echo;
[
    {
        "Node": {
            "Node": "vm1",
            "Address": "127.0.0.1",
            "TaggedAddresses": {
                "wan": "127.0.0.1"
            },
            "CreateIndex": 3,
            "ModifyIndex": 20
        },
        "Service": {
            "ID": "vault:127.0.0.1:8200",
            "Service": "vault",
            "Tags": [
                "active"
            ],
            "Address": "127.0.0.1",
            "Port": 8200,
            "EnableTagOverride": false,
            "CreateIndex": 17,
            "ModifyIndex": 20
        },
        "Checks": [
            {
                "Node": "vm1",
                "CheckID": "serfHealth",
                "Name": "Serf Health Status",
                "Status": "passing",
                "Notes": "",
                "Output": "Agent alive and reachable",
                "ServiceID": "",
                "ServiceName": "",
                "CreateIndex": 3,
                "ModifyIndex": 3
            },
            {
                "Node": "vm1",
                "CheckID": "vault-sealed-check",
                "Name": "Vault Sealed Status",
                "Status": "passing",
                "Notes": "Vault service is healthy when Vault is in an unsealed status and can become an active Vault server",
                "Output": "",
                "ServiceID": "vault:127.0.0.1:8200",
                "ServiceName": "vault",
                "CreateIndex": 19,
                "ModifyIndex": 19
            }
        ]
    }
]
```

Healthy/standby:

```
[snip]
        "Service": {
            "ID": "vault:127.0.0.2:8200",
            "Service": "vault",
            "Tags": [
                "standby"
            ],
            "Address": "127.0.0.2",
            "Port": 8200,
            "EnableTagOverride": false,
            "CreateIndex": 17,
            "ModifyIndex": 20
        },
        "Checks": [
            {
                "Node": "vm2",
                "CheckID": "serfHealth",
                "Name": "Serf Health Status",
                "Status": "passing",
                "Notes": "",
                "Output": "Agent alive and reachable",
                "ServiceID": "",
                "ServiceName": "",
                "CreateIndex": 3,
                "ModifyIndex": 3
            },
            {
                "Node": "vm2",
                "CheckID": "vault-sealed-check",
                "Name": "Vault Sealed Status",
                "Status": "passing",
                "Notes": "Vault service is healthy when Vault is in an unsealed status and can become an active Vault server",
                "Output": "",
                "ServiceID": "vault:127.0.0.2:8200",
                "ServiceName": "vault",
                "CreateIndex": 19,
                "ModifyIndex": 19
            }
        ]
    }
]
```

Sealed:

```
        "Checks": [
            {
                "Node": "vm2",
                "CheckID": "serfHealth",
                "Name": "Serf Health Status",
                "Status": "passing",
                "Notes": "",
                "Output": "Agent alive and reachable",
                "ServiceID": "",
                "ServiceName": "",
                "CreateIndex": 3,
                "ModifyIndex": 3
            },
            {
                "Node": "vm2",
                "CheckID": "vault-sealed-check",
                "Name": "Vault Sealed Status",
                "Status": "critical",
                "Notes": "Vault service is healthy when Vault is in an unsealed status and can become an active Vault server",
                "Output": "Vault Sealed",
                "ServiceID": "vault:127.0.0.2:8200",
                "ServiceName": "vault",
                "CreateIndex": 19,
                "ModifyIndex": 38
            }
        ]
```
2016-04-25 18:01:13 -07:00
Sean Chittenden
0d3ce59542 Update vendor'ed version of hashicorp/consul/lib
Note: Godeps.json not updated
2016-04-25 18:00:54 -07:00
Jeff Mitchell
97810148f3 Update vendoring 2016-04-26 00:18:04 +00:00
Jeff Mitchell
a036704426 Merge pull request #1266 from sepiroth887/azure_backend
added Azure Blobstore backend support
2016-04-25 15:53:09 -04:00
vishalnayak
5f1829af67 Utility Enhancements 2016-04-05 20:32:59 -04:00
Tobias Haag
7a82733e4d added Azure backend support
updated Godeps
added website docs
updated vendor
2016-03-30 19:49:38 -07:00
Jeff Mitchell
1b89fedc0b Update godeps 2016-03-10 22:50:50 -05:00
Jeff Mitchell
4a19749138 Merge pull request #1200 from hashicorp/sethvargo/hcl_errors
Show HCL parsing errors and typos
2016-03-10 22:31:55 -05:00
Jeff Mitchell
7c31404fe2 Update HCL in vendor 2016-03-10 17:06:08 -05:00
Seth Vargo
a68e78eae4 Update to newest HCL 2016-03-10 15:25:25 -05:00
Chris Hoffman
ba34a1b278 Adding Godeps for mssql 2016-03-03 10:16:59 -05:00
Jeff Mitchell
a82942b7aa Update .gitignore to remove overzealous application of 'pkg' shadowing
vendor dir.

Also update Travis to stop doing bad things.
2016-02-18 21:51:04 -05:00
Jeff Mitchell
151689859a More dep bumps 2016-02-18 16:37:30 -05:00
Jeff Mitchell
757dca2e2c Migrate to built-in Go vendoring.
This also removes `godep` calls from make scripts. Of note is that
currently `./...` checking in acceptance tests is disabled.
2016-02-18 15:06:02 -05:00