-
Notifications
You must be signed in to change notification settings - Fork 276
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
Standardize configuration properties #4452
Standardize configuration properties #4452
Conversation
4bc4506
to
a23e7a5
Compare
7415f49
to
1d44363
Compare
@@ -17,7 +17,7 @@ public class AuthConfig { | |||
@Inject | |||
Logger log; | |||
|
|||
@ConfigProperty(name = "registry.auth.enabled", defaultValue = "false") | |||
@ConfigProperty(name = "quarkus.oidc.tenant-enabled", defaultValue = "false") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be documenting the quarkus properties we use in this way via @Info
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I decided not to because we can only annotate the ones we're currently injecting. For example, this means we can annotate quarkus.oidc.tenant-enabled
but no quarkus.oidc.client-id
. We can of course inject them even if we're not directly using them, but I don't really like that solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it would be nice to have all commonly used properties in the documentation, however we can manage to do that.
app/src/test/java/io/apicurio/registry/storage/impl/gitops/GitTestRepositoryManager.java
Outdated
Show resolved
Hide resolved
Don't we also want to rename all |
Not sure for all. We had a few ones that were clearly generic (auth, I'm looking at you) but then we have a pretty big set of properties that are very specific to Registry like |
1d44363
to
4e1f7a9
Compare
I think we should change everything to be |
I'm in favor, as long as we try to keep the names consistent between Registry and Studio, of course. As an example, having A big advantage I see would be easier sharing of documentation between projects, and code in common app components. |
OK that's two votes to change everything to |
Also I agree - once the renames are all done and checked in for Registry 3, we can compare the table of properties and see where we have mismatches. |
b4b205b
to
3b577a8
Compare
Rename done, this is ready to go. |
d86f6d4
to
26f4316
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments, mostly consistency-related which are up for a discussion, but there are also some typos.
README.md
Outdated
@@ -24,7 +24,7 @@ Which storage variant will be used is determined by the following configuration: | |||
|
|||
|Option|Command argument|Env. variable| | |||
|---|---|---| | |||
|Registry Storage Variant|`-Dregistry.storage.kind`|`REGISTRY_STORAGE_KIND`| | |||
|Registry Storage Variant|`-Dapicurio.storage.kind`|`REGISTRY_STORAGE_KIND`| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't REGISTRY_STORAGE_KIND
be APICURIO_STORAGE_KIND
instead? Same for the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still unresolved
app/src/main/java/io/apicurio/registry/limits/RegistryLimitsConfigurationProducer.java
Outdated
Show resolved
Hide resolved
...ain/java/io/apicurio/registry/metrics/health/liveness/PersistenceExceptionLivenessCheck.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/apicurio/registry/metrics/health/liveness/ResponseErrorLivenessCheck.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/apicurio/registry/storage/metrics/StorageMetricsStore.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/apicurio/registry/ui/UserInterfaceConfigProperties.java
Outdated
Show resolved
Hide resolved
app/src/main/java/io/apicurio/registry/ui/servlets/RedirectFilter.java
Outdated
Show resolved
Hide resolved
docs/modules/ROOT/partials/getting-started/ref-registry-security-configuration.adoc
Outdated
Show resolved
Hide resolved
When this is merged we need to remember to update the 3scale gitops repo. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things, otherwise LGTM
README.md
Outdated
@@ -24,7 +24,7 @@ Which storage variant will be used is determined by the following configuration: | |||
|
|||
|Option|Command argument|Env. variable| | |||
|---|---|---| | |||
|Registry Storage Variant|`-Dregistry.storage.kind`|`REGISTRY_STORAGE_KIND`| | |||
|Registry Storage Variant|`-Dapicurio.storage.kind`|`REGISTRY_STORAGE_KIND`| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still unresolved
The PR finalizes the process of standardising the configuration properties for Registry, following the main guidelines:
There's one missing thing, for upgrades, create a table with the old values and the new ones that we can add to the migration guide from 2.x to 3.x. I'll start working on that.