-
Notifications
You must be signed in to change notification settings - Fork 54
Regenerated config diagram #473
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,12 @@ | ||||||||||||||||||
| @startuml classes | ||||||||||||||||||
| set namespaceSeparator none | ||||||||||||||||||
| class "AccessRule" as src.models.config.AccessRule { | ||||||||||||||||||
| actions : list[Action] | ||||||||||||||||||
| role : str | ||||||||||||||||||
| } | ||||||||||||||||||
| class "Action" as src.models.config.Action { | ||||||||||||||||||
| name | ||||||||||||||||||
| } | ||||||||||||||||||
| class "AuthenticationConfiguration" as src.models.config.AuthenticationConfiguration { | ||||||||||||||||||
| jwk_config : Optional[JwkConfiguration] | ||||||||||||||||||
| jwk_configuration | ||||||||||||||||||
|
|
@@ -9,6 +16,9 @@ class "AuthenticationConfiguration" as src.models.config.AuthenticationConfigura | |||||||||||||||||
| skip_tls_verification : bool | ||||||||||||||||||
| check_authentication_model() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| class "AuthorizationConfiguration" as src.models.config.AuthorizationConfiguration { | ||||||||||||||||||
| access_rules : Optional[list[AccessRule]] | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+19
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Missing association for Configuration.authorization Configuration has authorization but there’s no composition line. Add it to keep diagram navigable. +src.models.config.AuthorizationConfiguration --* src.models.config.Configuration : authorization📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| class "CORSConfiguration" as src.models.config.CORSConfiguration { | ||||||||||||||||||
| allow_credentials : bool | ||||||||||||||||||
| allow_headers : list[str] | ||||||||||||||||||
|
|
@@ -18,6 +28,7 @@ class "CORSConfiguration" as src.models.config.CORSConfiguration { | |||||||||||||||||
| } | ||||||||||||||||||
| class "Configuration" as src.models.config.Configuration { | ||||||||||||||||||
| authentication | ||||||||||||||||||
| authorization : Optional[AuthorizationConfiguration] | ||||||||||||||||||
| customization : Optional[Customization] | ||||||||||||||||||
| database | ||||||||||||||||||
| inference | ||||||||||||||||||
|
|
@@ -28,6 +39,9 @@ class "Configuration" as src.models.config.Configuration { | |||||||||||||||||
| user_data_collection | ||||||||||||||||||
| dump(filename: str) -> None | ||||||||||||||||||
| } | ||||||||||||||||||
| class "ConfigurationBase" as src.models.config.ConfigurationBase { | ||||||||||||||||||
| model_config | ||||||||||||||||||
| } | ||||||||||||||||||
| class "Customization" as src.models.config.Customization { | ||||||||||||||||||
| disable_query_system_prompt : bool | ||||||||||||||||||
| system_prompt : Optional[str] | ||||||||||||||||||
|
|
@@ -46,14 +60,27 @@ class "InferenceConfiguration" as src.models.config.InferenceConfiguration { | |||||||||||||||||
| default_provider : Optional[str] | ||||||||||||||||||
| check_default_model_and_provider() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| class "JsonPathOperator" as src.models.config.JsonPathOperator { | ||||||||||||||||||
| name | ||||||||||||||||||
| } | ||||||||||||||||||
| class "JwkConfiguration" as src.models.config.JwkConfiguration { | ||||||||||||||||||
| jwt_configuration | ||||||||||||||||||
| url : AnyHttpUrl | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
66
to
69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misplaced and mistyped relationship between JWK and JWT JwkConfiguration currently lists jwt_configuration (untyped). This is likely inverted and mistyped. Typically, JwtConfiguration contains a JwkConfiguration (jwk_configuration). class "JwkConfiguration" as src.models.config.JwkConfiguration {
- jwt_configuration
url : AnyHttpUrl
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| class "JwtConfiguration" as src.models.config.JwtConfiguration { | ||||||||||||||||||
| role_rules : Optional[list[JwtRoleRule]] | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add link from JwtConfiguration to JwtRoleRule (role_rules) role_rules is a list but there’s no composition line; add it. +src.models.config.JwtRoleRule --* src.models.config.JwtConfiguration : role_rules
🤖 Prompt for AI Agents |
||||||||||||||||||
| user_id_claim : str | ||||||||||||||||||
| username_claim : str | ||||||||||||||||||
| } | ||||||||||||||||||
| class "JwtRoleRule" as src.models.config.JwtRoleRule { | ||||||||||||||||||
| jsonpath : str | ||||||||||||||||||
| negate : bool | ||||||||||||||||||
| operator | ||||||||||||||||||
| roles : list[str] | ||||||||||||||||||
| value : Any | ||||||||||||||||||
| check_jsonpath() -> Self | ||||||||||||||||||
| check_roles() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| class "LlamaStackConfiguration" as src.models.config.LlamaStackConfiguration { | ||||||||||||||||||
| api_key : Optional[str] | ||||||||||||||||||
| library_client_config_path : Optional[str] | ||||||||||||||||||
|
|
@@ -105,10 +132,29 @@ class "UserDataCollection" as src.models.config.UserDataCollection { | |||||||||||||||||
| transcripts_storage : Optional[str] | ||||||||||||||||||
| check_storage_location_is_set_when_needed() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| src.models.config.AccessRule --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.AuthenticationConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.AuthorizationConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.CORSConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.Configuration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.Customization --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.DatabaseConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.InferenceConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.JwkConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.JwtConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.JwtRoleRule --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.LlamaStackConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.ModelContextProtocolServer --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.PostgreSQLDatabaseConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.SQLiteDatabaseConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.ServiceConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.TLSConfiguration --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.UserDataCollection --|> src.models.config.ConfigurationBase | ||||||||||||||||||
| src.models.config.AuthenticationConfiguration --* src.models.config.Configuration : authentication | ||||||||||||||||||
| src.models.config.CORSConfiguration --* src.models.config.ServiceConfiguration : cors | ||||||||||||||||||
| src.models.config.DatabaseConfiguration --* src.models.config.Configuration : database | ||||||||||||||||||
| src.models.config.InferenceConfiguration --* src.models.config.Configuration : inference | ||||||||||||||||||
| src.models.config.JsonPathOperator --* src.models.config.JwtRoleRule : operator | ||||||||||||||||||
| src.models.config.JwtConfiguration --* src.models.config.JwkConfiguration : jwt_configuration | ||||||||||||||||||
| src.models.config.LlamaStackConfiguration --* src.models.config.Configuration : llama_stack | ||||||||||||||||||
|
Comment on lines
+157
to
159
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invert composition and fix label: jwk_configuration (not jwt_configuration) Current line implies JwkConfiguration contains JwtConfiguration. In practice JwtConfiguration should contain JwkConfiguration and the role name should be jwk_configuration. -src.models.config.JwtConfiguration --* src.models.config.JwkConfiguration : jwt_configuration
+src.models.config.JwkConfiguration --* src.models.config.JwtConfiguration : jwk_configuration📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| src.models.config.SQLiteDatabaseConfiguration --* src.models.config.DatabaseConfiguration : sqlite | ||||||||||||||||||
|
|
||||||||||||||||||
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.
🛠️ Refactor suggestion
Wire AccessRule.actions to Action and type Action.name
class "Action" as src.models.config.Action { - name + name : str }+src.models.config.Action --* src.models.config.AccessRule : actions📝 Committable suggestion
🤖 Prompt for AI Agents