tls_auth_settings.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="gf-form-group">
  2. <div class="gf-form">
  3. <h6>TLS/SSL Auth Details</h6>
  4. <info-popover mode="header">TLS/SSL certificates are encrypted and stored in the Grafana database.</info-popover>
  5. </div>
  6. <div ng-if="current.jsonData.tlsAuthWithCACert">
  7. <div class="gf-form-inline">
  8. <div class="gf-form gf-form--v-stretch"><label class="gf-form-label width-7">CA Cert</label></div>
  9. <div class="gf-form gf-form--grow" ng-if="!current.secureJsonFields.tlsCACert">
  10. <textarea
  11. rows="7"
  12. class="gf-form-input gf-form-textarea"
  13. ng-model="current.secureJsonData.tlsCACert"
  14. placeholder="Begins with -----BEGIN CERTIFICATE-----"
  15. ></textarea>
  16. </div>
  17. <div class="gf-form" ng-if="current.secureJsonFields.tlsCACert">
  18. <input type="text" class="gf-form-input max-width-12" disabled="disabled" value="configured" />
  19. <button
  20. type="reset"
  21. aria-label="Reset CA Cert"
  22. class="btn btn-secondary gf-form-btn"
  23. ng-click="current.secureJsonFields.tlsCACert = false"
  24. >
  25. reset
  26. </button>
  27. </div>
  28. </div>
  29. </div>
  30. <div ng-if="current.jsonData.tlsAuth">
  31. <div class="gf-form-inline">
  32. <div class="gf-form gf-form--v-stretch"><label class="gf-form-label width-7">Client Cert</label></div>
  33. <div class="gf-form gf-form--grow" ng-if="!current.secureJsonFields.tlsClientCert">
  34. <textarea
  35. rows="7"
  36. class="gf-form-input gf-form-textarea"
  37. ng-model="current.secureJsonData.tlsClientCert"
  38. placeholder="Begins with -----BEGIN CERTIFICATE-----"
  39. required
  40. ></textarea>
  41. </div>
  42. <div class="gf-form" ng-if="current.secureJsonFields.tlsClientCert">
  43. <input type="text" class="gf-form-input max-width-12" disabled="disabled" value="configured" />
  44. <button
  45. class="btn btn-secondary gf-form-btn"
  46. aria-label="Reset Client Cert"
  47. type="reset"
  48. ng-click="current.secureJsonFields.tlsClientCert = false"
  49. >
  50. reset
  51. </button>
  52. </div>
  53. </div>
  54. <div class="gf-form-inline">
  55. <div class="gf-form gf-form--v-stretch"><label class="gf-form-label width-7">Client Key</label></div>
  56. <div class="gf-form gf-form--grow" ng-if="!current.secureJsonFields.tlsClientKey">
  57. <textarea
  58. rows="7"
  59. class="gf-form-input gf-form-textarea"
  60. ng-model="current.secureJsonData.tlsClientKey"
  61. placeholder="Begins with -----BEGIN RSA PRIVATE KEY-----"
  62. required
  63. ></textarea>
  64. </div>
  65. <div class="gf-form" ng-if="current.secureJsonFields.tlsClientKey">
  66. <input type="text" class="gf-form-input max-width-12" disabled="disabled" value="configured" />
  67. <button
  68. class="btn btn-secondary gf-form-btn"
  69. type="reset"
  70. aria-label="Reset Client Key"
  71. ng-click="current.secureJsonFields.tlsClientKey = false"
  72. >
  73. reset
  74. </button>
  75. </div>
  76. </div>
  77. </div>
  78. </div>