Graphman password is hardcoded in file to connect to gateway- sensitive data
search cancel

Graphman password is hardcoded in file to connect to gateway- sensitive data

book

Article ID: 414455

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Currently are using a file 'graphman.configuration" with hardcoded data.

Is there a way to have this as user/password input when running command

example

# graphman import –gateway default –using install-bunble –options.schema v11.1.1 –input graphmantimporttest.json –username {{username}} –password {{password}}



Environment

Gateway 11.1

Resolution

Specify username & credentials as cli arguments as followed:

Specify the profile name from graphman.configuration file 

{

    "gateways": {

        "<default-gw1>": {

            "address": "https://<gateway_hostname>:8443/graphman",

            "username": "blank",

            "password": "blank",

            "rejectUnauthorized": false,

            "keyFilename": null,

            "certFilename": null,

            "passphrase": "<passphrase>",

            "allowMutations": true

        },

Example command line:

graphman export --gateway <default-gw1>  --gateways.<default-gw1>.username <username> --gateways.<default-gw1>.password <pw_value> --using trustedCertsByDn --variables.subjectDn  "CN=<certificate subjectDN>"