[jira] [Updated] (LENS-446) hide server params in /lensapi/session/params api
[ https://issues.apache.org/jira/browse/LENS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amareshwari Sriramadasu updated LENS-446: - Status: Patch Available (was: Open) > hide server params in /lensapi/session/params api > - > > Key: LENS-446 > URL: https://issues.apache.org/jira/browse/LENS-446 > Project: Apache Lens > Issue Type: Bug > Components: server >Reporter: Angad Singh >Assignee: Amareshwari Sriramadasu > Fix For: 2.4 > > Attachments: LENS-446.patch > > > Lens is even showing sensitive properties like lens.server.db.jdbc.user and > lens.server.db.jdbc.pass to the client. Server-side params should be hidden > from this api > api called: > {noformat} > http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E > {noformat} > sample output: > {noformat} > > hive.metastore.batch.retrieve.max=100 > > hive.metastore.batch.retrieve.table.partition.max=500 > > hive.metastore.client.connect.retry.delay=1 > hive.metastore.client.socket.timeout=20 > hive.metastore.connect.retries=5 > hive.metastore.failure.retries=3 > hive.metastore.uris=thrift://localhost:9083 > hive.server2.thrift.bind.host=localhost > hive.server2.thrift.port=1 > lens.client.dbname=default > lens.client.user.name=anonymous > lens.cube.query.disable.aggregate.resolver=false > lens.cube.query.disable.auto.join=false > lens.cube.query.fail.if.data.partial=true > lens.cube.query.promote.select.togroupby=true > lens.query.add.insert.overwrite=true > lens.query.enable.mail.notify=false > lens.query.enable.metrics.per.query=false > lens.query.enable.persistent.resultset=false > > lens.query.enable.persistent.resultset.indriver=true > > lens.query.hdfs.output.path=hdfsout > lens.query.output.charset.encoding=UTF-8 > > lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec > > lens.query.output.enable.compression=false > lens.query.output.file.extn=.csv > lens.query.output.write.footer=false > lens.query.output.write.header=false > > lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde > > > lens.query.result.parent.dir=file:///tmp/lensreports > > > lens.query.result.size.format.threshold=10737418240 > > lens.query.result.split.multiple=false > lens.query.result.split.multiple.maxrows=10 > lens.server.base.url=http://0.0.0.0:/lensapi > lens.server.db.driver.name=com.mysql.jdbc.Driver > lens.server.db.jdbc.pass={masked} > > lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens > > lens.server.db.jdbc.user={masked} > lens.server.db.validation.query=select 1 > > lens.server.drivers=org.apache.lens.driver.hive.HiveDriver > > > lens.session.aux.jars={masked} > > lens.session.cluster.user={masked} > lens.session.loggedin.user=anonymous > silent=off > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (LENS-446) hide server params in /lensapi/session/params api
[ https://issues.apache.org/jira/browse/LENS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amareshwari Sriramadasu updated LENS-446: - Attachment: LENS-446.patch Patch after review > hide server params in /lensapi/session/params api > - > > Key: LENS-446 > URL: https://issues.apache.org/jira/browse/LENS-446 > Project: Apache Lens > Issue Type: Bug > Components: server >Reporter: Angad Singh >Assignee: Amareshwari Sriramadasu > Fix For: 2.4 > > Attachments: LENS-446.patch > > > Lens is even showing sensitive properties like lens.server.db.jdbc.user and > lens.server.db.jdbc.pass to the client. Server-side params should be hidden > from this api > api called: > {noformat} > http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E > {noformat} > sample output: > {noformat} > > hive.metastore.batch.retrieve.max=100 > > hive.metastore.batch.retrieve.table.partition.max=500 > > hive.metastore.client.connect.retry.delay=1 > hive.metastore.client.socket.timeout=20 > hive.metastore.connect.retries=5 > hive.metastore.failure.retries=3 > hive.metastore.uris=thrift://localhost:9083 > hive.server2.thrift.bind.host=localhost > hive.server2.thrift.port=1 > lens.client.dbname=default > lens.client.user.name=anonymous > lens.cube.query.disable.aggregate.resolver=false > lens.cube.query.disable.auto.join=false > lens.cube.query.fail.if.data.partial=true > lens.cube.query.promote.select.togroupby=true > lens.query.add.insert.overwrite=true > lens.query.enable.mail.notify=false > lens.query.enable.metrics.per.query=false > lens.query.enable.persistent.resultset=false > > lens.query.enable.persistent.resultset.indriver=true > > lens.query.hdfs.output.path=hdfsout > lens.query.output.charset.encoding=UTF-8 > > lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec > > lens.query.output.enable.compression=false > lens.query.output.file.extn=.csv > lens.query.output.write.footer=false > lens.query.output.write.header=false > > lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde > > > lens.query.result.parent.dir=file:///tmp/lensreports > > > lens.query.result.size.format.threshold=10737418240 > > lens.query.result.split.multiple=false > lens.query.result.split.multiple.maxrows=10 > lens.server.base.url=http://0.0.0.0:/lensapi > lens.server.db.driver.name=com.mysql.jdbc.Driver > lens.server.db.jdbc.pass={masked} > > lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens > > lens.server.db.jdbc.user={masked} > lens.server.db.validation.query=select 1 > > lens.server.drivers=org.apache.lens.driver.hive.HiveDriver > > > lens.session.aux.jars={masked} > > lens.session.cluster.user={masked} > lens.session.loggedin.user=anonymous > silent=off > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (LENS-446) hide server params in /lensapi/session/params api
[ https://issues.apache.org/jira/browse/LENS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raju Bairishetti updated LENS-446: -- Assignee: Amareshwari Sriramadasu > hide server params in /lensapi/session/params api > - > > Key: LENS-446 > URL: https://issues.apache.org/jira/browse/LENS-446 > Project: Apache Lens > Issue Type: Bug > Components: server >Reporter: Angad Singh >Assignee: Amareshwari Sriramadasu > Fix For: 2.4 > > > Lens is even showing sensitive properties like lens.server.db.jdbc.user and > lens.server.db.jdbc.pass to the client. Server-side params should be hidden > from this api > api called: > {noformat} > http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E > {noformat} > sample output: > {noformat} > > hive.metastore.batch.retrieve.max=100 > > hive.metastore.batch.retrieve.table.partition.max=500 > > hive.metastore.client.connect.retry.delay=1 > hive.metastore.client.socket.timeout=20 > hive.metastore.connect.retries=5 > hive.metastore.failure.retries=3 > hive.metastore.uris=thrift://localhost:9083 > hive.server2.thrift.bind.host=localhost > hive.server2.thrift.port=1 > lens.client.dbname=default > lens.client.user.name=anonymous > lens.cube.query.disable.aggregate.resolver=false > lens.cube.query.disable.auto.join=false > lens.cube.query.fail.if.data.partial=true > lens.cube.query.promote.select.togroupby=true > lens.query.add.insert.overwrite=true > lens.query.enable.mail.notify=false > lens.query.enable.metrics.per.query=false > lens.query.enable.persistent.resultset=false > > lens.query.enable.persistent.resultset.indriver=true > > lens.query.hdfs.output.path=hdfsout > lens.query.output.charset.encoding=UTF-8 > > lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec > > lens.query.output.enable.compression=false > lens.query.output.file.extn=.csv > lens.query.output.write.footer=false > lens.query.output.write.header=false > > lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde > > > lens.query.result.parent.dir=file:///tmp/lensreports > > > lens.query.result.size.format.threshold=10737418240 > > lens.query.result.split.multiple=false > lens.query.result.split.multiple.maxrows=10 > lens.server.base.url=http://0.0.0.0:/lensapi > lens.server.db.driver.name=com.mysql.jdbc.Driver > lens.server.db.jdbc.pass={masked} > > lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens > > lens.server.db.jdbc.user={masked} > lens.server.db.validation.query=select 1 > > lens.server.drivers=org.apache.lens.driver.hive.HiveDriver > > > lens.session.aux.jars={masked} > > lens.session.cluster.user={masked} > lens.session.loggedin.user=anonymous > silent=off > > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)