Skip to main content

Privacera Documentation

Connect MinIO to Privacera Platform using the Data Access Server

You can connect MinIO to Privacera Platform using the Data Access Server.

Install MinIO

  1. SSH to the EC2 instance.

  2. Create the download directory.

    sudo su mkdir -p /tmp/downloads 
    cd /tmp/downloads
  3. Download the MinIO install script.

    wget https://privacera.s3.amazonaws.com/public/run_minio.sh -O run_minio.sh
  4. Run the following script.

    chmod a+x run_minio.sh 
    ./run_minio.sh
  5. Check the MinIO docker service.

    docker ps | grep minio
  6. Stop running as the sudo user.

    exit

Configure AWS CLI to connect MinIO

  1. Run the following commands in the node where aws cli is installed.

     aws configure
     AWS Access Key ID: ${MINIO_ACCESS_KEY}
     AWS Secret Access Key: ${MINIO_SECRET_KEY}
     #this can be configured as per the region your want to use
     Default region name: us-east-1
     Default output format: json
  2. List the MinIO buckets.

    aws s3 ls s3:///

Configure data access server to connect MinIO

  1. Open the Data Access Server properties file.

     vi ~/privacera/docker/dataserver/conf/privacera_dataserver.properties
  2. Set the following properties:

    • dataserver.cloud.provider=AWS

    • dataserver.aws.services=s3

    • dataserver2s3.apiKey=${MINIO_ACCESS_KEY}

    • dataserver2s3.secretKey=${MINIO_SECRET_KEY}

    • Server host and port properties:

      • dataserver.v2.s3.endpoint.enable=true

      • dataserver.v2.s3.endpoint.host=${MINIO_SERVER_IP}

      • dataserver.v2.s3.endpoint.port=${MINIO_SERVER_PORT}

      • dataserver.v2.s3.endpoint.ssl= {set to true, if ssl enabled in minio server}

  3. Save the properties file and restart the Data Access Server.

     cd ~/privacera/docker
     ./privacera_services restart dataserver

Configure Privacera AWS CLI to connect MinIO via data access server

  1. Get the Privacera access, secret keys from Privacera Platform portal.

  2. Download privacera_aws.sh.

  3. Configure privacera token.

    ./privacera_aws.sh --config-token
  4. Enable proxy mode.

    . ~/privacera_aws.sh --enable-proxy
  5. Check the status.

    . ~/privacera_aws.sh --status
  6. List MinIO buckets.

    aws s3 ls s3:///
  7. Test endpoint mode, to enable endpoint mode.

    . ~/privacera_aws.sh --enable-endpoint
  8. List MinIO buckets.

    aws s3 ls s3:/// --endpoint-url ${DATSERVER_HOST}:${DATASERVER_PORT}
  9. Configure Privacera Portal to connect to MinIO via Data Access Server.