SmartResponse-Framework / SmartResponse.Framework

PowerShell module for developing LogRhythm SmartResponse Plugins
Other
8 stars 2 forks source link

LogRhythm API Token handling (setting / storing / documentation) #10

Closed GeneCupstid closed 4 years ago

GeneCupstid commented 4 years ago

Currently the value of $SrfPreferences.LrDeployment.LrApiToken isn't properly validated or reported to the user if missing.

GeneCupstid commented 4 years ago

Changes:

In SrfPreferences

Example of the new LrDeployment section if all of these changes are added:

    "LrDeployment": {
        "Instructions": [
            "1. Update URLs to point to your Platform Manager / AI Engine server.",
            "3. If you'd like to use a saved token credential, include path to it in LrApiCredentialPath.",
            "2. DO NOT SET A VALUE FOR LrApiCredential - this will be set by the module if LrApiCredentialPath is set."
        ],
        "AdminApiBaseUrl": "https://server.comain.com:8501/lr-admin-api",
        "CaseApiBaseUrl": "https://server.comain.com:8501/lr-case-api",
        "AieApiUrl": "https://server.comain.com:8501/lr-drilldown-cache-api",
        "LrApiCredentialPath": "C:\\repos\\SmartResponse.Framework\\tests\\cred_LrApiToken.xml",
        "LrApiCredential": ""
    },
GeneCupstid commented 4 years ago

Idea: Set-LrApiToken cmdlet - to walk user through process?

GeneCupstid commented 4 years ago

Created feature branch 10-LrApiToken to begin work on this issue.

GeneCupstid commented 4 years ago

This code is in dev now and will be merged in the next 24 hours.