Update kaigen credit private key
This commit is contained in:
@@ -36,6 +36,14 @@ public class KaigenService : IKaigenService
|
||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
||||
};
|
||||
|
||||
// Always read from environment variable for security
|
||||
var envPrivateKey = Environment.GetEnvironmentVariable("KAIGEN_PRIVATE_KEY");
|
||||
if (!string.IsNullOrEmpty(envPrivateKey))
|
||||
{
|
||||
_settings.PrivateKey = envPrivateKey;
|
||||
_logger.LogInformation("Using KAIGEN_PRIVATE_KEY from environment variable");
|
||||
}
|
||||
|
||||
// Validate required settings
|
||||
if (string.IsNullOrEmpty(_settings.PrivateKey))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user