Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separates service internal namespace from externally added keys. #584

Merged
merged 5 commits into from
Jul 11, 2023

Conversation

andresuribe87
Copy link
Contributor

Overview

Fixes #367 by changing the namespace that the service key uses.

Description

na

How Has This Been Tested?

All tests pass.

@@ -55,6 +55,7 @@ type ServiceKey struct {

const (
namespace = "keystore"
serviceNamespace = "keystore:service-internal"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were using - instead of : in other places, may want to make sure this is uniform

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a mix. I've changed it so we're using : everywhere

@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2023

Codecov Report

Merging #584 (68699ee) into main (4fdc0c4) will decrease coverage by 0.04%.
The diff coverage is 70.83%.

@@            Coverage Diff             @@
##             main     #584      +/-   ##
==========================================
- Coverage   24.00%   23.96%   -0.04%     
==========================================
  Files          46       46              
  Lines        5312     5303       -9     
==========================================
- Hits         1275     1271       -4     
+ Misses       3799     3794       -5     
  Partials      238      238              
Impacted Files Coverage Δ
config/config.go 27.35% <ø> (+0.63%) ⬆️
pkg/storage/bolt.go 64.90% <ø> (+0.48%) ⬆️
pkg/service/keystore/service.go 39.59% <50.00%> (-2.34%) ⬇️
pkg/service/keystore/storage.go 34.74% <50.00%> (-0.31%) ⬇️
pkg/storage/storage.go 44.73% <60.00%> (+2.31%) ⬆️
pkg/storage/redis.go 52.27% <100.00%> (ø)

@andresuribe87 andresuribe87 merged commit 9d7328c into TBD54566975:main Jul 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decouple ServiceKey namespace from KeyStoreAPI namespace
4 participants