Repository navigation
server: add global setting consoleproxy.sslEnabled - #8809
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #8809 +/- ##
=========================================
Coverage 30.95% 30.96%
- Complexity 34336 34337 +1
=========================================
Files 5355 5355
Lines 376630 376631 +1
Branches 54807 54807
=========================================
+ Hits 116601 116625 +24
+ Misses 244688 244665 -23
Partials 15341 15341
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
|
||
| String consoleProxyUrlDomain = _configDao.getValue(Config.ConsoleProxyUrlDomain.key()); | ||
| String consoleProxySslEnabled = _configDao.getValue("consoleproxy.sslEnabled"); | ||
| String consoleProxySslEnabled = _configDao.getValue(ConsoleProxyManager.ConsoleProxySslEnabled.key()); |
There was a problem hiding this comment.
| String consoleProxySslEnabled = _configDao.getValue(ConsoleProxyManager.ConsoleProxySslEnabled.key()); | |
| String consoleProxySslEnabled = ConsoleProxyManager.ConsoleProxySslEnabled.value(); |
There was a problem hiding this comment.
@GutoVeronezi
this may not work as the _configDao is set in the constructor of the class.
protected AgentHookBase(VMInstanceDao instanceDao, HostDao hostDao, ConfigurationDao cfgDao, KeystoreManager ksMgr,
AgentManager agentMgr, KeysManager keysMgr, ConsoleAccessManager consoleAccessMgr) {
_instanceDao = instanceDao;
_hostDao = hostDao;
_agentMgr = agentMgr;
_configDao = cfgDao;
_ksMgr = ksMgr;
_keysMgr = keysMgr;
consoleAccessManager = consoleAccessMgr;
}
There was a problem hiding this comment.
If the class will have access to the DB, it should work, as the value() will query for the value (if the configDepot is configured).
There was a problem hiding this comment.
I did some debugging, it looks the values are the same.
2024-03-21T08:05:48,498 DEBUG [c.c.c.ConsoleProxyManagerImpl] (main:[]) (logid:) configs.get(ConsoleProxySslEnabled.key() = true
2024-03-21T08:05:48,502 DEBUG [c.c.c.ConsoleProxyManagerImpl] (main:[]) (logid:) ConsoleProxySslEnabled.value() = true
2024-03-21T08:06:02,499 DEBUG [c.c.c.C.VmBasedAgentHook] (AgentConnectTaskPool-4:[ctx-f64d74cc]) (logid:29169184) _configDao.getValue(ConsoleProxyManager.ConsoleProxySslEnabled.key()) = true
2024-03-21T08:06:02,499 DEBUG [c.c.c.C.VmBasedAgentHook] (AgentConnectTaskPool-4:[ctx-f64d74cc]) (logid:29169184) ConsoleProxySslEnabled.value() = true
however, I prefer not to change the code as the old/new codes basically get the same value from database.
The old code has been proved to be working. Some other values are fetched in the same way.
@GutoVeronezi
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 8986 |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8988 |
|
@blueorangutan package |
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9387 |
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9978)
|
|
@GutoVeronezi @hsato03 are all your concerns met here? |
hsato03
left a comment
There was a problem hiding this comment.
IMO, using ConsoleProxySslEnabled.value(); directly is better than using the config key to get the value. But lgtm.
Description
This PR adds global setting consoleproxy.sslEnabled
without this patch

with this patch

Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?