Commit Graph

6 Commits

Author SHA1 Message Date
Rene Groeschke b8627079b4
Update Gradle Wrapper to 8.2 (#96686)
- Convention usage has been deprecated and was fixed in our build files
- Fix test dependencies and deprecation
2023-07-04 15:35:15 +02:00
Rene Groeschke 3909b5eaf9
Add verification metadata for dependencies (#88814)
Removing the custom dependency checksum functionality in favor of Gradle build-in dependency verification support. 

- Use sha256 in favor of sha1 as sha1 is not considered safe these days.

Closes https://github.com/elastic/elasticsearch/issues/69736
2022-08-04 09:51:16 +02:00
Ioannis Kakavas facec15e87
Upgrade jANSI dependency to 2.4.0 (#83566)
2.4.0 Introduces support for linux and macOS aarch64. Without this
we cannot detect whether a terminal is attached to elasticsearch
on macoOS/linux aarch64 and so we do not generate and print the
elastic password and enrollment token on startup
2022-02-07 11:44:37 +02:00
Albert Zaharovits 035fdd895d
Disable ANSI formatting for security autoconfiguration on Windows cmd line (#83326)
In order to display formatted (bolded) autoconfiguration text on
Windows cmd prompt using JANSI, one needs to invoke the
SetConsoleMode Kernel32 API, via JANSI's AnsiConsole#install.
But we lack the testing infra to properly assert the formatting behavior,
so this PR disables ANSI-formatted output on Windows cmd prompt.

Fixes: #83316
2022-01-31 16:36:02 +02:00
Albert Zaharovits 6687a28e4e
Display security auto-configuration with fancy unicode (#82740)
This PR slightly improves the format of the security auto-configuration
information that is printed on the terminal when the initial cluster
node first starts up.

It uses eye-catching Unicode characters for bullet points.
It also uses Unicode to display a continuous border, for the whole
width of the terminal, before and after the information. In addition,
it uses ANSI escape sequences to render some of the information
in bold fonts.

It will fallback to using regular characters if the JVM is set-up with
a non-UTF encoding for the standard out.
2022-01-25 11:00:37 +02:00
Tim Vernum 71c702263b
Check whether stdout is a real console (#79882)
Adds a new "ConsoleLoader" that uses jANSI in a separate classloader
to determine whether standard output is a real console (that is, not
redirected to a file or /dev/null, etc)

Also updates security auto-configuration to only print out credentials
when there is a console.
2021-10-28 14:06:33 +11:00