Dave Syer
884fd0125a
Add some handler adapter tests
13 years ago
Dave Syer
2104d9a1e2
Prevent failure of web app with parent context
...
ServerProperties formerly had an @OnMissingBeanCondition
that didn't restrict the hierarchy. It also asserts that
the current context (not including parents) contains such
a bean. This led to an inevitable failure when there was
an existing instance in the parent context.
Fixed by a) searching only the current context, b) not
adding a ServerProperties bean if the context is not a
web app.
13 years ago
Christian Dupuis
5661f8fc28
Test key/value sanitization
13 years ago
Christian Dupuis
078933c8fd
Add actuator endpoint to expose ConfigurationProperties
...
This information should probably be also available from the console and log similar to AutoConfigurationReport.
13 years ago
Christian Dupuis
00c8633597
Add missing new exception class
13 years ago
Christian Dupuis
2c67e06b47
Move enablement of endpoints into AbstractEndpoint
13 years ago
Dave Syer
e74da3fa73
FIXME test additions
13 years ago
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.
13 years ago
Dave Syer
3e5e058b02
Ensure /error view is available
13 years ago
Dave Syer
8c9b7bd406
Use SimpleHealthIndicator if DataSource present
13 years ago
Dave Syer
20bede21ad
Add support for parent hierarchy in AUtoConfigurationReport
13 years ago
Dave Syer
b74a9b2d06
Add tests to FIXME
13 years ago
Dave Syer
171c1366f9
Move shutdown enable flag to the endpoint
13 years ago
Dave Syer
94e2f90793
Ensure endpoints.jolokia.enabled=false switches off jolokia
13 years ago
Phillip Webb
f4f668a52b
Polish
13 years ago
Phillip Webb
8845c9c279
Fixup for upstream Spring changes
13 years ago
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
13 years ago
Christian Dupuis
e69e190ae9
Close application context in test
13 years ago
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
13 years ago
Christian Dupuis
2d058570ca
Add auto configure support for Jolokia a JMX-HTTP bridge
13 years ago
Christian Dupuis
b14c607d36
Add missing tests
13 years ago
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.
13 years ago
Christian Dupuis
845aeecbad
Properly close application context in tests
13 years ago
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
13 years ago
Dave Syer
61dd7d1dbb
Add port scan to ServerProperties (server.scan=true)
...
Also moved ServerProperties to autoconfigure project.
13 years ago
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).
13 years ago
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.
13 years ago
Christian Dupuis
43c0c932e6
Ensure telnet connector gets installed if available on the class path
13 years ago
Christian Dupuis
2e926601f2
Polish
13 years ago
Christian Dupuis
dba8c01035
Polish
13 years ago
Christian Dupuis
e16e23230c
Clarify default authentication settings for shell access
13 years ago
Christian Dupuis
41cbbeba79
Re-Introduce authentication specific properties
13 years ago
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.
13 years ago
Christian Dupuis
dc252c7417
Remove unnecessary String concatenation
13 years ago
Dave Syer
2f7214002d
Update Spring to catch SPR-11069
13 years ago
Phillip Webb
0f85f31960
Polish
13 years ago
Phillip Webb
64f32893bb
Source format and clean-up
13 years ago
Phillip Webb
883fd9162f
Polish
13 years ago
Dave Syer
b39ab925cf
Make the AutoConfigurationReportEndpoint path a bit shorter
13 years ago
Phillip Webb
dc3d670019
Strip trailing whitespace
13 years ago
Christian Dupuis
1f922f49b0
Switch to placeholders in conditional expressions; Ensure that Crsh auto configuration works without Spring Security
13 years ago
Christian Dupuis
a498a7f477
Make simple authentication the default and log default password
13 years ago
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.
13 years ago
Phillip Webb
ab249b034d
Rename Outcome -> ConditionOutcome
13 years ago
Christian Dupuis
9f13d291ec
Return early if no plugins should be disabled
13 years ago
Phillip Webb
b39ed89a6f
Increase whitespace around password logging
...
Increase the whitespace to make the password easier to find in the log.
13 years ago
Dave Syer
68475406eb
Really fix it
13 years ago
Dave Syer
c144cae600
Comment out security condition pending SPR-11069
13 years ago
Phillip Webb
d784cb6a88
Apply eclipse-formatter conventions
13 years ago
Dave Syer
0c79c8913f
Ensure AutoConfigurationReport is always present
13 years ago