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

patches/kernelci-pipeline: use dotted key syntax in TOML settings #92

Closed
wants to merge 1 commit into from

Conversation

JenySadadia
Copy link

Update patch used to add TOML settings file for staging to use dotted key syntax.

Update patch used to add TOML settings file for staging
to use dotted key syntax.

Signed-off-by: Jeny Sadadia <[email protected]>
@gctucker
Copy link
Contributor

I think there's a file outside of git now with credentials on the server, worth double-checking. If that's the case then we should just remove this one and look into other ways of managing the settings file on staging.

@JenySadadia
Copy link
Author

I think there's a file outside of git now with credentials on the server, worth double-checking. If that's the case then we should just remove this one and look into other ways of managing the settings file on staging.

Can you elaborate on what kind of credentials? I tried to check on staging server but couldn't find anything like that.

@gctucker
Copy link
Contributor

The config/staging.kernelci.org.secrets.toml file has a LAVA API token used for scheduling jobs in Collabora's LAVA lab.

@gctucker
Copy link
Contributor

OK I think we can close this PR and just remove the patch that adds this file instead as we can't keep it the actual one under source control with "secrets" such as LAVA API tokens. We can't really keep it here with git-crypt either as it would make it impossible for users without a GPG key to update the patch series. We could just add the TOML file with git-crypt in kernelci-pipeline though rather than a patch here. I think the best approach is still to manage it separately e.g. with Ansible. It's more of a sysadmin issue at this point (Cc @nuclearcat @VinceHillier).

@gctucker
Copy link
Contributor

FYI I've updated the config/staging.kernelci.org.secrets.toml file on the staging VM accordingly with [storage.staging] and [runtime.lava-collabora]

@JenySadadia
Copy link
Author

FYI I've updated the config/staging.kernelci.org.secrets.toml file on the staging VM accordingly with [storage.staging] and [runtime.lava-collabora]

OK. Thanks.

@gctucker
Copy link
Contributor

Also this reminds me we should probably be getting the API token from the TOML file rather than the environment with KCI_API_TOKEN, I don't think there's any good reason to keep that variable now.

@JenySadadia
Copy link
Author

FYI I've updated the config/staging.kernelci.org.secrets.toml file on the staging VM accordingly with [storage.staging] and [runtime.lava-collabora]

I've updated tarball.storage_config.

@JenySadadia
Copy link
Author

Also this reminds me we should probably be getting the API token from the TOML file rather than the environment with KCI_API_TOKEN, I don't think there's any good reason to keep that variable now.

Yes, eventually we can move all the env variables to TOML.

@gctucker
Copy link
Contributor

I've updated tarball.storage_config.

Oh, actually I think we should remove the storage_config setting from the [tarball] section to use the default one instead.

@JenySadadia
Copy link
Author

As per the discussion above, we should remove staging.kernelci.org.toml file instead of maintaining patch file for it.
Also created a GH issue #134.
Closing the PR.

@JenySadadia JenySadadia deleted the toml-use-dotted-keys branch February 21, 2024 07:19
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.

2 participants