Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Add Data Out's keyserver to our setup #355

Merged
merged 7 commits into from
Sep 19, 2018
Merged

Conversation

dtitov
Copy link

@dtitov dtitov commented Sep 14, 2018

It can be enabled using flag --keyserver ega while bootstrapping.

@dtitov dtitov added this to the Sprint 36 milestone Sep 14, 2018
@dtitov dtitov self-assigned this Sep 14, 2018
@silverdaz
Copy link
Contributor

What does the data-out keyserver do that the data-in keyserver doesn't ?

- ./lega/pgp/ega.shared.pass:/etc/ega/pgp/ega.shared.pass:ro
restart: on-failure:3
external_links:
- cega-eureka:cega-eureka

Choose a reason for hiding this comment

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

if the profile is no-oss I assume it does not require cega-eureka ?

Copy link
Author

Choose a reason for hiding this comment

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

Good point. It really can be removed in this setup.

@blankdots
Copy link

blankdots commented Sep 17, 2018

@silverdaz

What does the data-out keyserver do that the data-in keyserver doesn't ?

We have been trying to align the APIs in EGA-archive/ega-data-api#4 however the data-in keyserver (in my understanding) cannot be used by the data-out (due to some missing endpoints/functionality), thus resulting in a setup where we would have two keyservers. With this PR we are exploring the option where we would have one keyserver, in a similar idea where we would have one database EGA-archive/ega-data-api#10

Another option is to match the functionality of the data-out keyserver in the data-in so that the implementations are interchangeable.

@nanjiangshu
Copy link

Hi @dtitov , I've tested with the ega keyserver and it works 👍 But it is not very straightforward to know where the flag "--keyserver ega" to be added before one look again at the Makefile. I would like to add

make "ARGS=--keyserver ega" bootstrap

to the document for bootstrapping if the ega keyserver is going to be used.

@dtitov
Copy link
Author

dtitov commented Sep 17, 2018

Thanks for testing, I'm glad that it works. I made a flag based on the existing flag for Inbox: --inbox min. But feel free to bring any changes.

@nanjiangshu
Copy link

I mean it is fine with the such flags but added explicitly in the README. I will add it. So probably you can approve and merge it?

Copy link

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

see comments. also all Integration tests should pass even the Makefile-based.

@@ -46,10 +50,10 @@ log = debug
#log = silent

[keyserver]
port = 8443
port = 8080

Choose a reason for hiding this comment

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

flag here as well: if [[ $KEYSERVER == 'ega' ]]; then

@silverdaz
Copy link
Contributor

I think the better approach is to update the current keyserver with the missing endpoints.

@jrambla
Copy link

jrambla commented Sep 17, 2018 via email

@blankdots
Copy link

@jrambla
This PR is part of a sprint goal we set (and agreed, for sprint 36): "Start stitching a general docker-compose for LocalEGA (Data Ingestion and Data API)" and it constitutes work towards achieving that goal.

Copy link

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

It would be nice to have the documentation attached to it, instead of doing it in another PR: #356

Copy link

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

Reviewed and ega data api keyserver can be used.
With this PR we are providing the option to bootstrap with it.
Not a subject of this PR, but worth mentioning:

  • Regarding the integration tests on travis, increasing sleep is not a good strategy. Waiting for the services to be up in the integration tests sounds like a more viable solution.*
  • ega-data-api keyserver should have a health endpoint

@blankdots blankdots merged commit be87db6 into dev Sep 19, 2018
@blankdots blankdots deleted the feature/data-out-keyserver branch September 19, 2018 08:27
viklund pushed a commit that referenced this pull request Nov 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants