Connect OVHcloud to Lutril
Lutril connects to OVHcloud two ways, and the quick one is OAuth: an administrator clicks Connect, approves on OVHcloud's own screen, and comes back. Nothing is copied or pasted, and the authorization is revocable at any time from the OVHcloud Manager. A service account stays available as a fallback, and is the way in for a region where Lutril has no OAuth application yet. Either way, Lutril governs the IAM users of your account: the people who can reach the Manager and the API. It reads every user with the privilege their IAM groups carry, and it time boxes access two ways. A request from somebody with no account creates one, and the deadline disables it; a request from somebody who already has an account adds them to one IAM group for the life of the grant, and the deadline removes that membership and nothing else. OVHcloud users are disabled, never deleted, so a second request to the same person re enables the account they already had.
Access requested
- OAuth: the authorization carries the permissions of whoever approves it, so approve as somebody who can read the account's users and groups.
- Service account: account:apiovh:me/identity/user/* (read the IAM users, create one, enable or disable one)
- Service account: account:apiovh:me/identity/group/* (read the groups and their privilege, add or remove a membership)
Setup steps
- 1
Pick your region in Lutril first: Europe, Canada or United States. OVHcloud accounts are not shared between regions, and the consent screen has to be the one for your account.
Open the OVHcloud Manager - 2
Click Connect OVHcloud. You are sent to OVHcloud, you sign in if you are not already, and you approve the access. That is the whole flow.
- 3
Approve as somebody who can read the account's users and groups. The authorization carries that person's permissions, and the account holder always qualifies. You can revoke it at any time from the OVHcloud Manager.
- 4
If your region has no OAuth application yet, or you prefer a credential that does not depend on one person, use a service account instead. The steps below are that fallback.
- 5
Sign in to the OVHcloud Manager as the account holder or an administrator, and open Identity, Security & Operations, then Service accounts. A service account is a machine credential: it does not expire with a person and is not tied to anyone's consumer key.
Create and manage a service account - 6
Create the service account, name it something like Lutril, and copy the client ID and the client secret straight away. OVHcloud shows the secret once and will not display it again.
- 7
Give the service account an IAM policy covering account:apiovh:me/identity/user/* and account:apiovh:me/identity/group/*. Nothing else is needed: Lutril reads your users and groups, creates or enables or disables a user, and adds or removes a group membership. It never touches your services, your billing or your domains.
Use IAM policies with the OVHcloud API - 8
Note the region your OVHcloud account was created in: Europe, Canada or United States. Accounts are not shared between regions and a service account created in one is refused by the others.
- 9
In Lutril, connect OVHcloud, paste the client ID and the client secret, then pick the matching region.
- 10
To time box OVHcloud access, set the access levels on the OVHcloud app in your catalogue to the names of your IAM groups. Those are your own group names, so what somebody requests is exactly the group they are put in. ADMIN, DEFAULT and UNPRIVILEGED are the three OVHcloud ships with, and any group you created yourself works the same way.
Permission groups managed by OVHcloud - 11
Lutril never deletes an OVHcloud user. Deleting one would destroy its personal access tokens and the IAM URN every policy referencing it points at, so a deadline only ever disables an account Lutril created, or removes the one group membership a grant added. Anybody who already held the group they asked for is left exactly as they were.
Where to create it
Official docs
Sign in to Lutril to connect OVHcloud, or book a demo and we set it up with you. No slides.