-
Notifications
You must be signed in to change notification settings - Fork 9
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
First draft of passwd discovery agent. #29
base: master
Are you sure you want to change the base?
Conversation
discovery_agents/passwd
Here are a few issues that came up when I looked at the script:
For more information about providing a discovery agent (particularly about testing) please see the article writing an assimilation discovery agent. It was written precisely to address these issues. If you incorporate it with tests, and it passes tests, then it will be producing legal JSON, and it will give the proper failure return if it is unable to read the password file. The test infrastructure ensures both of those. However, it doesn't ensure that the JSON you produced is sensible, meaningful or has the correct data. Humans have to ensure these things. I would suggest these names for the JSON fields: Here's my password entry from my desktop: This would translate into: |
Alan, thanks! Let me go work on that. |
discovery_agents/passwd testcode/discovery_input/passwd
Not formatting JSON right, and the discovery agent needs to test and resolve empty fields that JSON doesn't like. Per Alan also need to ensure alpha fields are in fact alpha.
See tmp/leam_notes.txt
discovery_agents/passwd
This is my first contribution so feel free to critically review. :) Especially the spaces and tabs used for indentation. It was written with my old vimrc:
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set paste
set number