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

CDH: fix aa_kbc_params and config reading #596

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

Xynnn007
Copy link
Member

CDH should firstly read config specified with commandline, and then env.

aa_kbc_param should be firstly read directly from CDH's config file. If there is no config file, try to read from env and then kernel cmdline. If still no values found, use a default one with offline_fs_kbc.

Close #593

cc @huoqifeng @mkulke

@Xynnn007
Copy link
Member Author

Hi @stevenhorsman , I think this could fix the issue in slack channel.

CDH should firstly read config specified with commandline, and then env.

aa_kbc_param should be firstly read directly from CDH's config file. If
there is no config file, try to read from env and then kernel cmdline.
If still no values found, use a default one with offline_fs_kbc.

Close confidential-containers#593

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
Copy link

@huoqifeng huoqifeng left a comment

Choose a reason for hiding this comment

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

LGTM
thank you @Xynnn007 to fix it!

@Xynnn007 Xynnn007 merged commit 7afa473 into confidential-containers:main Jun 24, 2024
7 checks passed
@Xynnn007 Xynnn007 deleted the fix-aa-params branch June 24, 2024 07:52
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.

CDH: kbs kms plugin should get aa_kbc_params from cdh config file if it's provided
3 participants