kernelci / kernelci/kernelci-core

Improve automatic API keys naming in kernelci-core templates

Open
#2,642 0 comments 0 reactions 0 assignees View on GitHub
techdebt
Dominant language
Python
Stars
120
Forks
107
Avg merge
1d 2h
Merged PRs (30d)
21

Description

https://github.com/kernelci/kernelci-core/pull/2634 introduces hack to allow defining keys over ENV variable.
This can be made better.
```
instance = os.getenv('KCI_INSTANCE', 'prod')
if instance == 'prod':
params['k8s_api_key'] = 'kci-api-jwt-early-access'
else:
params['k8s_api_key'] = 'kci-api-jwt-staging'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading pull request 2634 and the template code containing the shown KCI_INSTANCE-based API-key selection. Clarify the intended automatic naming behavior for production and staging, then update the templates and verify that each environment receives the expected key name.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.