Commit Graph

91 Commits

Author SHA1 Message Date
Scott Frederick
1bb8c191c7 Allow empty credential values in requests 2019-05-17 13:41:03 -05:00
Alberto Rios
4d82cfa60d Fixing inverted condition on equals 2019-04-03 03:28:13 -10:00
Spring Operator
cf530ebb4c URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://spring-credhub-demo.cf.example.com/test (UnknownHostException) with 1 occurrences migrated to:
  https://spring-credhub-demo.cf.example.com/test ([https](https://spring-credhub-demo.cf.example.com/test) result UnknownHostException).
* [ ] http://username:password@rabbitmq-broker:12345/api (UnknownHostException) with 1 occurrences migrated to:
  https://username:password@rabbitmq-broker:12345/api ([https](https://username:password@rabbitmq-broker:12345/api) result UnknownHostException).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://docs.cloudfoundry.org/cf-cli/getting-started.html with 1 occurrences migrated to:
  https://docs.cloudfoundry.org/cf-cli/getting-started.html ([https](https://docs.cloudfoundry.org/cf-cli/getting-started.html) result 200).
* [ ] http://example.com/uaa/oauth/token with 4 occurrences migrated to:
  https://example.com/uaa/oauth/token ([https](https://example.com/uaa/oauth/token) result 200).
* [ ] http://projects.spring.io/spring-credhub with 1 occurrences migrated to:
  https://projects.spring.io/spring-credhub ([https](https://projects.spring.io/spring-credhub) result 200).
* [ ] http://square.github.io/okhttp/ with 1 occurrences migrated to:
  https://square.github.io/okhttp/ ([https](https://square.github.io/okhttp/) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://plugins.jetbrains.com/plugin/6546 with 1 occurrences migrated to:
  https://plugins.jetbrains.com/plugin/6546 ([https](https://plugins.jetbrains.com/plugin/6546) result 301).
* [ ] http://eclipse.org with 1 occurrences migrated to:
  https://eclipse.org ([https](https://eclipse.org) result 302).
* [ ] http://www.springsource.com/developer/sts with 1 occurrences migrated to:
  https://www.springsource.com/developer/sts ([https](https://www.springsource.com/developer/sts) result 302).
2019-03-22 14:55:13 -05:00
Spring Operator
89b44020ed URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 191 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 14:50:52 -05:00
Scott Frederick
e7cee758c5 Fail at startup if a configured OAuth2 client ID is not valid. 2019-03-15 15:21:53 -05:00
Spring Operator
fc327ae0b9 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were fixed successfully.

* http://docs.oracle.com/javase/7/docs/api/ migrated to:
  https://docs.oracle.com/javase/7/docs/api/ ([https](https://docs.oracle.com/javase/7/docs/api/) result 200).
* http://docs.oracle.com/javase/8/docs/api/ migrated to:
  https://docs.oracle.com/javase/8/docs/api/ ([https](https://docs.oracle.com/javase/8/docs/api/) result 200).
* http://docs.spring.io/spring/docs/current/javadoc-api/ migrated to:
  https://docs.spring.io/spring/docs/current/javadoc-api/ ([https](https://docs.spring.io/spring/docs/current/javadoc-api/) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://projects.spring.io/spring-credhub migrated to:
  https://projects.spring.io/spring-credhub ([https](https://projects.spring.io/spring-credhub) result 301).
2019-03-06 08:35:17 -06:00
Alberto Rios
a6c442597b Adding endpoint to get permissions by path and actor 2019-02-12 11:00:18 -06:00
Scott Frederick
9a51e3f092 Use Apache HttpClient in integration tests by default. Warn when certs are configured by JDK HTTP client in use. 2019-02-11 11:44:20 -06:00
Scott Frederick
517c1d879e Fix javadoc comment. 2019-02-11 09:25:03 -06:00
Scott Frederick
940917cb1c Add methods to check for version 2.0 vs 2.1. 2019-02-11 09:23:14 -06:00
Scott Frederick
d55c8bf593 Add Spring Security OAuth2 client lib as a transitive dependency. 2019-01-03 14:47:30 -06:00
Scott Frederick
de5a9d1346 Clean up CredHubTemplateFactory API. 2019-01-02 13:19:13 -06:00
Scott Frederick
c4a66c4f10 Allow custom configuration of properties. 2018-12-04 16:06:23 -06:00
Scott Frederick
8f0286f6f4 Add integration tests for reactive operations. 2018-11-29 20:00:14 -06:00
Scott Frederick
73c0271e23 Add reactive support to docs. Modify OAuth2 config properties for clarity. 2018-11-29 14:18:01 -06:00
Scott Frederick
71788b0a18 Add ReactiveCredHubTemplate. Update OAuth2 support to use Spring
Security 5.1.
2018-11-28 16:21:17 -06:00
Scott Frederick
337c8686d8 Upgrade to Java 8, Spring 5.0, and Boot 2.0. 2018-11-01 16:04:18 -05:00
Scott Frederick
b6664ea971 Update documentation. 2018-10-31 15:44:11 -05:00
Scott Frederick
affaccf741 Fix permission ID JSON mapping. 2018-10-31 14:21:42 -05:00
Scott Frederick
49fe1223b3 Add permission V2 operations.
Fixes #44
2018-10-31 14:12:57 -05:00
Scott Frederick
fd811f36a5 Support custom certificates for external connectivity. 2018-10-29 16:14:51 -05:00
Scott Frederick
e2851e0b70 Add missing package javadoc files. 2018-10-26 10:40:23 -05:00
Scott Frederick
9069d4a83f Add Boot configuration properties annotation processor. Upgrade Gradle to 4.10. 2018-10-26 10:35:04 -05:00
Scott Frederick
78b524b931 Remove compiler warnings 2018-10-25 17:17:13 -05:00
Scott Frederick
7a08161744 Fix integration tests for CredHub 1.x servers. 2018-10-25 16:14:17 -05:00
Scott Frederick
4798ef8dfb Add integration tests for interpolation operations. 2018-10-25 15:37:10 -05:00
Scott Frederick
85f33f6fa5 Add regenerate method to certificate operations to bulk-regenerate certificates
Fixes #43
2018-10-25 15:06:25 -05:00
Scott Frederick
1504e64759 Deprecate permissions fields on requests.
Fixes #45
2018-10-24 14:47:57 -05:00
Scott Frederick
2d302b88b3 Move credential-specific classes to the appropriate package. 2018-10-24 14:36:05 -05:00
Scott Frederick
9af009a5d2 Add updateTransitionalVersion method to certificate operations.
Fixes #42
2018-10-24 14:33:12 -05:00
Scott Frederick
926de97c91 Add regenerate method to certificate operations.
Fixes #41
2018-10-23 18:18:04 -05:00
Scott Frederick
ec522d06bd Add generate and regenerate integration tests. 2018-10-23 16:24:34 -05:00
Scott Frederick
8a1cc78d75 Add InfoOperations and version operation. Put operations into subpackages. 2018-10-23 15:37:58 -05:00
Scott Frederick
43998d942d Add missing javadoc fields. 2018-10-23 14:20:37 -05:00
Scott Frederick
29987d3e71 Add initial integration tests. 2018-10-23 14:13:59 -05:00
Scott Frederick
5150ea967e Merge branch 'master' of https://github.com/Zee-Khan/spring-credhub into Zee-Khan-master 2018-10-22 17:45:04 -05:00
Scott Frederick
db9a54bf52 Use AssertJ for all test assertions. Remove hamcrest from project. 2018-10-18 14:32:59 -05:00
Scott Frederick
ffa3730371 Add credential operations with getAll() and getByName().
Fixes #39 and #40
2018-10-17 18:23:59 -05:00
Scott Frederick
deb051568d Enforce immutability of fields in request and response objects. 2018-10-17 16:46:44 -05:00
Scott Frederick
4ea4f2647d Add getAllPaths() to credentials operations.
Fixes #38
2018-10-17 15:23:06 -05:00
Scott Frederick
c75b9d8eb2 Separate credentials, permissions, and interpolation operations into separate interfaces. 2018-10-17 13:18:43 -05:00
Scott Frederick
d3dcfee247 Add publicKeyFingerprint field to get SSH response
Fixes #37
2018-10-16 15:31:11 -05:00
Scott Frederick
4d2e8aa56c Add keyUsage and extendedKeyUsage fields to generate certificate requests.
Fixes #36
2018-10-16 14:12:14 -05:00
Scott Frederick
1bc8a63efa Add a mode field to set and generate requests and deprecate the overwrite field.
Fixes #35
2018-10-15 18:24:32 -05:00
Scott Frederick
e61739c031 Add getByNameWithHistory operation that accepts a version parameter
Fixes #34
2018-10-15 17:07:50 -05:00
Zohaib Khan
130f9b988a Update CredHubTemplate.java
Fix Void
2018-10-03 15:17:57 -07:00
Zohaib Khan
34aed6b1a1 Update CredHubTemplate.java
CredHub POST route for /api/v1/data returns an empty response body.
2018-10-03 14:37:50 -07:00
Scott Frederick
0980e37a2c Fix getByName. Add passwordHash field to UserCredential. Cleanup typing in unit tests. 2017-12-11 15:56:16 -06:00
Scott Frederick
572453ae07 Relax requirements on credential names containing a leading slash. 2017-11-13 18:46:26 -06:00
Scott Frederick
e0edb29576 Remove support for OkHttp for compatibility with Spring Boot 2 and Spring IO Cairo. 2017-11-06 17:06:19 -06:00