Simon Kwok
Simon Kwok
hi @irvinezhao This [PR ](https://github.com/WeBankPartners/we-cmdb/pull/165) solved the error on my local. Could you please help to verify if it works for you as well before I raise it for merge?
按@nevinxie的comment实现的:本地鉴权,免密登录,默认启用。生产部署需要替换配置为 --cmdb.authentication-provider=CAS
cmdb日志只记录调用参数里有的信息,调用参数里缺失的信息是不会去query数据库的(AOP切面功能应尽量不影响主服务线程的性能)。这个逻辑之前跟@chaneyliu 讨论过,当时的结论是先这么做;如果现在重新检讨,那么解决这个问题有两个方案: A,在日志功能里根据ciTypeId去查一次db,获取ciTypeName,缺点是会让正常的业务流程多一步DB操作 B,修改接口,让接口多接收一个ciTypeName的参数,然后让调用者传过来,缺点是api的提供方(cmdb)和使用方(wecube)都需要同步改。
根因分析: 1)cmdb-8080和cmdb-28080,是部署在同一台机器下不同端口的应用,而且两个应用都使用了cookie来保存登录会话id(jsessionid),而cookie在同一个域名下不同端口的服务之间是共享的,参见[RFC 6265](https://tools.ietf.org/html/rfc6265): 8.5. Weak Confidentiality Cookies do not provide isolation by port. If a cookie is readable by a service running on one port, the cookie is also readable...