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: introduce 4 new methods for the CredentialManager and deprecate some old ones #189

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

artemrys
Copy link
Member

@artemrys artemrys commented Aug 29, 2022

This commit introduces 4 new methods for the CredentialManager: get_raw_passwords, get_raw_passwords_in_realm, get_clear_passwords, get_clear_passwords_in_realm which now should be used to access passwords through CredentialManager.

Some old methods like _get_all_passwords_in_realm and _get_all_passwords were deprecated.

artemrys added a commit to splunk/addonfactory-ucc-library that referenced this pull request Aug 29, 2022
…words

Similar to splunk/addonfactory-solutions-library-python#189.

This change should fix the situation when you try to get a specific password for you add-on
and some other password in other add-on is corrupted, then the configuration page is
not loading for all the add-ons.
@artemrys artemrys force-pushed the fix/get-password-only-for-specific-realm branch from 485ea0a to 688a75d Compare September 1, 2022 10:33
@artemrys artemrys changed the title fix: CredentialManager.get_password prefers realm when doing a request to Splunk feat: introduce 4 new methods for the CredentialManager and deprecate some old ones Sep 1, 2022
@artemrys artemrys force-pushed the fix/get-password-only-for-specific-realm branch 2 times, most recently from f1c1d21 to 13a36c4 Compare September 1, 2022 11:24
@codecov-commenter
Copy link

Codecov Report

Merging #189 (f1c1d21) into main (24a960c) will decrease coverage by 9.54%.
The diff coverage is 26.08%.

❗ Current head f1c1d21 differs from pull request most recent head 13a36c4. Consider uploading reports for the commit 13a36c4 to get more accurate results

@@            Coverage Diff             @@
##             main     #189      +/-   ##
==========================================
- Coverage   84.09%   74.54%   -9.55%     
==========================================
  Files          23       23              
  Lines        1848     1882      +34     
==========================================
- Hits         1554     1403     -151     
- Misses        294      479     +185     
Impacted Files Coverage Δ
solnlib/credentials.py 31.12% <26.08%> (-56.91%) ⬇️
solnlib/conf_manager.py 28.91% <0.00%> (-57.23%) ⬇️

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

… some old ones

This commit introduces 4 new methods for the CredentialManager: get_raw_passwords, get_raw_passwords_in_realm, get_clear_passwords, get_clear_passwords_in_realm which now should be used to access passwords through CredentialManager.

Some old methods like _get_all_passwords_in_realm and _get_all_passwords were deprecated.
@artemrys artemrys force-pushed the fix/get-password-only-for-specific-realm branch from 13a36c4 to e2a4330 Compare September 1, 2022 12:09
@artemrys artemrys merged commit 70696c7 into main Sep 1, 2022
@artemrys artemrys deleted the fix/get-password-only-for-specific-realm branch September 1, 2022 12:15
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2022
@srv-rr-github-token
Copy link
Contributor

🎉 This PR is included in version 4.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants