Skip to content

Commit

Permalink
Merge branch 'v3-fixes' into 'main'
Browse files Browse the repository at this point in the history
v3.0.1

See merge request isard/isardvdi!319
  • Loading branch information
vittorio-togliatti committed Aug 27, 2021
2 parents 4f064f3 + 1fd8b64 commit 4ef4654
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 33 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## [3.0.1] - 2021-08-27

### Fixed

- Temporary desktops didn't start
- Some temporary desktops logout user as the allowed filter had a bug

### Removed

- Removed unused BACKEND variables from isardvdi.cfg

## [3.0.0] - 2021-08-25 | Gran Paradiso

*Note*: it is possible to upgrade from version `2.0.0-rc1` to `3.0.0`, but we don't assure you everything will work (though it probably will). For a stable installation, start from scratch.
Expand Down
3 changes: 2 additions & 1 deletion api/src/api/libv2/api_socketio_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def run(self):
data=c['old_val']
else:
if not c['new_val']['id'].startswith('_'): continue
if c['new_val']['status'] not in ['Creating','Shutting-down','Stopping','Stopped','Starting','Started','Failed']: continue
if c['new_val']['status'] not in ['Creating','CreatingAndStarting','Shutting-down','Stopping','Stopped','Starting','Started','Failed']: continue

if c['new_val']['kind'] != 'desktop':
item='template'
else:
Expand Down
15 changes: 12 additions & 3 deletions api/src/api/views/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,18 @@ def allowedTemplateId(payload,template_id):
alloweds=template['allowed']
if payload['role_id'] == 'admin': return True
if payload['role_id'] == 'manager' and payload['category_id'] == template['category']: return True
if alloweds['categories'] and payload['category_id'] in alloweds['categories']: return True
if alloweds['groups'] and payload['group_id'] in alloweds['groups']: return True
if alloweds['users'] and payload['user_id'] in alloweds['users']: return True
if alloweds['roles'] != False:
if alloweds['roles'] == []: return True
if payload['role_id'] in alloweds['roles']: return True
if alloweds['categories'] != False:
if alloweds['categories'] == []: return True
if payload['category_id'] in alloweds['categories']: return True
if alloweds['groups'] != False:
if alloweds['groups'] == []: return True
if payload['group_id'] in alloweds['groups']: return True
if alloweds['users'] != False:
if alloweds['groups'] == []: return True
if payload['user_id'] in alloweds['users']: return True
return False

# def allowedId(payload,category_id, alloweds):
Expand Down
29 changes: 0 additions & 29 deletions isardvdi.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -227,35 +227,6 @@ AUTHENTICATION_DB_HOST=isard-db
###################### BACKEND config

BACKEND_HOST=localhost
BACKEND_REDIS_HOST=isard-redis
BACKEND_REDIS_PASSWORD=
BACKEND_AUTH_AUTOREGISTRATION=true

## Github Login
# Create your Github OAuth credentials at https://github.com/settings/developers
# Homepage URL: https://domain.tld
# Authorization callback URL: https://domain.tld/callback/github
# Change BACKEND_HOST to domain.tld
# BACKEND_AUTH_GITHUB_HOST=api.github.com
# BACKEND_AUTH_GITHUB_ID=id
# BACKEND_AUTH_GITHUB_SECRET=secret

## Google Login
# Create your Google OAUTH credentials at https://console.developers.google.com/apis/credentials
# Authorized redirect URIs: https://domain.tld/callback/google
# Change BACKEND_HOST to domain.tld
# BACKEND_AUTH_GOOGLE_ID=id
# BACKEND_AUTH_GOOGLE_SECRET=secret

# BACKEND_AUTH_SAML_CERT_PATH=/keys/saml.cert
# BACKEND_AUTH_SAML_KEY_PATH=/keys/saml.key
# BACKEND_AUTH_SAML_IDP_URL=https://<yoursamlserver
# BACKEND_AUTH_SAML_IDP_METADATA_PATH=/metadata/shibboleth.xml
# BACKEND_AUTH_SAML_CALLBACK_URL=https://<yourdomain>
# BACKEND_AUTH_SAML_ATTR_ID=uid
# BACKEND_AUTH_SAML_ATTR_NAME=displayName
BACKEND_ISARD_API_HOST=isard-api
BACKEND_MANTEINANCE_ADMINS=admin

# VIDEO config
###########################################################
Expand Down

0 comments on commit 4ef4654

Please sign in to comment.