-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup starter with optional keys in application.yaml #106
Comments
ff4j
by setting keys in application.yaml
(but default values)
ff4j
by setting keys in application.yaml
(but default values)ff4j
by setting keys in application.yaml
ff4j
by setting keys in application.yaml
ff4j
by setting optional keys in application.yaml
ff4j
by setting optional keys in application.yaml
Hello @clun , I would have something like this for the configuration ff4j:
audit: true # default is 'false'
security:
username: admin
password: ff4j
web-console:
context-path: /ff4j-web-console # default is '/ff4j-web-console'
rest-api:
enable-swagger: true # default is 'true'
Let me know what you think. |
I think if it very good.
I got additional idea here (Optional).
InputStream ymlFile = getClass().getClassLoader().getResourceAsStream("application.yml");
FF4jConfiguration ymlConfig = new YamlParser().parseConfigurationFile(ymlFile); Thanks |
I think is it a very good idea to consider
For |
Implemented enabling and disabling of springdoc with #245 ff4j:
springdoc:
enabled: true # default is 'false' |
Implemented enabling and disabling of audit with #254 ff4j:
audit:
enabled: true # default is 'false' |
Implemented enabling and disabling of web-console with context-path with #255 ff4j:
web-console:
enabled: true # default is 'false'
context-path: /ff4j-web # default is '/ff4j-web-console' |
Final configuration looks like this with #260 ff4j:
api:
context-path: /api/v1/ff4j # default '/api/ff4j'
spring-doc:
enabled: true # default 'false'
audit:
enabled: true # default 'false'
security:
enabled: true # default 'false'
web-console:
context-path: /ff4j-web # default '/ff4j-web-console'
enabled: true # default 'false'
security:
enabled: true # default 'false'
username: admin # default 'admin'
password: admin # default 'admin' |
Is your feature request related to a problem? Please describe.
When you importing the
spring-boot-starter
in your application you may asking yourself what are the beans you should create and which ones are already available. As far as I understand:ff4j
web console
if you want it (FF4jDispatcherServlet
)Describe the solution you'd like
What about creating dedicated keys in the
application.yaml
for ff4j enabling or disabling some beans. Also we can secure the web-console with login/password out of the box with spring security. This is what it look like :I have created a working sample for the web-console part here
I also IMO module
ff4j-web
should be a dependency of the starter. You can still exclude if you don't want it but must of people using the starter what the we console.With that perspective, only the
ff4j
bean is required in your app everything else is configuration. FF4j is such a complex object with different stores and properties that for now i don't see it yaml but later what about a constructor with a yaml in the ff4j object.The text was updated successfully, but these errors were encountered: