Skip to content
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

Merged
merged 6 commits into from
Apr 20, 2021
Merged

MVP #1

merged 6 commits into from
Apr 20, 2021

Conversation

LeonidVas
Copy link
Contributor

@LeonidVas LeonidVas commented Feb 11, 2021

The microservice can now upload rpm/deb packages to S3 using the "mkrepo" tool to generate metainformation.

Copy link
Member

@Totktonada Totktonada left a 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.

config.default Outdated Show resolved Hide resolved
config.default Outdated Show resolved Hide resolved
config.default Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
s3repo/model.py Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
s3repo/view.py Outdated Show resolved Hide resolved
config.default Outdated Show resolved Hide resolved
Copy link
Member

@Totktonada Totktonada left a 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.

helpers/auth_helper.py Outdated Show resolved Hide resolved
helpers/auth_helper.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
Switch to using a "mkrepo" from "pip" instead submodules.
@LeonidVas LeonidVas force-pushed the lvasiliev/MVP branch 2 times, most recently from 610f524 to 79fe22f Compare April 20, 2021 20:47
s3repo/package.py Outdated Show resolved Hide resolved
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants