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
- [ X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Launch test for hight avaibility
AES broadcast is working
Launch new tests on visual studio, the clear streaming key will me changed
Newly created assets won't be able to be played
Cleanup should clean more, or the secret have to be set only once if not already in the vault
For example
bool shouldGenerateNewSecret = false;
try
{
var valueFromStore = await keyVaultClient.GetSecretAsync($"https://{this.keyVaultName}.vault.azure.net/secrets/ClearKeyStreamingKey").ConfigureAwait(false);
if (valueFromStore != null)
{
this.clearKeyStreamingKey = Convert.FromBase64String(valueFromStore.Value);
}
}
catch(KeyVaultErrorException ex)
{
if(ex.Message.ToUpperInvariant().Contains("NOTFOUND"))
{
shouldGenerateNewSecret = true;
}else
{
throw;
}
}
if(shouldGenerateNewSecret)
{
using (var rng = new RNGCryptoServiceProvider())
{
this.clearKeyStreamingKey = new byte[40];
// generate a random key and store it to the vault
rng.GetBytes(this.clearKeyStreamingKey);
await keyVaultClient.SetSecretAsync($"https://{this.keyVaultName}.vault.azure.net", "ClearKeyStreamingKey", Convert.ToBase64String(this.clearKeyStreamingKey)).ConfigureAwait(false);
}
}
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Launch test for hight avaibility
AES broadcast is working
Launch new tests on visual studio, the clear streaming key will me changed
Newly created assets won't be able to be played
Cleanup should clean more, or the secret have to be set only once if not already in the vault
For example
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: