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

[Nexus IQ server helm chart] configYaml is not working #284

Open
Freydiere opened this issue Feb 22, 2024 · 1 comment
Open

[Nexus IQ server helm chart] configYaml is not working #284

Freydiere opened this issue Feb 22, 2024 · 1 comment

Comments

@Freydiere
Copy link

Freydiere commented Feb 22, 2024

I might be mistaken, but it seems to me that modifying the configYaml field does not impact the installed chart. For example, here is an extract of my values.yaml file:

              configYaml:
                baseUrl: http://iq-server.demo
                createSampleData: true
                features:
                  enableUnauthenticatedPages: true
                initialAdminPassword: admin
                licenseFile: /etc/nexus-iq-license/license_lic
                logging:
                  appenders:
                  - logFormat: '%d{''yyyy-MM-dd HH:mm:ss,SSSZ''} %level [%thread] %X{username} %logger
                      - %msg%n'
                    threshold: INFO
                    type: console
                  - archivedFileCount: 50
                    archivedLogFilenamePattern: /var/log/nexus-iq-server/clm-server-%d.log.gz
                    currentLogFilename: /var/log/nexus-iq-server/clm-server.log
                    logFormat: '%d{''yyyy-MM-dd HH:mm:ss,SSSZ''} %level [%thread] %X{username} %logger
                      - %msg%n'
                    threshold: ALL
                    type: file
                  level: DEBUG
                  loggers:
                    com.sonatype.insight.audit:
                      appenders:
                      - archivedFileCount: 50
                        archivedLogFilenamePattern: /var/log/nexus-iq-server/audit-%d.log.gz
                        currentLogFilename: /var/log/nexus-iq-server/audit.log
                        type: file
                    com.sonatype.insight.policy.violation:
                      appenders:
                      - threshold: INFO
                        type: console
                    com.sonatype.insight.scan: INFO
                    eu.medsea.mimeutil.MimeUtil2: INFO
                    org.apache.http: INFO
                    org.apache.http.wire: ERROR
                    org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter: INFO
                    org.eclipse.birt.report.engine.layout.pdf.font.FontConfigReader: WARN
                    org.eclipse.jetty: INFO
                server:
                  adminConnectors:
                  - port: 8071
                    type: http
                  applicationConnectors:
                  - port: 8070
                    type: http
                  requestLog:
                    appenders:
                    - archivedFileCount: 50
                      archivedLogFilenamePattern: /var/log/nexus-iq-server/request-%d.log.gz
                      currentLogFilename: /var/log/nexus-iq-server/request.log
                      logFormat: '%clientHost %l %user [%date] "%requestURL" %statusCode %bytesSent
                        %elapsedTime "%header{User-Agent}"'
                      type: file
                sonatypeWork: /sonatype-work

This is the default config.yml file, except for the initialAdminPassword: here, the password is "admin" and not "admin123", yet after IQ is installed, I can't login with the credentials admin/admin, but the credentials admin/admin123 work.

It is interesting to note that the file /etc/nexus-iq-server/config.yml in the pod is indeed the one I provided (with the password "admin").

If I did something wrong, please explain me how I should proceed. Otherwise, it would be great if you could fix this issue.

@olwe0002
Copy link

olwe0002 commented Oct 25, 2024

I can confirm that the value of initialAdminPassword in config.yml is ignored with the current version 1.183.0, even on the first startup with an empty filesystem and database. And it's not documented for the current version, so I guess not existing any more: https://help.sonatype.com/en/config-yaml.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants