mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
6898e720dd
* fix(security): harden proxy auth and default credentials * fix(security): address proxy and credential feedback
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
# Copyright 2024 RustFS Team
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
BIN=$1
|
|
VOLUME=$2
|
|
|
|
chmod +x $BIN
|
|
mkdir -p $VOLUME
|
|
|
|
export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug,iam=debug"
|
|
export RUST_BACKTRACE=full
|
|
export RUSTFS_ACCESS_KEY=rustfs-e2e-admin
|
|
export RUSTFS_SECRET_KEY=rustfs-e2e-secret
|
|
$BIN $VOLUME > /tmp/rustfs.log 2>&1 &
|
|
|
|
sleep 10
|
|
|
|
export AWS_ACCESS_KEY_ID=$RUSTFS_ACCESS_KEY
|
|
export AWS_SECRET_ACCESS_KEY=$RUSTFS_SECRET_KEY
|
|
export AWS_REGION=us-east-1
|
|
export AWS_ENDPOINT_URL=http://localhost:9000
|
|
export RUST_LOG="s3s_e2e=debug,s3s_test=info,s3s=debug"
|
|
export RUST_BACKTRACE=full
|
|
s3s-e2e
|
|
|
|
killall $BIN
|