Christian Dupuis
00c8633597
Add missing new exception class
2013-11-29 15:16:30 +01:00
Christian Dupuis
2c67e06b47
Move enablement of endpoints into AbstractEndpoint
2013-11-29 15:16:30 +01:00
Dave Syer
e74da3fa73
FIXME test additions
2013-11-28 15:01:00 +00:00
Dave Syer
3e6c1b435f
Add @SpringApplicationConfiguration (for integration testing)
...
Example:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = SampleDataJpaApplication.class)
public class CityRepositoryIntegrationTests {
@Autowired
CityRepository repository;
Fixes gh-66.
2013-11-28 14:35:36 +00:00
Dave Syer
3e5e058b02
Ensure /error view is available
2013-11-28 14:20:45 +00:00
Dave Syer
8c9b7bd406
Use SimpleHealthIndicator if DataSource present
2013-11-28 14:20:26 +00:00
Dave Syer
20bede21ad
Add support for parent hierarchy in AUtoConfigurationReport
2013-11-28 11:39:27 +00:00
Dave Syer
b74a9b2d06
Add tests to FIXME
2013-11-27 16:03:27 +00:00
Dave Syer
171c1366f9
Move shutdown enable flag to the endpoint
2013-11-26 18:01:08 +00:00
Dave Syer
94e2f90793
Ensure endpoints.jolokia.enabled=false switches off jolokia
2013-11-26 13:27:10 +00:00
Phillip Webb
f4f668a52b
Polish
2013-11-25 17:12:56 -08:00
Phillip Webb
8845c9c279
Fixup for upstream Spring changes
2013-11-25 16:25:03 -08:00
Christian Dupuis
04b7b9b2ca
Rework handling of default shell authentication method in the absence of Spring Security
...
In case Spring Security is missing from the class path, shell auto configuration will now fall back gracefully to simple authentication and emit warning to the console.
fixes #114
2013-11-25 16:07:58 +01:00
Christian Dupuis
e69e190ae9
Close application context in test
2013-11-22 20:37:58 +01:00
Christian Dupuis
1b49605749
Make shell username and password configuration properties consistent with general security properties
...
Now simple authentication for the crsh shell can we configured using shell.auth.simple.user.name and shell.auth.simple.user.password. This is consistent with security.user.name and security.user.password.
fixes #113
2013-11-22 20:37:37 +01:00
Christian Dupuis
2d058570ca
Add auto configure support for Jolokia a JMX-HTTP bridge
2013-11-22 18:07:14 +01:00
Christian Dupuis
b14c607d36
Add missing tests
2013-11-22 18:07:14 +01:00
Christian Dupuis
405c9d5593
Allow management endpoints to express what http methods they support
...
Previously a management endpoint was either GET or POST. That requirement seems limited.
2013-11-22 18:07:14 +01:00
Christian Dupuis
845aeecbad
Properly close application context in tests
2013-11-22 18:07:14 +01:00
Christian Dupuis
cd89691726
Pin order to of crsh auto configuration to happen after any security related configuration
...
If crsh auto configuration happens too early a AuthenticationManager contributed by SecurityAutoConfiguration will not be detected
2013-11-22 18:07:13 +01:00
Dave Syer
61dd7d1dbb
Add port scan to ServerProperties (server.scan=true)
...
Also moved ServerProperties to autoconfigure project.
2013-11-22 16:56:43 +00:00
Dave Syer
bd26b28aa5
Extract actuator security into separate classes
...
So spring-security + a web app is secure by default
(you don't need the actuator).
2013-11-21 16:47:29 +00:00
Christian Dupuis
f3a225f35f
Polish and rework default authentication method if a Spring Security AuthenticationManager is available
...
In case a Spring Security AuthenticationManager is found in the app context the auto configuration will change default shell authentication method to auth against Spring Security. In addition shell access will get protected by the specific role configured in SecurityProperties.Management.
Certainly this can be overridden by providing shell.auth and shell.auth.spring.roles.
2013-11-20 17:15:45 +01:00
Christian Dupuis
43c0c932e6
Ensure telnet connector gets installed if available on the class path
2013-11-20 17:15:45 +01:00
Christian Dupuis
2e926601f2
Polish
2013-11-18 20:59:25 +01:00
Christian Dupuis
dba8c01035
Polish
2013-11-18 20:09:58 +01:00
Christian Dupuis
e16e23230c
Clarify default authentication settings for shell access
2013-11-18 17:48:21 +01:00
Christian Dupuis
41cbbeba79
Re-Introduce authentication specific properties
2013-11-18 17:42:50 +01:00
Christian Dupuis
e009d3e47d
Polish
...
Fixed inconsistency in method naming after last polish. Method and class name should use 'crsh' instead of 'crash' to be aligned with CRaSH code base.
Implemented facility to provide custom shell properties by adding beans of type CrshShellProperties to the ApplicationContext.
2013-11-18 17:20:45 +01:00
Christian Dupuis
dc252c7417
Remove unnecessary String concatenation
2013-11-18 15:06:05 +01:00
Dave Syer
2f7214002d
Update Spring to catch SPR-11069
2013-11-17 07:59:16 +00:00
Phillip Webb
0f85f31960
Polish
2013-11-16 01:22:10 -08:00
Phillip Webb
64f32893bb
Source format and clean-up
2013-11-16 00:08:18 -08:00
Phillip Webb
883fd9162f
Polish
2013-11-16 00:08:17 -08:00
Dave Syer
b39ab925cf
Make the AutoConfigurationReportEndpoint path a bit shorter
2013-11-14 14:54:32 +00:00
Phillip Webb
dc3d670019
Strip trailing whitespace
2013-11-07 10:32:57 -08:00
Christian Dupuis
1f922f49b0
Switch to placeholders in conditional expressions; Ensure that Crsh auto configuration works without Spring Security
2013-11-07 12:48:03 +01:00
Christian Dupuis
a498a7f477
Make simple authentication the default and log default password
2013-11-07 12:48:03 +01:00
Phillip Webb
dafeddca09
Rework auto-configure report
...
Update the auto-configuration report to improve log formatting and to
separate the internal report data-structure from the JSON friendly
endpoint data-structure.
2013-11-06 21:40:05 -08:00
Phillip Webb
ab249b034d
Rename Outcome -> ConditionOutcome
2013-11-06 15:40:09 -08:00
Christian Dupuis
9f13d291ec
Return early if no plugins should be disabled
2013-11-06 10:35:15 +01:00
Phillip Webb
b39ed89a6f
Increase whitespace around password logging
...
Increase the whitespace to make the password easier to find in the log.
2013-11-05 10:31:11 -08:00
Dave Syer
68475406eb
Really fix it
2013-11-05 15:32:53 +00:00
Dave Syer
c144cae600
Comment out security condition pending SPR-11069
2013-11-05 14:20:51 +00:00
Phillip Webb
d784cb6a88
Apply eclipse-formatter conventions
2013-11-04 10:25:27 -08:00
Dave Syer
0c79c8913f
Ensure AutoConfigurationReport is always present
2013-11-04 17:07:04 +00:00
Greg Turnquist
b63016d8fc
Create a report based on Boot's autoconfiguration decisions
...
- Gather autoconfiguration conditional decisiions (true and false)
- Provide an actuator endpoint as one means to read the report
- Define @EnableAutConfigurationReport annotation to turn this feature on
- Tidy up autoconfig report a bit and log it if --debug=true
2013-11-04 17:07:04 +00:00
Christian Dupuis
f9caade3cc
Fix test assertion
2013-11-04 17:43:06 +01:00
Christian Dupuis
6b599b8483
Add remote shell implementation based on crsh
...
This commit adds a new starter named spring-boot-starter-shell-crsh and auto configuration support to embed a system shell within Spring Boot applications.
The embedded shell allows clients to connect via ssh or telnet to the Boot app and execute commands. Commands can be implemented and embedded with app.
For sample usage see spring-boot-samples-actuator.
2013-11-04 17:22:02 +01:00
Dave Syer
c29d2b1be4
Remove a small race condition
2013-11-04 13:35:59 +00:00