cisagov / pe-reports

Automated process to build and distribute Posture & Exposure Reports' bi-weekly to customers.
Creative Commons Zero v1.0 Universal
17 stars 5 forks source link

POST Query cybersix_exposed_credentials table #561

Closed cduhn17 closed 7 months ago

cduhn17 commented 1 year ago

💡 Summary

Add new REST endpoints that mirror existing sql queries and replace existing sql query with REST Specifically: Convert "query_cyberSix_creds()" TSQL query to an API endpoint

Motivation and context

There are two major reasons to use endpoints in place of sql queries.

Implementation notes

Acceptance criteria

arng4108 commented 10 months ago

This endpoint queries a table in the database that no longer exists. Additionally, the function is not used anywhere. Therefore, this endpoint will not be converted/included in the API effort

arng4108 commented 10 months ago

Reopening this issue to be revisited later, primarily to clean up any traces of this unused function. The function query_cyberSix_creds() is still not used anywhere, and the table it references does not exist.

arng4108 commented 7 months ago

After searching through the staging branch, there are no traces of this function being used/called anywhere. Because of this, the api conversion of this TSQL function has not been added to staging. However, the api conversion remains on the api-extended branch just in case.