shawnzhu / artifacts-v2 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Now artifact server needs a single table in a PostgreSQL database. It can use the current PostgresSQL database in a Travis CI enterprise deployment or another new database.
/cc @meatballhat @joshk
follow up #12 (review)
I've made travis-build to provide an addon to enable travis-worker uploading artifacts into artifacts server via a JWT token. There're two options in my mind to expose artifacts meta info to travis-web
:
travis-api
like /api/jobs/<job-id>/artifacts
so Travis web can pick up artifacts meta info via existing authentication of travis-api
. Then the architecture design is, travis-api
will serve as gateway of artifacts server for all API traffic.travis-api
today to this artifacts server so that travis-web
can redirect user to artifacts server directly. Then the artifacture design is, artifacts-server needs to access Redis and/or Postgres database of Travis CI.@josh @meatballhat @rkh comments?
This may be required when repo or PR owner decide to remove an uploaded artifact file.
it would be ideal not to have to store https://github.com/shawnzhu/artifacts-v2/blob/master/model/artifact.go#L8
and instead construct the object key based on a pattern
this way we don’t tie any of the implementation to s3
Need to remove all artifacts uploaded before restarting
Follow-up of review comments of #10
the first was https://github.com/shawnzhu/artifacts-v2/blob/master/model/artifact.go#L6
this should be JobId instead of BuildId, as the artifacts will be mapped to jobs
Now I use HS256 where it uses a single shared key to sign and verify JWT token signature. it is simple but requires configuration option on both travis-ci/travis-build
and this feature.
Uses RS256 where it uses an RSA private key (available in the context of a Travis build) to sign JWT token, artifacts server will use RSA public key (available when querying Travis Postgres database) to verify JWT token signatures.
The implementation will be more work but no configuration required on neither travis-build
nor artifacts.
/cc @meatballhat
Just keep new meta info for an artifact file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.