Skip to content

[DO NO MERGE] Convert from PKCS#1 to PKCS#8 in Java code #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

mangalaman93
Copy link
Member

@mangalaman93 mangalaman93 commented Feb 17, 2020

docker-compose.yml

version: "3.5"
services:
  zero1:
    image: dgraph/dgraph:latest
    container_name: zero1
    working_dir: /data/zero1
    ports:
      - 5180:5180
      - 6180:6180
    labels:
      cluster: test
      service: zero
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
    command: /gobin/dgraph zero -o 100 --my=zero1:5180 --replicas 3 --idx 1 --logtostderr -v=2 --bindall --expose_trace --profile_mode block --block_rate 10

  zero2:
    image: dgraph/dgraph:latest
    container_name: zero2
    working_dir: /data/zero2
    depends_on:
      - zero1
    ports:
      - 5182:5182
      - 6182:6182
    labels:
      cluster: test
      service: zero
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
    command: /gobin/dgraph zero -o 102 --my=zero2:5182 --replicas 3 --idx 2 --logtostderr -v=2 --peer=zero1:5180

  zero3:
    image: dgraph/dgraph:latest
    container_name: zero3
    working_dir: /data/zero3
    depends_on:
      - zero2
    ports:
      - 5183:5183
      - 6183:6183
    labels:
      cluster: test
      service: zero
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
    command: /gobin/dgraph zero -o 103 --my=zero3:5183 --replicas 3 --idx 3 --logtostderr -v=2 --peer=zero1:5180

  alpha1:
    image: dgraph/dgraph:latest
    container_name: alpha1
    working_dir: /data/alpha1
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8180:8180
      - 9180:9180
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha1:7180 --lru_mb=1024 --zero=zero1:5180 -o 100 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16  --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

  alpha2:
    image: dgraph/dgraph:latest
    container_name: alpha2
    working_dir: /data/alpha2
    depends_on:
      - alpha1
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8182:8182
      - 9182:9182
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha2:7182 --lru_mb=1024 --zero=zero1:5180 -o 102 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

  alpha3:
    image: dgraph/dgraph:latest
    container_name: alpha3
    working_dir: /data/alpha3
    depends_on:
      - alpha2
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8183:8183
      - 9183:9183
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha3:7183 --lru_mb=1024 --zero=zero1:5180 -o 103 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

  alpha4:
    image: dgraph/dgraph:latest
    container_name: alpha4
    working_dir: /data/alpha4
    depends_on:
      - alpha3
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8184:8184
      - 9184:9184
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha4:7184 --lru_mb=1024 --zero=zero1:5180 -o 104 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

  alpha5:
    image: dgraph/dgraph:latest
    container_name: alpha5
    working_dir: /data/alpha5
    depends_on:
      - alpha4
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8185:8185
      - 9185:9185
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha5:7185 --lru_mb=1024 --zero=zero1:5180 -o 105 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

  alpha6:
    image: dgraph/dgraph:latest
    container_name: alpha6
    working_dir: /data/alpha6
    depends_on:
      - alpha5
    volumes:
      - type: bind
        source: $GOPATH/bin
        target: /gobin
        read_only: true
      - type: bind
        source: ../ee/acl/hmac-secret
        target: /dgraph-acl/hmac-secret
        read_only: true
      - type: bind
        source: ../ee/enc/enc-key
        target: /dgraph-enc/enc-key
        read_only: true
      - type: bind
        source: ./tls
        target: /dgraph-tls
        read_only: true
    ports:
      - 8186:8186
      - 9186:9186
    labels:
      cluster: test
      service: alpha
    command: /gobin/dgraph alpha --encryption_key_file "/dgraph-enc/enc-key" --my=alpha6:7186 --lru_mb=1024 --zero=zero1:5180 -o 106 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl_secret_file /dgraph-acl/hmac-secret --acl_access_ttl 3s --acl_cache_ttl 5s --tls_dir /dgraph-tls --tls_client_auth=REQUIREANDVERIFY 

This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2022

CLA assistant check
All committers have signed the CLA.

We depend on external libraries that we are not confident about yet
in order to do the conversion. Not sure, whether this is a good idea.
@mangalaman93 mangalaman93 requested a review from a team July 8, 2024 08:57
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link

This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Sep 17, 2024
@github-actions github-actions bot closed this Sep 24, 2024
@mangalaman93 mangalaman93 deleted the aman/tls_code branch December 6, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants