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

Log users and the credentials they obtain #206

Merged
merged 10 commits into from
Dec 20, 2019

Conversation

skiptomyliu
Copy link
Member

@skiptomyliu skiptomyliu commented Nov 19, 2019

Log users and the credentials that they obtain. Useful for auditing and alerting.

@@ -392,6 +392,9 @@ def get_credential(id):
cipher = CipherManager(data_key, cipher_version)
_credential_pairs = cipher.decrypt(cred.credential_pairs)
_credential_pairs = json.loads(_credential_pairs)

if authnz.user_is_user_type('user'):
logging.info(f"{authnz.get_logged_in_user()} fetching credential {id}")
Copy link
Contributor

Choose a reason for hiding this comment

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

confidant is still python2 compat, so ideally use .format(), rather than f strings

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks Ryan, good point.

@skiptomyliu skiptomyliu changed the title [WIP] - Feature log credential get [WIP] - log users and the credentials they obtain Nov 19, 2019
confidant/routes/v1.py Outdated Show resolved Hide resolved
@skiptomyliu skiptomyliu changed the title [WIP] - log users and the credentials they obtain Log users and the credentials they obtain Nov 19, 2019
ryan-lane
ryan-lane previously approved these changes Dec 20, 2019
@skiptomyliu skiptomyliu merged commit a176cd1 into master Dec 20, 2019
@ryan-lane ryan-lane deleted the feature-log-credential-get branch February 14, 2020 00:05
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.

3 participants