Skip to content

[BUGFIX] (webida/webida-client#683) fix ACL bug#137

Merged
gotchazipc merged 5 commits intowebida:masterfrom
kyungmi:master
Nov 16, 2015
Merged

[BUGFIX] (webida/webida-client#683) fix ACL bug#137
gotchazipc merged 5 commits intowebida:masterfrom
kyungmi:master

Conversation

@kyungmi
Copy link
Contributor

@kyungmi kyungmi commented Nov 12, 2015

[BUGFIX] fix ACL bug

[DESC.]

  • Access control had no meaning because of SQL misusing.
  • Putting number 0 in 'IN' statement makes unsuspected result(getting almost all rows that has a field filled with a string value in result).

[TASK] remove useless dependencies

[BUGFIX] assign more safe, detailed default auth policy to users

[DESC.]

  • provide more specific, limited auth policy for a user
  • check authorization on more specific resource on auth server
  • clean up duplications on code

[DB Migration]
And you SHOULD apply below SQL for migration.

update mem_policy p
inner join mem_user u on u.user_id = p.owner_id
set p.resource = concat('["auth:', p.owner_id , '"]')
where u.type = 0
and p.name = 'defaultAuth';

[DESC.]
- Access control had no meaning because of SQL misusing.
- Putting number 0 in 'IN' statement makes unsuspected result(getting almost all rows that has a field filled with a string value in result).
@kyungmi kyungmi added this to the webida v 1.6.0 milestone Nov 12, 2015
@kyungmi
Copy link
Contributor Author

kyungmi commented Nov 12, 2015

README! This SHOULD NOT be merged before fixing some related webida-dashboard's logic.

Koong Kyungmi added 3 commits November 16, 2015 17:21
[DESC.]
- provide more specific, limited auth policy for a user
- check authorization on more specific resource on auth server
- clean up duplications on code

[DB Migration]
And you SHOULD apply below SQL for migration.

```
update mem_policy p
inner join mem_user u on u.user_id = p.owner_id
set p.resource = concat('["auth:', p.owner_id , '"]')
where u.type = 0
and p.name = 'defaultAuth';

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants