Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File modified outside RPM breaks checksum test #51961

Closed
BenGig opened this issue Dec 2, 2019 · 2 comments
Closed

File modified outside RPM breaks checksum test #51961

BenGig opened this issue Dec 2, 2019 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Operations Team label for Operations Team

Comments

@BenGig
Copy link

BenGig commented Dec 2, 2019

Kibana version:
7.4.2

Server OS version:
RHEL 7.7

Original install method (e.g. download page, yum, from source, etc.):
yum install from official repo

Describe the bug:
The file

/usr/share/kibana/optimize/.babel_register_cache.json

is part of the RPM installation. During operation, this file is modified. Because it is not marked for modification, as ie. a configuration is, this breaks jobs verifiying the RPM checksums. Such jobs are part of company compliance checks, kibana servers pop up regularly showing as incompliant.

Steps to reproduce:

  1. Install kibana
  2. Run kibana
  3. Verify with rpm -Va | grep '^..5': only files marked with 'c' in the 2nd column are configuration files and allowed to be changed after installation:

Expected behavior:
Cache file should either not be included in RPM, not go to the installation directory but a cache dir, or marked as changeable in the RPM

Provide logs and/or server output (if relevant):

[root@kibanahost]# rpm -Va | grep '^..5'
S.5....T.  c /etc/aliases
S.5....T.  c /etc/elasticsearch/elasticsearch.yml
S.5....T.  c /etc/login.defs
S.5....T.  c /etc/sysctl.conf
S.5....T.  c /etc/os-release
S.5....T.  c /etc/ssh/sshd_config
S.5....T.  c /etc/sysconfig/authconfig
S.5....T.  c /etc/kibana/kibana.yml
S.5..UGT.    /usr/share/kibana/optimize/.babel_register_cache.json
SM5..UGT.  c /etc/logstash/logstash.yml
S.5....T.  c /etc/puppetlabs/puppet/puppet.conf
S.5....T.  c /etc/openldap/ldap.conf
S.5....T.  c /etc/rhsm/rhsm.conf```


@streamich streamich added bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Operations Team label for Operations Team triaged labels Dec 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@jbudz
Copy link
Member

jbudz commented Nov 3, 2020

babel/register was removed starting in 7.10 with #79379 so babel writes should no longer be a source. All writes should go to /var/lib/kibana from now on, lets reopen if there's any further issues.

@jbudz jbudz closed this as completed Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

4 participants