Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13743

[OM] OpsManager POST /orgs/{ORG-ID}/apiKeys has wrong Response Body

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Ops Manager
    • Labels:
      None

      Description

      Response Body (https://docs.opsmanager.mongodb.com/current/reference/api/api-keys/org/create-one-org-api-key/#response-body) shows a redacted privateKey which is wrong. When creating an org api key the privateKey is not redacted.

      Example:

      ORGID=5eb937c261f116005cf1dcf1
      curl --digest --user admin:${PW} -X POST http://opsmanager-svc.mongodb-system.svc.cluster.local:8080/api/public/v1.0/orgs/${ORGID}/apiKeys -H 'Content-Type: application/json' --data '{"desc":"testorg3 access","roles":["ORG_GROUP_CREATOR"]}' 
      
      reply: 
      {"desc":"testorg3 access","id":"5eb939bc61f116005cf1dd61","links":[{"href":"http://opsmanager-svc.mongodb-system.svc.cluster.local:8080/api/public/v1.0/orgs/5eb937c261f116005cf1dcf1/apiKeys/5eb939bc61f116005cf1dd61","rel":"self"}],"privateKey":"81aea7db-1907-4d17-ad21-d5978c18d900","publicKey":"xrohzkvh","roles":[{"orgId":"5eb937c261f116005cf1dcf1","roleName":"ORG_GROUP_CREATOR"}]}  

       
      Please replace "***********-db2c132ca78d" with a valid privateKey.
       

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            jeffrey.allen@mongodb.com Jeffrey Allen
            Reporter:
            joel.studler@swisscom.com Joel Studler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 43 weeks, 1 day ago