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

Dev #59

Merged
merged 317 commits into from
Jun 17, 2024
Merged

Dev #59

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
f1cba7e
issue-auth
smart--petea Dec 13, 2023
3ba9b90
issue-auth renamed client/mod.rs into client.rs
smart--petea Dec 13, 2023
33d9cd8
issue-auth working on src/routes/rating/add.rs
smart--petea Dec 13, 2023
ccd1340
issue-auth message product
smart--petea Dec 14, 2023
c8fca0b
issue-auth src/routes/rating/add.rs
smart--petea Dec 14, 2023
6ae6a48
default_network fix
Dec 15, 2023
3453c3e
issue-auth models into files
smart--petea Dec 16, 2023
dd202db
issue-auth postgres enum rate_category
smart--petea Dec 16, 2023
412d0da
issue-auth RateCategory enum saved in db
smart--petea Dec 16, 2023
ecf28fe
issue-auth stack get refactor
smart--petea Dec 17, 2023
e660098
issue-auth new command. updated
smart--petea Dec 18, 2023
9e4042a
issue-auth routes/stack/get.rs
smart--petea Dec 18, 2023
8fbf9d7
issue-auth routes/stack/add.rs
smart--petea Dec 18, 2023
985a1a5
issue-auth src/routes/stack/add.rs
smart--petea Dec 18, 2023
fa8f86e
issue-auth src/routes/stack/add.rs
smart--petea Dec 18, 2023
46aa43d
issue-auth src/routes/stack/add.rs
smart--petea Dec 18, 2023
295f36c
issue-auth client db. api
smart--petea Dec 20, 2023
7a3ca1a
issue-auth product db api
smart--petea Dec 20, 2023
da380cf
issue-auth rating db api
smart--petea Dec 20, 2023
0262171
issue-auth db::rating::fetch_by_obj_and_user_and_category
smart--petea Dec 21, 2023
a4998fc
issue-auth db::stack::fetch
smart--petea Dec 21, 2023
2e6f5e3
issue-auth db::stack::insert
smart--petea Dec 23, 2023
4f13c4c
issue-auth removed tracings
smart--petea Dec 23, 2023
a10eca7
issue-auth src/routes/stack.add.rs internal server error
smart--petea Dec 23, 2023
e569835
issue-auth check_if_stack_exists
smart--petea Dec 23, 2023
32b571d
issue-auth convert body to form
smart--petea Dec 23, 2023
0626be0
issue-auth body_to_form
smart--petea Dec 23, 2023
63fa86b
issue-auth json error path
smart--petea Dec 23, 2023
623e5dd
issue-auth removed comments
smart--petea Dec 23, 2023
a197ba5
issue-auth stack/compose.rs add
smart--petea Dec 23, 2023
335b62a
issue-auth compose.rs admin route
smart--petea Dec 23, 2023
6d6bc2e
issue-auth compose logic. optimized
smart--petea Dec 23, 2023
a77681c
issue-auth compose logic
smart--petea Dec 23, 2023
d584a68
issue-auth optimisation
smart--petea Dec 23, 2023
f44fbaa
Merge pull request #24 from trydirect/issue-auth
smart--petea Dec 24, 2023
874162b
issue-auth stack/deploy
smart--petea Dec 26, 2023
7ae0f1f
issue-auth stack/deploy
smart--petea Dec 26, 2023
36a8820
issue-auth src/routes/stack/deploy.rs
smart--petea Dec 27, 2023
d38f220
issue-auth src/routes/stack/deploy.rs
smart--petea Dec 27, 2023
1852cb6
issue-auth channel
smart--petea Dec 27, 2023
3383358
issue-auth RabbitMQ logic
smart--petea Dec 27, 2023
055988c
issue-auth pg_pool
smart--petea Dec 30, 2023
ace2c26
issue-auth db_pool renamed to pg_pool
smart--petea Dec 30, 2023
1d4fc96
issue-auth helpers::MqPool
smart--petea Dec 30, 2023
c6bf4a2
issue-auth mq_manager
smart--petea Dec 30, 2023
d870fca
issue-auth mq_manager::publish_and_confirm
smart--petea Dec 30, 2023
bf8cadc
issue-auth move to deadpool
smart--petea Dec 30, 2023
67c2f59
issue_auth mq_manager.create_channel
smart--petea Dec 30, 2023
9ad15f7
issue-auth mq_manager get_connection
smart--petea Dec 30, 2023
8d7e9a0
issue-auth tracing::instrument for DcBuilder::build
smart--petea Dec 31, 2023
ea374d7
issue-auth DcBuilder build()
smart--petea Dec 31, 2023
c806291
set main app in the stack - optional
Jan 3, 2024
fb7b132
issue-auth mq_manager. publish. Serialize
smart--petea Jan 6, 2024
6ddd62c
issue-auth DcBuilder stack. try from
smart--petea Jan 6, 2024
0c89366
issue-auth Option->Result for DcBuilder::build
smart--petea Jan 7, 2024
3bad20d
issue-auth StackForm::try_from
smart--petea Jan 7, 2024
27e66b9
issue-auth Networks::try_from
smart--petea Jan 7, 2024
3e01e87
issue-auth TryInto<Port>
smart--petea Jan 7, 2024
bddf56f
issue_auth stack_app
smart--petea Jan 8, 2024
b8334e4
issue-auth Volume::is_named_docker
smart--petea Jan 10, 2024
ea055cc
issue-auth forms::stack
smart--petea Jan 11, 2024
11e315a
issue-auth dctypes
smart--petea Jan 12, 2024
58ec7c9
issue-auth dctypes
smart--petea Jan 13, 2024
69f8fe8
incomplete dockerhub image validation
Jan 13, 2024
37f8d7a
issue-auth dctypes
smart--petea Jan 13, 2024
c95fe1f
issue-auth dctypes
smart--petea Jan 14, 2024
2cb0723
environment variables structure is changed, service _id type is chang…
Jan 15, 2024
6731fdf
remove configuration.yaml from repo
Jan 15, 2024
27b2eda
remove configuration.yaml from repo
Jan 15, 2024
e00f4ed
remove configuration.yaml from repo
Jan 15, 2024
81647e7
remove configuration.yaml from repo
Jan 15, 2024
7d8e21c
issue-auth merge with dev
smart--petea Jan 15, 2024
c2fe4ae
Merge pull request #27 from trydirect/issue-auth
smart--petea Jan 15, 2024
9d4f499
issue-auth dctypes removed
smart--petea Jan 15, 2024
2385276
Merge branch 'dev' into issue-auth
smart--petea Jan 16, 2024
362cb14
issue-auth volumes
smart--petea Jan 16, 2024
3dfe453
issue-auth forms::stack::volume
smart--petea Jan 16, 2024
7f69bc8
container_port is required
Jan 17, 2024
0431e3f
issue-auth try_into for reference
smart--petea Jan 17, 2024
5c2eb32
issue-auth forms/stack split
smart--petea Jan 17, 2024
2952f3b
issue-auth builder_config
smart--petea Jan 17, 2024
d557aa3
broken, dockerhub validator
Jan 17, 2024
fd4f77b
default_network name fix
Jan 18, 2024
b5d6de7
request to hub.docker.com
Jan 18, 2024
4770f2f
yet ugly but working validation
Jan 19, 2024
0e93e1f
issue-auth removed compressor
smart--petea Jan 19, 2024
1f0449a
issue-auth stack/update refactor
smart--petea Jan 20, 2024
05c9cc2
dockerhub functionality refactoring
Jan 21, 2024
6fa70cf
validate public/private repos
Jan 22, 2024
b954bd6
install ca-certificates, fix external https call
Jan 22, 2024
745e57b
host port conditional validation, variant 1
Jan 23, 2024
1ed72db
issue-auth working on casbin
smart--petea Jan 23, 2024
1833e8f
test fixes
Jan 24, 2024
3286ae5
restart policy fix
Jan 24, 2024
1045db8
issue-auth casbin.1
smart--petea Jan 27, 2024
a7b5f1a
issue-auth access_manager
smart--petea Jan 28, 2024
94fbd7b
issue-auth casbin_rule migration
smart--petea Jan 28, 2024
7348383
issue-auth casbin adapter
smart--petea Jan 29, 2024
30fa18b
stack form fields change, network id is added, replace net name with …
Jan 30, 2024
87db191
issue-auth casbin
smart--petea Jan 30, 2024
8e67dca
default_network is already created by an ansible role on TD side and …
Feb 1, 2024
5e150d3
tests json sample data
Feb 4, 2024
2994b04
tests json sample data
Feb 4, 2024
1ef6c78
Merge branch 'issue-auth' into merge-dev
Feb 4, 2024
7b72d0f
local merge
Feb 4, 2024
30f82db
Merge branch 'issue-auth' into merge-dev
Feb 4, 2024
05f0aef
local merge
Feb 4, 2024
769f5a3
30-access-policies app domain
smart--petea Feb 5, 2024
4d39ea5
30-access-policies sqlx-adapter. new version
smart--petea Feb 10, 2024
c53bcb7
30-access-policies
smart--petea Feb 14, 2024
ff82dbf
30-access-policies replace crate::routes::xxx with routes::xx
smart--petea Feb 17, 2024
7e575c6
30-access-policies authorization manager
smart--petea Feb 17, 2024
eae0116
30-access-polices - Authorization/Authentication manager
smart--petea Feb 17, 2024
e4ad08a
30-access-policies get_header
smart--petea Feb 17, 2024
be13d2a
30-access-policies app authorization
smart--petea Feb 17, 2024
be1cb81
30-access-policies two authentication managers in one bowl
smart--petea Feb 17, 2024
f0e3df5
30-access-policies authorization.rs
smart--petea Feb 18, 2024
626baec
30-access-policies
smart--petea Feb 18, 2024
32b4bb6
merging issue-16 and dev in progress..
Feb 19, 2024
1820776
30-access-policies refactor
smart--petea Feb 19, 2024
5330ad9
30-access-policies anonym logic separated
smart--petea Feb 20, 2024
44c28ef
30-access-policies removed http authentication
smart--petea Feb 20, 2024
0e5901d
30-access-policies Bearer token extract logic
smart--petea Feb 20, 2024
35815f6
30-access-policies user_fetch improved
smart--petea Feb 21, 2024
e7661b2
refactoring 70%
Feb 24, 2024
f2fa00e
refactoring ~75%, code compiles
Feb 24, 2024
1cc2562
delete extra file
Feb 25, 2024
6cd46bc
new fixes from issue-16
Feb 25, 2024
b557405
brotli compressor from issue-16
Feb 25, 2024
c9b25fc
validate
Feb 25, 2024
bca14b9
validate
Feb 25, 2024
de24ab9
validate_non_empty added
Feb 25, 2024
5bfda15
TryInto<dctypes::Port> fix
Feb 25, 2024
40cfee2
field main is removed
Feb 25, 2024
d34603a
Merge pull request #32 from trydirect/merge-dev
vsilent Feb 25, 2024
4f31021
DockerImage fmt logic from issue-16
Feb 28, 2024
441549c
custom role for any custom stack
Feb 28, 2024
60520ee
30-access-polices merge with dev
smart--petea Feb 28, 2024
046425c
30-access-policies
smart--petea Feb 28, 2024
5a51084
refactoring. renamed user_stack with project, cloud and server endpoins
Feb 29, 2024
0b5f050
fix Dockerfile, add casbin config, delete dctypes files use requirement
Feb 29, 2024
96c84b6
form updates
Feb 29, 2024
10d7275
form field refactoring, servers_count removed
Mar 1, 2024
47eac8f
30-access-policies admin enable client
smart--petea Mar 1, 2024
b9e6284
30-access-policies client admin
smart--petea Mar 2, 2024
de85d4b
30-access-policies removed src/routes/stack/service.rs
smart--petea Mar 2, 2024
618c30e
30-access-policies owner logic for POST /stack/:id
smart--petea Mar 2, 2024
b599b98
30-access-policies admin, GET /stack/:id
smart--petea Mar 2, 2024
15b890b
30-access-policies GET /stack, GET /admin/stack/user/:id
smart--petea Mar 3, 2024
9f92af2
delete action for project/cloud/server, require review and optimizati…
Mar 4, 2024
aca9fdc
form fields fix for server/cloud
Mar 4, 2024
98b5a7d
30-access-policies /stack/:id/deploy
smart--petea Mar 4, 2024
a193104
Merge pull request #36 from trydirect/30-access-policies
smart--petea Mar 4, 2024
4c152e9
cloud update testing
Mar 4, 2024
4cc5471
project update fix, request_json updates, body_into_form moved to form
Mar 6, 2024
b46620a
icon attrs
Mar 6, 2024
5fad9d9
30-access-polices working on the general JsonConfig
smart--petea Mar 8, 2024
810bb6a
30-access-polices json errors
smart--petea Mar 10, 2024
a83071a
30-access-policies json message for errors
smart--petea Mar 11, 2024
b402c83
30-access-policies json debug command. sketch
smart--petea Mar 11, 2024
2cf6a75
payload fix for deploy command
Mar 12, 2024
d708f82
30-access-policies read payload from file
smart--petea Mar 13, 2024
fd47bfc
30-access-policies - json debug command
smart--petea Mar 15, 2024
d89fb33
deploy function re-factoring, rabbitmq listener non-functional yet
Mar 15, 2024
0cf6105
mq listener, added futures_lite::stream::StraemExt
Mar 17, 2024
d5d5a76
merge issue-33 to dev
Mar 17, 2024
9450ef4
slight refactoring, deref() for subforms
Mar 17, 2024
f665d5d
mq listener, read queue and update status
Mar 20, 2024
d4d21b4
mq listener, read queue and update status
Mar 20, 2024
dc6c54f
fix warnings
Mar 20, 2024
3e367ee
fix restart policy for service
Mar 20, 2024
858ab0e
import fixes
Mar 21, 2024
3bdf56c
30 merge with dev
smart--petea Mar 21, 2024
d68bc5e
30-access-policies
smart--petea Mar 21, 2024
2f0507d
reconfigure rabbitmq queue
Mar 22, 2024
b1295b8
docker image tag validation fix
Mar 22, 2024
70cbfaf
30-access-policies
smart--petea Mar 22, 2024
db44167
30-access-policies project add
smart--petea Mar 23, 2024
63888bd
30-access-policies POST /project
smart--petea Mar 23, 2024
1637f6f
30-access-policies POST/PUT /project
smart--petea Mar 23, 2024
304f54b
30-access-policies admin get project
smart--petea Mar 23, 2024
c00e093
30-access-policies admin routes grouped
smart--petea Mar 23, 2024
0bc8e23
Merge pull request #40 from trydirect/30-access-policies
vsilent Mar 24, 2024
11c1397
Merge branch 'dev' of https://github.com/trydirect/stacker into dev
Mar 24, 2024
f53197a
merge dev into issue-33
Mar 24, 2024
5522fa8
Merge pull request #41 from trydirect/issue-33
vsilent Mar 24, 2024
4040014
Merge branch 'dev' of https://github.com/trydirect/stacker into dev
Mar 24, 2024
a720a03
casbin-debug command
smart--petea Mar 26, 2024
ba20592
casbin-debug casbin main logic
smart--petea Mar 26, 2024
7dde117
security for db records, initial steps, key is hardcoded for testing …
Mar 27, 2024
ac8ebd5
secure all other cloud cred fields
Mar 27, 2024
298bd0a
little of optimization, get rid of duplcates
Mar 27, 2024
9246620
reduce repetition and improving readability
Mar 27, 2024
6e46901
reduce repetition and improving readability
Mar 27, 2024
62ce2d8
user project list
Mar 27, 2024
d1f40b7
redis creds to .env
Mar 27, 2024
330732d
fix unwrap_or redis creds to .env
Mar 27, 2024
8edd783
casbin-debug policies
smart--petea Mar 27, 2024
71edb3a
casbin-debug print all rules
smart--petea Mar 28, 2024
82a9e1f
server updates
Mar 30, 2024
75d2c4d
Check casbin rule command, readme
Mar 30, 2024
865882d
enable casbin, use security key from env
Mar 30, 2024
4583964
initial casbin rules
Apr 1, 2024
3e50dcb
initial casbin rules
Apr 1, 2024
820f522
remove project_id from cloud, as cloud keys can be use across projects
Apr 1, 2024
0576773
fix warnings, return app id from docker image validator
Apr 2, 2024
28a8e58
casbin-debug explain features
smart--petea Apr 2, 2024
4478b71
Merge branch 'casbin-debug' of github.com:trydirect/stacker into casb…
smart--petea Apr 2, 2024
57c7671
casbin-debug
smart--petea Apr 3, 2024
d52877e
casbin-debug
smart--petea Apr 4, 2024
41b1ca6
unfinished tag fix
Apr 7, 2024
4bae859
casbin-debug command
smart--petea Apr 7, 2024
8b0058c
Merge pull request #46 from trydirect/casbin-debug
smart--petea Apr 7, 2024
b943f4c
from to try_from, repo name format error fix
Apr 8, 2024
869ce54
remove extra structure
Apr 10, 2024
83b9079
47
smart--petea Apr 11, 2024
1574404
social field should be optional
Apr 12, 2024
b7b3db5
cleanup
Apr 12, 2024
efb590c
Merge branch 'dev' of https://github.com/trydirect/stacker into dev
Apr 12, 2024
737ac4f
merge 43-secure-cloud-tokens
Apr 12, 2024
dba85f8
47 validate rating when added
smart--petea Apr 12, 2024
2c189c9
47 casbin rule for user edit rating
smart--petea Apr 12, 2024
ef67676
47 edit rating logic
smart--petea Apr 12, 2024
dbe6b9a
47 show only visible
smart--petea Apr 12, 2024
4758398
47 anonymous_get visible
smart--petea Apr 12, 2024
1390f70
47 admin_get_rating
smart--petea Apr 12, 2024
842df59
47 admin_list_handler, transaction
smart--petea Apr 12, 2024
9b130dd
47 user delete rating. partially
smart--petea Apr 12, 2024
72ce432
47 user delete rating
smart--petea Apr 13, 2024
e2c07b8
47 rating admin edit handler
smart--petea Apr 13, 2024
5255b65
47 delete rating by admin
smart--petea Apr 13, 2024
7696fe7
Merge branch 'dev' into 47-delete-endpoints
smart--petea Apr 13, 2024
592ef6f
Merge pull request #53 from trydirect/47-delete-endpoints
smart--petea Apr 13, 2024
fa1b3f8
#54 dockerhub command
smart--petea Apr 17, 2024
8fa9b9b
54 is_active. mut removed
smart--petea Apr 19, 2024
326619f
54
smart--petea Apr 19, 2024
67b8538
54 is_active with tokio::select!
smart--petea Apr 20, 2024
8bb3a99
54 login logic
smart--petea Apr 20, 2024
bab76d0
54 tracing
smart--petea Apr 22, 2024
5992f02
54 fixed test
smart--petea Apr 24, 2024
1d20fdf
Merge pull request #56 from trydirect/54-parallel-dockerhub-requests
smart--petea Apr 24, 2024
a59e8a2
57 rating output in dependence of user's status
smart--petea Apr 26, 2024
d19c9e9
57 model Rating. fully removed serialize
smart--petea Apr 27, 2024
63e8b2f
Merge pull request #58 from trydirect/57-conditional-rating-serializa…
vsilent Apr 28, 2024
fd1169f
Merge branch 'dev' of https://github.com/trydirect/stacker into dev
Apr 28, 2024
2fc2214
check public repo fix
Apr 28, 2024
8eeddc4
add 'command' instruction to docker-compose generator
Jun 13, 2024
ff73f07
Merge branch 'main' into dev
vsilent Jun 15, 2024
bf0181a
docker compose 'command' added when non empty, vendor public repo che…
Jun 17, 2024
9ae0d76
Merge branch 'dev' of https://github.com/trydirect/stacker into dev
Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
7 changes: 6 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#BUILDKIT_PROGRESS=plain
#DOCKER_BUILDKIT=1
DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/stacker
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=stacker
POSTGRES_PORT=5432
POSTGRES_PORT=5432
SECURITY_KEY=SECURITY_KEY_SHOULD_BE_OF_LEN_32

REDIS_URL=redis://127.0.0.1/
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
target
.idea
.idea/
files
access_control.conf
configuration.yaml
configuration.yaml.backup
configuration.yaml.orig
12 changes: 0 additions & 12 deletions .idea/dataSources.xml

This file was deleted.

7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/gitguardian/ggshield
rev: v1.28.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]
Loading
Loading