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

feat: use secret_key config field instead of api_key #2444

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

jooola
Copy link
Contributor

@jooola jooola commented Mar 15, 2023

Related to #2426

This adds a warning about a future required configuration field, that will fallback to the previous behavior (use the general.api_key as secret_key) in case of a missing value. We must make the field required on the next major version bump, we will keep track of this in #2426.

New LibreTime setup will have the secret_key field filled during the install process.

@jooola jooola force-pushed the secret_key branch 3 times, most recently from 1bf06f9 to e98a8b5 Compare March 15, 2023 19:57
@jooola jooola marked this pull request as ready for review March 15, 2023 20:07
@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Merging #2444 (d7e4a2c) into main (6a7d72c) will increase coverage by 0.06%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##             main    #2444      +/-   ##
==========================================
+ Coverage   61.68%   61.74%   +0.06%     
==========================================
  Files         149      151       +2     
  Lines        4155     4167      +12     
==========================================
+ Hits         2563     2573      +10     
- Misses       1592     1594       +2     
Flag Coverage Δ
analyzer 46.91% <ø> (ø)
api 93.68% <66.66%> (-0.12%) ⬇️
api-client 41.53% <ø> (+0.54%) ⬆️
playout 30.03% <ø> (ø)
shared 88.35% <100.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
api/libretime_api/settings/prod.py 88.88% <60.00%> (-11.12%) ⬇️
api/libretime_api/settings/testing.py 100.00% <100.00%> (ø)
shared/libretime_shared/config/_models.py 96.07% <100.00%> (+0.02%) ⬆️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jooola jooola force-pushed the secret_key branch 3 times, most recently from 35af910 to c20b1b7 Compare March 20, 2023 11:02
docker/example/config.yml Show resolved Hide resolved
docs/admin-manual/setup/configuration.md Show resolved Hide resolved
installer/config.yml Show resolved Hide resolved
@paddatrapper paddatrapper merged commit d800c5e into libretime:main Mar 22, 2023
@jooola jooola deleted the secret_key branch March 22, 2023 12:23
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.

None yet

2 participants