Skip to content

Commit

Permalink
Add depreciation notice to security tools (opensearch-project#1756)
Browse files Browse the repository at this point in the history
* Add deprecation notice to security tools

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied committed Apr 11, 2022
1 parent 60155f1 commit 0b53c88
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/audit_config_migrater.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@echo off
set SCRIPT_DIR=%~dp0

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

rem comparing to empty string makes this equivalent to bash -v check on env var
if not "%OPENSEARCH_JAVA_HOME%" == "" (
set BIN_PATH="%OPENSEARCH_JAVA_HOME%\bin\java.exe"
Expand Down
5 changes: 5 additions & 0 deletions tools/audit_config_migrater.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

SCRIPT_PATH="${BASH_SOURCE[0]}"
if ! [ -x "$(command -v realpath)" ]; then
if [ -L "$SCRIPT_PATH" ]; then
Expand Down
5 changes: 5 additions & 0 deletions tools/hash.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@echo off
set SCRIPT_DIR=%~dp0

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

rem comparing to empty string makes this equivalent to bash -v check on env var
if not "%OPENSEARCH_JAVA_HOME%" == "" (
set BIN_PATH="%OPENSEARCH_JAVA_HOME%\bin\java.exe"
Expand Down
5 changes: 5 additions & 0 deletions tools/hash.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

SCRIPT_PATH="${BASH_SOURCE[0]}"
if ! [ -x "$(command -v realpath)" ]; then
if [ -L "$SCRIPT_PATH" ]; then
Expand Down
5 changes: 5 additions & 0 deletions tools/install_demo_configuration.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash
#install_demo_configuration.sh [-y]

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

SCRIPT_PATH="${BASH_SOURCE[0]}"
if ! [ -x "$(command -v realpath)" ]; then
if [ -L "$SCRIPT_PATH" ]; then
Expand Down
5 changes: 5 additions & 0 deletions tools/securityadmin.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@echo off
set SCRIPT_DIR=%~dp0

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

rem comparing to empty string makes this equivalent to bash -v check on env var
if not "%OPENSEARCH_JAVA_HOME%" == "" (
set BIN_PATH="%OPENSEARCH_JAVA_HOME%\bin\java.exe"
Expand Down
6 changes: 6 additions & 0 deletions tools/securityadmin.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

echo "**************************************************************************"
echo "** This tool will be deprecated in the next major release of OpenSearch **"
echo "** https://github.com/opensearch-project/security/issues/1755 **"
echo "**************************************************************************"

SCRIPT_PATH="${BASH_SOURCE[0]}"
if ! [ -x "$(command -v realpath)" ]; then
if [ -L "$SCRIPT_PATH" ]; then
Expand Down

0 comments on commit 0b53c88

Please sign in to comment.