Skip to content

Need to use a value provider to delay evaluating Redis connection string TLS configuration #13645

@danegsta

Description

@danegsta

Currently the Redis resource uses a boolean to track whether TLS is enabled and generate the appropriate connection string, but the actual final value of TLS support isn't known until after BeforeStartEvent has fired. This leads to timing issues when evaluating the connection string such as seen in #13619.

We need to make the TLS state into a value provider such that it will be evaluated dynamically rather than a literal value. There are likely other resources with similar concerns, so we should evaluate if other resources have similar potential timing issues in their connection strings and consider a general solution if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions