Skip to content

Authenticating with a VCF Automation organization

When Orchestrator does extensibility work for VCF Automation, such as subscriptions, custom resources, or catalog workflows, it should authenticate against the VCF Automation organization it serves. This gives you the full role model: administrators, workflow designers, viewers, and group permissions.

Getting ready

  • A deployed appliance (recipe 1.2) with root access.
  • VCF Automation 9.x, here auto.vmw.lab.
  • The organization name to bind to, and an account to authenticate with: an organization administrator for a VM Apps organization, or a provider administrator for an All Apps organization.

How to do it

The walkthrough and screenshots below come from a real setup in the author’s lab : a standalone 9.0.2 appliance, vco01.vmw.lab, bound to an All Apps organization, all-apps-mg, that doesn’t use VPC networking. A VM Apps organization is set up the same way: the same vracli command with the VM Apps organization’s name, the same deploy.sh, and an Orchestrator integration in that organization. The differences are noted where they come up.

  1. SSH in as vmware-system-user and switch to root with sudo su - (recipe 2.1), and run the command for your organization type. Accept the certificates it shows, then enter a credential. The prompt asks for an API token, Bearer Token, Password, and any of the three is accepted.
root@vco01 — All Apps organization
vracli vro authentication set -p tm \
-u admin \
-hn https://auto.vmw.lab/ \
--tenant all-apps-mg
root@vco01 — VM Apps organization
vracli vro authentication set -p tm \
-u orgadmin \
-hn https://auto.vmw.lab \
--tenant my-vm-apps-org

In the lab, the administrator’s password didn’t work for the All Apps organization: the command ended with pod prelude/vro-cli-… terminated (Error). A bearer token copied from the browser did. The command then warned Could not create a Service Account. Some functionality may be impacted. Continue with configuration? [y/N]; answering y finished with The authentication provider has been successfully registered.

If the password is refused, use a bearer token. Log in to the organization’s portal in a browser, open the developer tools on the Network tab, and click any request to the VCF Automation API. Under Request Headers, the value of Authorization after Bearer is your token. Run the command again and paste the token at the prompt straight away: it’s short-lived, and it carries your rights, so don’t save it anywhere.

VCF Automation All Apps organization portal at auto.vmw.lab/tenant/all-apps-mg, Administer > Access Control, with Chrome developer tools open on the Network tab. A request is selected and its Request Headers show the Authorization header highlighted; the token value is blurred.
Figure 1.10. Copying a bearer token from the browser's developer tools.
Needs a lab check. The lab used a bearer token because the password failed. An API token created in the organization’s portal is also accepted at the prompt and is easier to obtain than one copied from the browser; check on 9.1.1 whether it works for an All Apps organization.
  1. Check what was stored:
root@vco01
vracli vro authentication
SSH session on the appliance, as root. vracli vro authentication set -p tm -u admin -hn https://auto.vmw.lab/ --tenant all-apps-mg shows the certificates of auto.vmw.lab and the VMW-CA root and asks to accept them. Two attempts with a password end in pod prelude/vro-cli terminated (Error); the third, with a bearer token, warns that a service account could not be created and registers the provider. vracli vro authentication then prints JSON with the authentication provider csp, the external URL https://auto.vmw.lab/tm, the redirect URI on the appliance's FQDN, and redacted tenant and service account values.
Figure 1.11. Binding the appliance to an All Apps organization, and the stored configuration.

The answer names the provider csp, points vco.csp.external.url at https://auto.vmw.lab/tm, and registers a redirect URI on the appliance’s own FQDN. If that FQDN is wrong, logins will fail later, so check it here.

  1. Redeploy the Orchestrator services. This step isn’t optional: the new provider is only used after it.
root@vco01
/opt/scripts/deploy.sh

B. Publish the Orchestrator rights (All Apps)

Section titled “B. Publish the Orchestrator rights (All Apps)”
  1. In the Provider Management portal, go to Administration > Feature Flags and check that Advanced Rights Bundle Mode is Enabled. Do this before step 5. If you publish the rights bundle first, it looks published, but the Orchestrate tab in the organization never loads.
Provider Management, Feature Flags: Advanced Rights Bundle Mode, usage Alpha, state Enabled, description This feature enables custom management of rights bundles.
Figure 1.12. The Advanced Rights Bundle Mode feature flag, enabled.
  1. Go to Administration > Access Control > Rights Bundles, open the menu of Orchestrator Rights Bundle, and click Publish. Switch on Publish to Tenants, select your organization (or switch on Publish to All Tenants), and click Save.
Provider Management at auto.vmw.lab/provider/access-control/rights-bundles. Administration > Access Control is selected; the list shows Default Tenant Rights Bundle, Orchestrator Rights Bundle (highlighted) and System Rights Bundle. The dialog Publish Rights Bundle Orchestrator Rights Bundle has Publish to Tenants on and the organization all-apps-mg selected; the other organization names are hidden.
Figure 1.13. Publishing the Orchestrator Rights Bundle to one organization.
Needs a lab check. The lab walked steps 4 and 5 for an All Apps organization. Check whether a VM Apps organization needs the feature flag and the rights bundle too, or only the integration in part C.
  1. In the organization’s portal, go to Administer > Connections > Integrations and add a new integration of type Orchestrator. Enter a Name and a Description, set VCF Operations Orchestrator URL to https://vco01.vmw.lab:443 (or the load balancer address, for a cluster), click Validate, and wait for Credentials validated successfully. Click Add.
New Integration form: Type Orchestrator, Name vco01, Description External, VCF Operations Orchestrator URL https://vco01.vmw.lab:443, and after Validate the message Credentials validated successfully. Add and Cancel buttons.
Figure 1.14. A standalone Orchestrator added to an All Apps organization.
  1. Close the integration and open it again. Its status is Running, with gauges for CPU, heap, non-heap memory and the root file system, and Data collection completed once the first collection has run. Start Data Collection runs one now.
The Orchestrator integration reopened: a check mark and RUNNING, gauges CPU 2%, Heap 21%, Non-Heap 27%, Root FS 9%, View More and Start Data Collection buttons, and Status Data collection completed 3 minutes ago. Name vco01, Description External, URL https://vco01.vmw.lab:443.
Figure 1.15. The integration running, after its first data collection.

In a VM Apps organization, the integration is added from the organization’s Integrations page in the same way: pick Orchestration (or Orchestrator), choose the user-deployed instance rather than the embedded one, and enter the same URL.

  1. Click the Orchestrate tab at the top of the portal. The Orchestrator Client opens on its dashboard.
VCF Automation organization portal with the top tabs Overview, Build & Deploy, Manage & Govern, Orchestrate (selected), Administer and Inbox. The Orchestrator Client dashboard shows Workflow Runs N/A, Favorite Workflows (0), Waiting for Input (0), an empty Recent Workflow Runs list and Requiring Attention, with the navigation Library, Activity, Assets and Administration.
Figure 1.16. The standalone Orchestrator, opened from the organization's Orchestrate tab.

In a VM Apps organization, go to Infrastructure > Access Control > Users, edit a user, and assign Orchestrator Workflow Designer (or Orchestrator Viewer). In an All Apps organization, assign the Orchestrator rights from the published bundle to the roles that need them.

How it works

The tm provider binds this Orchestrator to exactly one organization. Logins are checked by VCF Automation, and only members of that organization can get in. This is why one standalone instance serves one organization. A VM Apps organization can register several Orchestrator integrations, embedded and standalone, and pick between them with capability tags. An All Apps organization accepts only one standalone instance.

VCF Automation collects workflows from Orchestrator every 10 minutes. It only picks up changes to workflows whose version you’ve increased, so when you finish editing a workflow you want to publish, increase its version.

There's more

The Orchestrate tab doesn’t load . First check the feature flag and the rights bundle (steps 4 and 5). Then make sure the appliance advertises its own FQDN, and redeploy:

root@vco01
vracli load-balancer set vco01.vmw.lab
/opt/scripts/deploy.sh

Finally, open https://vco01.vmw.lab in the same browser and accept its certificate if the browser asks. In the lab, these steps together brought the tab back.

Upgraded from Aria Automation 8.x? Existing Orchestrator integrations and their content carry over into the corresponding VM Apps organization automatically. There’s nothing to redo.

The VCF Automation plug-in. To call VCF Automation from workflows (for example, to request a deployment), you also need the right plug-in configured. VM Apps and All Apps use different plug-ins. Chapter 8 covers both.

See also