akamai / uls

Unified Log Streamer (ULS)
Apache License 2.0
30 stars 10 forks source link

[FEATURE] - encrypting the clear text password #43

Closed ShlomiSalman closed 1 year ago

ShlomiSalman commented 1 year ago

Hello

I want to use this tool to sync the network log events from. Guardicore Cetra but I've noticed that the password is stored in clear text in the .edgerc file.

Is there an option to store hashed password or encrypt the password somehow? we received this requirement from a customer to use our tools (guardicore solution center tools) and I can point you to the engineer that changed it in all of out tools.

MikeSchiessl commented 1 year ago

Hi @ShlomiSalman,

To be able to login against the API, ULS somehow needs to access (read) the clear text password. So, here are a couple of thoughts from my end, but happy to have a conversation on how the issue got solved on the solution center tools side.

So here we go:

Right now, our recommendation is to use strict RBAC to minimize the capabilities (=authorization) of the regarding token to only allow retrieval of logs.

Feel free to plunge me a meeting invite into my calendar so we can have a discussion and also feel free to point me to the eng. that solved it towards the other tool (find me on teams slack mail ... )

best Mike Schiessl

MikeSchiessl commented 1 year ago

@ShlomiSalman,

as discussed the GC-LOGS is now supporting "ENV VARS" in order to receive the credentials

Variable Default Description
CENTRA_MANAGEMENT_HOSTNAME none Alternative to EDGERC - put the CENTRA management hostname here
CENTRA_MANAGEMENT_PORT 443 Alternative to EDGERC - put the CENTRA management port here
CENTRA_MANAGEMENT_USERNAME none Alternative to EDGERC - put the CENTRA username here
CENTRA_MANAGEMENT_PASSWORD none Alternative to EDGERC - put the CENTRA password here