Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
quant
Commits
f4bb0876
Verified
Commit
f4bb0876
authored
3 months ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
Linter pleasing
parent
d1604e5f
No related branches found
No related tags found
1 merge request
!253
Initialize AssignForwardingHandler and KeyStoreHandler
Pipeline
#262622
failed
3 months ago
Stage: build
Stage: test
Stage: analyze
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
goKMS/gnmiHandlers/kms/keyStoreHandler.go
+3
-1
3 additions, 1 deletion
goKMS/gnmiHandlers/kms/keyStoreHandler.go
goKMS/kms/store/kms-keystore.go
+3
-3
3 additions, 3 deletions
goKMS/kms/store/kms-keystore.go
with
6 additions
and
4 deletions
goKMS/gnmiHandlers/kms/keyStoreHandler.go
+
3
−
1
View file @
f4bb0876
...
...
@@ -42,7 +42,9 @@ func (yh *KeyStoreHandler) Init(config *handler.Config, publishToSubsFunc func([
return
err
}
yh
.
updateOrCreateKeyStores
()
if
_
,
err
:=
yh
.
updateOrCreateKeyStores
();
err
!=
nil
{
return
err
}
// Start the go routine that takes care of any update from the kms
go
func
()
{
...
...
This diff is collapsed.
Click to expand it.
goKMS/kms/store/kms-keystore.go
+
3
−
3
View file @
f4bb0876
...
...
@@ -71,7 +71,7 @@ func (ks *KmsKeyStore) AddKey(keyId uuid.UUID, keyToAdd []byte) error {
go
func
()
{
err
:=
ks
.
eventBus
.
Publish
(
event
.
NewKeyStoreEvent
())
if
err
!=
nil
{
fmt
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
log
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
}
}()
return
nil
...
...
@@ -97,7 +97,7 @@ func (ks *KmsKeyStore) AddKeys(keys map[uuid.UUID][]byte) error {
go
func
()
{
err
:=
ks
.
eventBus
.
Publish
(
event
.
NewKeyStoreEvent
())
if
err
!=
nil
{
fmt
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
log
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
}
}()
return
nil
...
...
@@ -142,7 +142,7 @@ func (ks *KmsKeyStore) DeleteKey(keyId uuid.UUID) {
go
func
()
{
err
:=
ks
.
eventBus
.
Publish
(
event
.
NewKeyStoreEvent
())
if
err
!=
nil
{
fmt
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
log
.
Errorf
(
"Publishing a key store update through the eventBus failed, err: %w"
,
err
)
}
}()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment