Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao committed Oct 7, 2024
1 parent 235ff0a commit 2319035
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Create test bucket and capture keys
run: |
mkdir -p data
output=$(cargo run --bin s3-sec create-bucket test 0 --ci)
output=$(cargo run --bin s3-sec create-bucket s3cmd 0 --ci)
echo "ACCESS_KEY=$(echo "$output" | sed -n '1p')" >> $GITHUB_ENV
echo "SECRET_KEY=$(echo "$output" | sed -n '2p')" >> $GITHUB_ENV
Expand Down
21 changes: 0 additions & 21 deletions scripts/gensec.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/bin/s3-sec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fn create_bucket(fs_root: PathBuf, bucket: String, owner_id: u64, ci: bool) -> R
jti: Uuid::new_v4().as_u128(),
exp: None,
origin: bucket.clone(),
roles: vec!["admin".to_string()],
roles: vec![format!("s3:ObjectGet,ObjectPut,ObjectDelete,ObjectList,BucketGet,BucketList,BucketCreate,BucketDelete:{}*:*", bucket)],
};

let token_key = generate_token_key();
Expand Down

0 comments on commit 2319035

Please sign in to comment.