Commit Graph

58 Commits

Author SHA1 Message Date
Harshavardhana
86ee1eea6d add code of conduct, contributing and security guidelines (#61) 2020-04-09 12:04:15 -07:00
Harshavardhana
adcbf61049 add support for mcs build to trim gopaths (#60)
also remove `version` sub-command as we don't
use this anymore, just use `mcs --version`
2020-04-09 11:29:49 -07:00
Alex
e197399441 Users-Group Update API (#49)
* Added structure to swagger

* Added updateUserGroups handlers

* Updated return definition for user groups.

* Logic rewrite

* Removed logs

* Added some tests to updateUserGroups

* lint fix

* Updated tests for the new API

* Lint

* Added comment about why we are setting this groups individually. & more lint fixes

* Updated tests page

* Added more tests & fixed comments for PR

* Lint utils file

* Fixed import orders

* Changed import order

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2020-04-08 17:38:18 -07:00
Lenin Alevski
ff2438a877 Logout endpoint (#47)
Delete in memory session when user logout from mcs

lint fixes

Click logout button triggers logout request

Clicking the actual logout button send the POST /logout request on mcs
UI

Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
2020-04-08 14:36:14 -05:00
César Nieto
c85067dfba UI remove setting access on make bucket (#46)
Remove CUSTOM option on access to set
2020-04-08 07:44:32 -07:00
Daniel Valdivia
b1df170d80 Change font to Lato (#48) 2020-04-07 17:31:26 -07:00
Daniel Valdivia
9566f6e579 Fix Groups Empty (#45) 2020-04-07 13:29:40 -07:00
Daniel Valdivia
12a682e9f6 Redirect to Login when not logged in. (#44) 2020-04-07 11:56:52 -07:00
César Nieto
e0bb098e47 mcs delete bucket event notification api (#36)
Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com>
2020-04-07 09:27:25 -07:00
Lenin Alevski
b390ce309a Reading policy as json string (#43)
addPolicy endpoint will read policies as json string, this to allow
s3 iam policy compatibility (uppercase in json attributes) and to be
consistent with other mcs apis, once https://github.com/minio/minio/pull/9181
is merged we can return a type struct{}

fix policies test to new refactor

goimports

more golint fixes
2020-04-06 19:10:10 -07:00
Alex
3dac86d3ce Implements remove user API (#42)
* Implementation of RemoveUser from madmin

* Added removeUser structure.

* Added removeUserResponse actions

* Added delete API to swagger

* Added tests to removeUser functions

* Removed extra space at EOF

* Changed context to be a parameter in admin_users functions

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2020-04-06 18:07:32 -07:00
Daniel Valdivia
2001ab6dae Logout on Unauthorized. Fix all UI warnings. (#35) 2020-04-06 16:35:30 -07:00
César Nieto
31f0655ff6 mcs add tests for groups and mock same function twice (#41) 2020-04-06 16:18:28 -07:00
César Nieto
775874cf86 update golangci-lint to v1.24 on github workflow (#40)
* update golangci-lint to v1.24 on github workflow

* fix lint errors
2020-04-06 16:04:18 -07:00
Lenin Alevski
9ca4daa906 TLS redirect enabled by default (#39)
When certificates are provided to mcs, tls direct will be
enabled by default (http://localhost -> https:localhost), you
can change this behavior by providing the `MCS_SECURE_SSL_REDIRECT=off`
env variable
2020-04-06 15:59:21 -07:00
Lenin Alevski
2318a8a82b disabling default tls redirect (#38)
Co-authored-by: César Nieto <ces.nietor@gmail.com>
2020-04-06 15:22:39 -07:00
Daniel Valdivia
69ed6f5ca4 Development md (#34)
* Introduce DEVELOPMENT.md

* Ignore *.orig files

Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com>
2020-04-06 14:22:27 -07:00
Lenin Alevski
3a96e6d7e7 Secure Middleware (#37)
adding secure middleware to enforce security headers, most
of the options can be configured via env variables

adding prefix for mcs env variables

adding http redirect to https, adding csp report only, etc

solving conflicts

passing tls port configured by cli to secure middleware

update go.sum

adding default port, tlsport, host and tlshostname

fix tlsport bug
2020-04-06 13:24:15 -07:00
Daniel Valdivia
9a2b10476c Updated README.md (#33) 2020-04-06 12:07:40 -07:00
Daniel Valdivia
c8938dc131 Fix Module (#32) 2020-04-06 11:58:34 -07:00
Daniel Valdivia
d57ec001f4 MinIO CLI and Releaser. (#31)
* MinIO CLI and Releaser.

* Fix goreleaser

* Build docker properly. tags for kqueue on mac

* Dockerfile for release

* Fix docker release
v0.0.1
2020-04-06 11:27:43 -07:00
Daniel Valdivia
b85c2c744d Small UI Tweaks (#30) 2020-04-06 12:32:10 -05:00
César Nieto
e33615a9f6 mcs make bucket api remove setting access policy (#29) 2020-04-06 09:59:19 -07:00
Alex
a749c4e3fd Improvements for Users / Groups selection lists. (#26)
* List improvements

* Prettier files

* made smaller tables for select users & select groups components. added sticky header & prettier files

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2020-04-03 19:51:32 -07:00
Daniel Valdivia
36602311fa UI: Dashboard (#24)
* UI: Dashboard

* h1 MinIO Console

* UI: Dashboard

* h1 MinIO Console

* Formatting

* paramter fix

Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com>
2020-04-03 15:46:42 -07:00
Lenin Alevski
1e4ed121e9 quick fix (#25) 2020-04-03 15:07:53 -07:00
Daniel Valdivia
c3c22fc77f UI: Add events to buckets (#22)
* UI: Add events to buckets

* Menu user icon

Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com>
2020-04-03 15:00:34 -07:00
Lenin Alevski
c6f7a5b995 [WIP] Policy editor & builder (#21)
* display policy info

* formatting json string
2020-04-03 14:47:20 -07:00
Daniel Valdivia
da2e9e8896 API: List ARNs (#19)
* API: List ARNs

* Add Tests
2020-04-03 14:27:47 -07:00
Alex
9c43c8894a Connected filter searchbox for groups, users & user creation groups (#20)
* Connected group selector list

* Added groups filtering for create user form

* connected groups input filter

* Connected users input

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2020-04-03 14:24:04 -07:00
Alex
fbd19f9fa9 Groups Panel (#17)
* Added groups router component

* Created groups page

* Updated table rows

* Added group add modal

* Connected to add group API

* Connected add Group & fixed missing props

* Added user selector component

* Added connection to users list

* Fixed persistent group issue

* Group get data fix

* Added status selector & connected edit form

* Connected delete modal

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
2020-04-03 13:42:59 -07:00
César Nieto
334b7ce671 mcs set basepath on swagger yaml (#16) 2020-04-03 13:17:31 -07:00
Daniel Valdivia
35877973a9 Admin Info API (#13)
* Admin Info API

* Address comments

* Fix tests
2020-04-02 20:15:39 -07:00
César Nieto
768c7c70a3 mcs add bucket event api using public mc S3Client struct (#15)
* mcs add bucket event api using public mc S3Client struct

* remove log

* remove replace repo on go.mod

* apply go mod tidy
2020-04-02 20:09:36 -07:00
Daniel Valdivia
c710aa32fc Use mc NewAdminFactory (#12)
* Use mc NewAdminFactory

* Updated go mod
2020-04-02 19:46:18 -07:00
Daniel Valdivia
3a8f1556af View Bucket Info (#11)
* View Bucket Info

* Fix makefile for portal-ui

* Static UI

* Remove Warning on View Bucket

* Address Comments
2020-04-02 19:40:26 -07:00
Alex
0da379dbb2 Groups list component creation (#14)
* Reconnected Users delete modal

* Fix API path

* Reconnected access name modal

* Fixed title issue

* Fixed reset state

* Added groups selectors list control component

* Change of edit form to not edit access key & access secret values

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
2020-04-02 18:23:40 -07:00
Lenin Alevski
cfa5fa9826 list policies screen (#9)
delete policy modal

add policy editor modal

uncommenting chart

removing comments from chart
2020-04-02 17:39:03 -07:00
Daniel Valdivia
e2ba32473b Check Session Endpoint (#10) 2020-04-02 15:54:34 -07:00
Daniel Valdivia
f80fb2e73f Update Copyright Headers (#8) 2020-04-02 12:51:51 -07:00
Daniel Valdivia
49c0cac62c Upgrade React (#5)
* Upgrade React

* remove unnecesary file

* Downgrade Recharts
2020-04-02 12:21:39 -07:00
Alex
50bba57481 Users list fixes (#7)
* Updated dependencies

* Imported changes from old repo for users reconnect

* Added add group buttons

* Removed console logs

* partial fix for total user issue

* Added sort to users list

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
2020-04-02 12:16:20 -07:00
Daniel Valdivia
2f922980f8 Generate Swagger with models.Principal (#6) 2020-04-02 12:06:52 -07:00
Alex
44c6c9f46a Users List & Creation (#4)
* Updated dependencies

* Imported changes from old repo for users reconnect

* Added add group buttons

* Removed console logs

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Daniel Valdivia <hola@danielvaldivia.com>
2020-04-02 11:36:37 -07:00
Daniel Valdivia
e2c95b5be1 Make swagger main stop being generated. Default Port 9090 (#3)
* Make swagger main stop being generated

* Update Readme

* Remove Warning
2020-04-02 11:31:48 -07:00
Daniel Valdivia
e0c5bc5553 Rename mcs-server to mcs (#2) 2020-04-02 10:21:09 -07:00
Lenin Alevski
161941d544 Profiling endpoints for mcs (#1)
start and stop profiling endpoints, test includes and many fixes for
policies

deleting duplicated file
2020-04-02 09:57:59 -07:00
Harshavardhana
ed3cda28ee update README.md to use mcs 2020-04-01 22:02:05 -07:00
Harshavardhana
48d0bdbf62 Add license file 2020-04-01 21:56:04 -07:00
Harshavardhana
c2aebb51f6 Rename NOTICE and generate as mcs 2020-04-01 21:54:57 -07:00