ovh.toml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Name = "OVH"
  2. Description = ''''''
  3. URL = "https://www.ovh.com/"
  4. Code = "ovh"
  5. Since = "v0.4.0"
  6. Example = '''
  7. # Application Key authentication:
  8. OVH_APPLICATION_KEY=1234567898765432 \
  9. OVH_APPLICATION_SECRET=b9841238feb177a84330febba8a832089 \
  10. OVH_CONSUMER_KEY=256vfsd347245sdfg \
  11. OVH_ENDPOINT=ovh-eu \
  12. lego --email you@example.com --dns ovh --domains my.example.org run
  13. # Or OAuth2:
  14. OVH_CLIENT_ID=yyy \
  15. OVH_CLIENT_SECRET=xxx \
  16. OVH_ENDPOINT=ovh-eu \
  17. lego --email you@example.com --dns ovh --domains my.example.org run
  18. '''
  19. Additional = '''
  20. ## Application Key and Secret
  21. Application key and secret can be created by following the [OVH guide](https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/).
  22. When requesting the consumer key, the following configuration can be used to define access rights:
  23. ```json
  24. {
  25. "accessRules": [
  26. {
  27. "method": "POST",
  28. "path": "/domain/zone/*"
  29. },
  30. {
  31. "method": "DELETE",
  32. "path": "/domain/zone/*"
  33. }
  34. ]
  35. }
  36. ```
  37. ## OAuth2 Client Credentials
  38. Another method for authentication is by using OAuth2 client credentials.
  39. An IAM policy and service account can be created by following the [OVH guide](https://help.ovhcloud.com/csm/en-manage-service-account?id=kb_article_view&sysparm_article=KB0059343).
  40. Following IAM policies need to be authorized for the affected domain:
  41. * dnsZone:apiovh:record/create
  42. * dnsZone:apiovh:record/delete
  43. * dnsZone:apiovh:refresh
  44. ## Important Note
  45. Both authentication methods cannot be used at the same time.
  46. '''
  47. [Configuration]
  48. [Configuration.Credentials]
  49. OVH_ENDPOINT = "Endpoint URL (ovh-eu or ovh-ca)"
  50. OVH_APPLICATION_KEY = "Application key (Application Key authentication)"
  51. OVH_APPLICATION_SECRET = "Application secret (Application Key authentication)"
  52. OVH_CONSUMER_KEY = "Consumer key (Application Key authentication)"
  53. OVH_CLIENT_ID = "Client ID (OAuth2)"
  54. OVH_CLIENT_SECRET = "Client secret (OAuth2)"
  55. [Configuration.Additional]
  56. OVH_POLLING_INTERVAL = "Time between DNS propagation check"
  57. OVH_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
  58. OVH_TTL = "The TTL of the TXT record used for the DNS challenge"
  59. OVH_HTTP_TIMEOUT = "API request timeout"
  60. [Links]
  61. API = "https://eu.api.ovh.com/"
  62. GoClient = "https://github.com/ovh/go-ovh"