Commit 08183c7
feat(installer): add SSL/HTTPS support to Observability install
Add --ssl-cert-file / --ssl-key-file to `obs install`, mirroring the
existing TestGen SSL flow. When both are provided, the cert+key are
bind-mounted into the UI container and SSL_CERT_FILE/SSL_KEY_FILE are set
so its nginx serves HTTPS; the printed service URLs switch to https. All
Observability service URLs are proxied through the UI nginx, so applying
TLS there covers every displayed endpoint.
Align the two products' SSL codepaths:
- Validate the cert/key arg pair in the compose step's pre_execute so a
mismatch fails fast in the validation phase (parity with TestGen),
rather than mid-install.
- Record the `used_custom_cert` analytics property as a bool on both
products; TestGen previously stored the key-file path string.
Add Observability SSL test coverage matching TestGen: arg-pair mismatch
aborts, compose contains the SSL env + bind mounts when enabled, and the
placeholders are stripped when disabled.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6be5e37 commit 08183c7
2 files changed
Lines changed: 91 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
| 1740 | + | |
1740 | 1741 | | |
1741 | 1742 | | |
1742 | | - | |
| 1743 | + | |
1743 | 1744 | | |
1744 | 1745 | | |
1745 | 1746 | | |
| |||
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1772 | 1779 | | |
1773 | 1780 | | |
1774 | 1781 | | |
1775 | 1782 | | |
1776 | 1783 | | |
1777 | 1784 | | |
1778 | 1785 | | |
| 1786 | + | |
1779 | 1787 | | |
1780 | 1788 | | |
1781 | 1789 | | |
| |||
1880 | 1888 | | |
1881 | 1889 | | |
1882 | 1890 | | |
| 1891 | + | |
1883 | 1892 | | |
1884 | 1893 | | |
1885 | 1894 | | |
1886 | 1895 | | |
1887 | 1896 | | |
1888 | 1897 | | |
| 1898 | + | |
1889 | 1899 | | |
1890 | 1900 | | |
1891 | 1901 | | |
| |||
1913 | 1923 | | |
1914 | 1924 | | |
1915 | 1925 | | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1916 | 1948 | | |
1917 | 1949 | | |
1918 | 1950 | | |
| |||
1967 | 1999 | | |
1968 | 2000 | | |
1969 | 2001 | | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
1970 | 2016 | | |
1971 | 2017 | | |
1972 | 2018 | | |
| |||
2219 | 2265 | | |
2220 | 2266 | | |
2221 | 2267 | | |
2222 | | - | |
| 2268 | + | |
2223 | 2269 | | |
2224 | 2270 | | |
2225 | 2271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
0 commit comments