Skip to content

Weak Obfuscation in newrelic-cli/internal/agent/obfuscate/utils.go #1761

@timosarkar

Description

@timosarkar

Hi All,

In this file, you define the obfuscation mechanism used in the subcommand newrelic agent config obfuscate. From my understanding you can generate obfuscated credentials through this and then use them in your newrelic environment. But exposing such obfuscated strings can leave you exposed since this cli is opensource and anybody can easily reverse it.

func StringWithKey(textToObfuscate string, encodingKey string) string {

I would suggest to use a proper encryption algorithm instead of just obfuscating values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions