-
Notifications
You must be signed in to change notification settings - Fork 95
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
KBS | Refactoring the codebase / update config file format / bring in plugin mechanism #514
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d0b08fc
KBS: refactor attestation module
Xynnn007 51b37bb
KBS: refactor policy engine module
Xynnn007 a773544
KBS: add Admin auth module
Xynnn007 08ef166
KBS: add Plugins module
Xynnn007 7aad4f9
KBS: Use new launch Config
Xynnn007 71573e2
KBS: fix CI, docs and exampled configurations
Xynnn007 d78dbe1
AS: reorder the dep in lexicographic order
Xynnn007 4ef93f5
KBS: change default feature to all backend AS and resource
Xynnn007 be3c836
KBS: Use one API to serve both admin and user requests
Xynnn007 85b7ab8
toml: add extra line to all toml files
Xynnn007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
[http_server] | ||
sockets = ["0.0.0.0:8080"] | ||
auth_public_key = "/opt/confidential-containers/kbs/user-keys/public.pub" | ||
insecure_http = true | ||
|
||
[attestation_token_config] | ||
[attestation_token] | ||
insecure_key = true | ||
|
||
[grpc_config] | ||
[attestation_service] | ||
type = "coco_as_grpc" | ||
as_addr = "http://as:50004" | ||
|
||
[admin] | ||
auth_public_key = "/opt/confidential-containers/kbs/user-keys/public.pub" | ||
|
||
[[plugins]] | ||
name = "resource" | ||
type = "LocalFs" | ||
dir_path = "/opt/confidential-containers/kbs/repository" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[http_server] | ||
insecure_http = true | ||
insecure_api = true | ||
|
||
[attestation_token_config] | ||
[attestation_token] | ||
insecure_key = true | ||
|
||
[grpc_config] | ||
[attestation_service] | ||
type = "coco_as_grpc" | ||
as_addr = "http://127.0.0.1:50004" | ||
pool_size = 200 | ||
pool_size = 200 | ||
|
||
[admin] | ||
insecure_api = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
[http_server] | ||
insecure_http = true | ||
|
||
[admin] | ||
insecure_api = true | ||
|
||
[attestation_token_config] | ||
trusted_certs_paths = ["https://portal.trustauthority.intel.com"] | ||
[attestation_token] | ||
trusted_jwk_sets = ["https://portal.trustauthority.intel.com"] | ||
|
||
[intel_trust_authority_config] | ||
[attestation_service] | ||
type = "intel_ta" | ||
base_url = "https://api.trustauthority.intel.com" | ||
api_key = "tBfd5kKX2x9ahbodKV1..." | ||
certs_file = "https://portal.trustauthority.intel.com" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changes to the configuration files should be reported in the various readme files as well (it seems they're not there yet).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, let me add the documents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Xynnn007. Can you please update doc/examples for the following as well?
I might have not included them all.
Or are you thinking to do it later? (e.g. later on in the review/other PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I should do this. Thanks for the great suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check https://github.com/Xynnn007/kbs/blob/refactor-kbs/kbs/docs/config.md which is the view of current PR