Skip to content

Instantly share code, notes, and snippets.

@cy4n
Created August 24, 2018 07:12
Show Gist options
  • Save cy4n/8f9e319b7e0c11233cde2467860fd3ca to your computer and use it in GitHub Desktop.
Save cy4n/8f9e319b7e0c11233cde2467860fd3ca to your computer and use it in GitHub Desktop.
this might break spring security depending on externalized configuration order
---
apiVersion: v1
kind: ConfigMap
metadata:
name: helloproperties
data:
application.yml: |
management:
endpoints:
web:
exposure:
include: health,info,configprops
spring:
security:
user:
roles: ACTUATOR
# user:
# password:
@cy4n
Copy link
Author

cy4n commented Aug 24, 2018

commenting out the user/password broke my spring security demo in the kubernetes talk at MAJUG.

although the configprops actuator showed the "correct" username and pass from environment variables, the login prompt never showed (sorry :-) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment