You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing Elasticsearch cliente 8.15.x with aspire, i notice that the trace includes the username and password of the connection when using basic auth,
Is it possible to redact or remove the user password? or as a workaround remove the field, till its redacted.
Thanks
The text was updated successfully, but these errors were encountered:
Im using the aspire integration and specifying a password on the host side.
They are actually sending the u/p in the url as a connectionstring env var, after your mail i debugged the integration and they are passing the full url in the method CreateElasticSearchClientSettings that use a ElasticSearchClientSettings default constructor.
Ill talk with them, and in the mean time ill send my own ElasticSearchClientSettings on the client side. and see if the aspire team so they can improve the client integration.
privatestaticElasticsearchClientSettingsCreateElasticsearchClientSettings(ElasticClientsElasticsearchSettingssettings,stringconnectionName,stringconfigurationSectionName){if(settings.Endpointis not null){returnnewElasticsearchClientSettings(settings.Endpoint);}elseif(settings.CloudIdis not null&&settings.ApiKeyis not null){returnnew(settings.CloudId,newApiKey(settings.ApiKey));}thrownewInvalidOperationException($"A ElasticsearchClient could not be configured. Ensure valid connection information was provided in 'ConnectionStrings:{connectionName}' or either "+$"{nameof(settings.Endpoint)} must be provided "+$"in the '{configurationSectionName}' configuration section.");}
When testing Elasticsearch cliente 8.15.x with aspire, i notice that the trace includes the username and password of the connection when using basic auth,
Is it possible to redact or remove the user password? or as a workaround remove the field, till its redacted.
Thanks
The text was updated successfully, but these errors were encountered: