-
Notifications
You must be signed in to change notification settings - Fork 2
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
MVP #1
MVP #1
Conversation
e5e4762
to
8b6ab9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions and thoughts to think around. Written mostly while scratching the head at first look at the code.
If we'll consider it as review, my opinion is the following. We should finish the following points right now, when our minds are here:
- Describe API in the README.
- Define and document guarantees (and describe what may going bad / where we have no guarantees).
- Describe possible corner cases and what to do if one of them occurs.
- Elaborate naming: the repository name and terms used in the code.
- Elaborate code layout (and how it supposed to evolve).
- Clarify further areas for improvements.
Everything else can be postponed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several comments re authentication.
Switch to using a "mkrepo" from "pip" instead submodules.
610f524
to
79fe22f
Compare
Add MVP of the RWS microservice designed to interact with the repository via HTTP. The microservice can now upload rpm/deb packages to S3 using the "mkrepo" tool to generate metainformation. Closes tarantool/tarantool#5494
For http requests authentication has been added. Credentials(in JSON format) can be set in two ways: - set in the config(section "credentials" in the section "common") - set using environment variable "SERVICE_CREDENTIALS" Example: ''' export SERVICE_CREDENTIALS='{"leo": "pbkdf2:sha256:150000$sovXBroE$c9653bf17752cb64d482706a00ad06e08525b55ae30a647dc69f533e08faf9a2"}' ''' To get a hash of the password (to add it to credentials) the following command can be used: ''' python3 -c "from werkzeug.security import generate_password_hash; print(generate_password_hash('password'))" '''
Add a requirements.txt file for the simplest installation of all dependencies.
79fe22f
to
08be75c
Compare
08be75c
to
ad77795
Compare
ad77795
to
f0a378d
Compare
The microservice can now upload rpm/deb packages to S3 using the "mkrepo" tool to generate metainformation.