diff --git a/README.md b/README.md
index ddf7a1f..a08fc3d 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ Build with [Angular](https://angular.io) and [mdbootstrap](https://mdbootstrap.c
### Web UI abilities:
| Kind | Create | List | Update | Delete |
|--------------|:-----------------------|:-----------:|:-----------:|:-----------:|
-| Bucket | V | V | add/remove events, change lifecycle, manage quota, tags, policy | V |
+| Bucket | V | V | add/remove events, change lifecycle, manage quota, tags, policy, encryption | V |
| User | V | V | update password, change policy | V |
| Policy | V | V | V | V |
| Group | V | V | add users to group, remove users, change policy | only if group is empty (has no members) |
@@ -57,7 +57,7 @@ In real life cases you'll need to change this environment variables at `` Docker
If you run multiple instances of [adminio-api](https://github.com/rzrbld/adminio-api) you can set `` ADMINIO_MULTI_BACKEND `` to ``true`` and fill `` ADMINIO_BACKENDS `` example with needed urls and names. Please note - in this case you still need points ``API_BASE_URL`` to one of this instances. And then build a docker image.
#### Kubernetes/OpenShift/OKD/OCP
-go to [Helm carts](https://github.com/rzrbld/adminio-helm) repo
+go to [Helm chart](https://github.com/rzrbld/adminio-helm) repo
#### npm build
Method that described above also works if you build with `` npm run build ``.
diff --git a/docker-compose.yml b/docker-compose.yml
index 2e6ba2b..a546dbd 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,7 @@
version: '3'
services:
minio:
- image: minio/minio:RELEASE.2020-11-13T20-10-18Z
+ image: minio/minio:RELEASE.2020-11-25T22-36-25Z
ports:
- "9000:9000"
environment:
@@ -9,7 +9,7 @@ services:
MINIO_SECRET_KEY: testtest123
command: server /data0 /data1 /data2 /data3
adminio-ui:
- image: rzrbld/adminio-ui:release-1.5
+ image: rzrbld/adminio-ui:release-1.6
environment:
API_BASE_URL: "http://localhost:8080"
ADMINIO_MULTI_BACKEND: "false"
@@ -18,11 +18,12 @@ services:
ports:
- "80:80"
adminio-api:
- image: rzrbld/adminio-api:release-1.5
+ image: rzrbld/adminio-api:release-1.6
environment:
MINIO_ACCESS: test
MINIO_SECRET: testtest123
MINIO_HOST_PORT: minio:9000
+ MINIO_SSE_MASTER_KEY: 1:da2f4cfa32bed76507dcd44b42872328a8e14f25cd2a1ec0fb85d299a192a447
ADMINIO_HOST_PORT: :8080
depends_on:
- minio
diff --git a/src/app/api.service.ts b/src/app/api.service.ts
index 7f8f333..0feed5c 100644
--- a/src/app/api.service.ts
+++ b/src/app/api.service.ts
@@ -318,7 +318,6 @@ export class ApiService {
return this.httpClient.post(this.baseUrl+'/api/v2/bucket/set-policy', form);
}
-
public getBucketPolicy(bucketName){
let form = new FormData();
@@ -327,4 +326,31 @@ export class ApiService {
return this.httpClient.post(this.baseUrl+'/api/v2/bucket/get-policy', form);
}
+ public getBucketEncryption(bucketName){
+ let form = new FormData();
+
+ form.append('bucketName', bucketName);
+
+ return this.httpClient.post(this.baseUrl+'/api/v2/bucket/get-encryption', form);
+ }
+
+ public setBucketEncryption(bucketName, encType, encMasterKeyID){
+ let form = new FormData();
+
+ form.append('bucketName', bucketName);
+ form.append('bucketEncryptionType', encType);
+ form.append('kmsMasterKey', encMasterKeyID);
+
+ return this.httpClient.post(this.baseUrl+'/api/v2/bucket/set-encryption', form);
+ }
+
+ public removeBucketEncryption(bucketName){
+ let form = new FormData();
+
+ form.append('bucketName', bucketName);
+
+ return this.httpClient.post(this.baseUrl+'/api/v2/bucket/remove-encryption', form);
+ }
+
+
}
diff --git a/src/app/app.component.html b/src/app/app.component.html
index ecba29a..53bd93e 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -70,7 +70,7 @@
= mdbTablePagination.firstItemIndex && i < mdbTablePagination.lastItemIndex">
{{buckets[b].name}}
+ {{buckets[b].policy}}
= mdbTablePagination.firstItemIndex && i < mdbTablePagination.lastItemIndex">
@@ -94,11 +95,12 @@
Buckets
= mdbTablePagination.firstItemIndex && i < mdbTablePagination.lastItemIndex">
-
+
+
@@ -130,8 +132,8 @@
Bucket Lifecycyle
- This bucket already have a lifecycyle policy, you can dowload it by clicking on "dowload icon" >
-
+ This bucket already have a lifecycyle policy, you can export it as JSON by clicking on "dowload icon" >
+
Or override it by upload a new lifecycle policy.
@@ -192,7 +194,7 @@
Remove Bucket
Remove Bucket Notifications
- Are you shure? After you click on "remove" button bucket {{bucketToDelete}} notifications will be removed.
+ Are you shure? After you click on "remove" button bucket {{bucketToRemoveNotifications}} notifications will be removed.
- Are you shure? After you click on "remove" button quota for bucket {{bucketToDelete}} will be removed.
+ Are you shure? After you click on "remove" button quota for bucket {{bucketToRemoveQuota}} will be removed.
+
+
+
+
+
+
+
+
Remove Encryption
+
+
+ Are you shure? After you click on "remove" button encryption for bucket {{bucketToRemoveEncryption}} will be removed.
+