Adding a Credential

Add application, resource, and target credentials to a fleet in Fleet Application Management.

    1. On the Fleets list page, select the fleet that you want to work with. If you need help finding the list page or the fleet, see Listing Fleets.
    2. Select the Credentials tab.
      All credentials associated with the fleet are displayed in a three tables corresponding to fleet, resource, and target credentials.
    3. To add fleet credentials, select Add fleet credential under Fleet credentials.
    4. Select a compartment that contains the credential and then select the credential.
    5. Select one of the following options under Encryption type:
      • Encrypt credentials using vault key: Select this option to enter credentials for the application and use the vault master encryption keys stored in Vault keys to encrypt these credentials. Skip to step 6.
      • Use secrets for credentials: Select this option to use Fleet Application Management application-specific credentials that are already stored with Vault secrets. When information is sensitive, use this option. Skip to step 7.
    6. If you selected Encrypt credentials using vault key for Encryption type, follow these steps:
      • Select a compartment  that contains the vault key.
      • From the list of vaults in the compartment, select a vault name.
      • Select a key name as the Master encryption key.
      • Enter the username to use for the administrative server or managed server.
      • Enter the password to use for the username that you specified and then enter it again to confirm it.
    7. If you selected Use secrets for credentials for Encryption type, follow these steps:Select the compartment that contains the vault key and select a vault name to use credentials stored in Vault. Then, select a username and password and their corresponding secrets from Vault.
      • Enter the username to use for the administrative server or managed server and select the password from the Vault service for a specific compartment. Then, select the corresponding secret from vault.
      • To use credentials stored in vault, switch on the Use from vault toggle. Then, select a username and password and their corresponding secrets from the Vault service for a specific compartment.
    8. (Optional) For the context variable of an application, specify the application's name, the URL used to access the application form, and any extra relevant data such as URI. For example, if the URL is https://apps.oci.oraclecloud.com/myapp1, the Name can be myapp with the corresponding Value including other URI information can be, /myapp1. Add more context variables as required.
    9. Add more credentials, as required.
    10. Select Create.
      The credentials are added to the fleet.
    11. To add resource credentials, select Add resource credentials under Resource credentials.
    12. In the Add credentials for resource page, select a credential name that's defined under product metadata management for a compartment.
    13. To add resources, select Add resources.
      The resources that match the credential appear under Resource.
    14. To add credentials for specific resources, select the checkbox next to the resources and select Add resources.
    15. Perform steps 5 to 8 and select Add to add resource-specific credentials.
      Ensure you add credentials for product-specific resources in step 5.
    16. To add target credentials, select Add target credentials under Target credentials.
    17. In the Add credentials for target page, select a credential name that's defined under product metadata management for a compartment.
    18. Select the resource for which credential is set.
    19. To add targets, select Add targets.
      The resources that match the credential appear under Select targets. For example, Oracle Java or Oracle WebLogic products.
    20. To add credentials for specific targets, select the checkbox next to the resources and their corresponding targets. Then, select Add targets.
    21. Perform steps 5 to 8 and select Add to add credentials for a target.
      Ensure you enter credentials for product-specific targets in step 5.
  • Use the oci fleet-apps-management fleet-credential create command and required parameters to add credentials for a fleet to access resources:

    oci fleet-apps-management fleet-credential create --display-name <text> --entity-specifics <json_file_or_string> --fleet-id <fleet_OCID> --password <json_file_or_string> --user <json_file_or_string> [OPTIONS]

    For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.

  • Run the CreateFleetCredential operation to add credentials for a fleet to access resources.