Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix: login loop instead of sync (#73)
Browse files Browse the repository at this point in the history
* fix: login loop instead of sync

* bump chart to 0.13.2
  • Loading branch information
BlowaXD authored Aug 21, 2023
1 parent 3e58fe2 commit 1096b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/bitwarden-secret-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Deploy the Bitwarden Secret Operator

type: application

version: "0.13.1"
version: "0.13.2"

appVersion: "0.13.1"
appVersion: "0.13.2"

keywords:
- operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public async Task LoginAsync()
{ "BW_CLIENTSECRET", _credentials.ClientSecret }
})
.ExecuteAsync();
_needRelog = false;
}
catch (Exception e)
{
Expand Down Expand Up @@ -117,7 +118,7 @@ public async Task UnlockAsync()
})
.ExecuteAsync();
string stdOut = stdOutBuffer.ToString();

if (_logger.IsEnabled(LogLevel.Debug))
{
_logger.LogDebug("`bw get item`: {Debug}", stdOut);
Expand Down Expand Up @@ -150,6 +151,7 @@ public async Task SynchronizeAsync()
await LoginAsync();
return;
}

_logger.LogInformation("using `bw sync` command");
CommandResult result = await Cli.Wrap("bw")
.WithArguments(args => args
Expand Down Expand Up @@ -195,7 +197,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
}

_logger.LogInformation("[{Scope}] Synchronizing...", nameof(BitwardenCliWrapper));

await SynchronizeAsync();
_logger.LogInformation("[{Scope}] Synchronized", nameof(BitwardenCliWrapper));
// Synchronize may take some time
Expand Down

0 comments on commit 1096b3d

Please sign in to comment.