mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-21 06:20:05 -06:00
fix: add a warning about provider jars (#41855)
* fix: add a warning about provider jars closes: #41820 Signed-off-by: Steve Hawkins <shawkins@redhat.com> * Update docs/guides/server/configuration-provider.adoc Co-authored-by: Václav Muzikář <vaclav@muzikari.cz> Signed-off-by: Steven Hawkins <shawkins@redhat.com> --------- Signed-off-by: Steve Hawkins <shawkins@redhat.com> Signed-off-by: Steven Hawkins <shawkins@redhat.com> Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
This commit is contained in:
@@ -116,11 +116,14 @@ To disable a provider, use the same command and set the `enabled` property to `f
|
||||
|
||||
== Installing and uninstalling a provider
|
||||
|
||||
Custom providers should be packaged in a Java Archive (JAR) file and copied to the `providers` directory of the distribution. After that,
|
||||
Custom providers should be packaged in a Java Archive (JAR) file and copied to the `providers` directory of the distribution. After that if you are using --optimized,
|
||||
you must run the `build` command in order to update the server's provider registry with the implementations from the JAR file.
|
||||
|
||||
This step is needed in order to optimize the server runtime so that all providers are known ahead-of-time rather than discovered only when starting the server or at runtime.
|
||||
|
||||
WARNING: Do not install untrusted provider JARs! There is a single class loader for the entire application, and JARs in the `providers` directory are given precedent over built-in libraries.
|
||||
There is also no built-in sandboxing of what state or methods are available to provider logic. Providers can do whatever the server process can which includes direct access to the DB, reading all server configuration (incl. credentials), etc.
|
||||
|
||||
To uninstall a provider, you should remove the JAR file from the `providers` directory and run the `build` command again.
|
||||
|
||||
== Using third-party dependencies
|
||||
|
||||
Reference in New Issue
Block a user