astakos: Record the service originating a resource
Add field service_origin in model Resource as well as in theresource definitions, indicating the service where the resourcecomes from. It is not a foreign key, in order to allow deletinga component/service, without affecting registered resources and...
astakos: Generate tokens randomly
Token is now random 256 bits encoded as a base64 string.Increase the auth_token database fields to accommodate it.
astakos: Lift old-style services to components
Add model Component and migrate services along with their tokenand UI URL to this new model. Rename service to component whereneeded.
Add field service_type in Resource and fill it based on the nameof the service that used to own the resource.
astakos: Add new-style services with endpoints
Drop old Service model and add models Service, Endpoint, and EndpointData.Remove Resource's reference to Service.
astakos: Impose uniqueness on auth_token
Add uniqueness constraint in AstakosUser and Component models.Before that, invalidate (set to None) any duplicate tokens.
When renewing a token, retry a couple of times, if generated tokenis in use.
astakos: Set type for existing services
Following Keystone there is now a `type' field in model Service.This adds a data migration in order to set the type for existingservices as follows: astakos: identity cyclades: compute pithos: storage
astakos: provide get_endpoints api call
astakos: New user fields migration improvement
set accepted_policy to 'migration' for already accepted users which have not yeta verified email address (old flow)
astakos: User activation flow improvements
Major refactoring on user email verification/activation process---------------------------------------------------------------Activation logic moved from dispersed code in functions/view modules toActivationBackend methods. All user activation handling code in astakos views...
astakos: Remove deprecated AstakosUser fields
astakos: Use DateTimeField for enhanced precision
Refs #3717
Replace instances of DateField in ProjectMembership andProjectMembershipHistory.
astakos: Control exposing resources in projects
Add attribute `allow_in_projects' in Resource model (True by default).Set this flag for astakos.pending_app to False in the descriptionof astakos resources.
astakos: Migrate service and resource names
- Rename 'pithos+' to 'pithos'- Prepend resource names with 'service_name.'
astakos: Reintroduce foreign key from Resource to Service
Also merge all migrations from 0026 to 0032.
Store service access url in database
Move intdecimalfield.py to snf_django package
Rename it to fields.py and update all migrations that reference the field.
astakos: Remove obsolete ProjectResourceGrant fields
astakos: Remove obsolete fields of AstakosUserQuota
Remove quantity, import_limit, export_limit.Update user-set-initial-quota management command.
astakos: Remove obsolete project-related model fields
Several fields of models Project and ProjectMembership were relatedto the external syncing to quotaholder and have become obsolete sincethe inclusion of quotaholder in astakos.
Make resource name independent of service name
Also remove unused ResourceMetadata model.
Remove resource/service model dependencies
- Remove foreign key dependency between Service/Resource model. Replace it with a service CharField to keep track of the service identifier that the resource was registered from.- Remove all references to resource service name in resource lookups
Astakos missing Service model migrations
Sync astakos migrations
apply authpolicies migrations on top of recently added astakos migrations indevelop branch.
Merge branch 'release-0.13' into feature-astakos-authpolicies
Specify reason when denying project application
Add field `response' in ProjectApplication model.Add option `-m' in project-control command.
Refs #3493
Authentication providers improvements
Major authentication provider refactoring to support
- Modular and easily configurable messages with common context- Fine grained provider policies to support appling specific policies to users and/or groups
Key points:...
Add per-user limit on pending applications
Add UserSettings model for storing integer-valued settings.If an entry is missing, a default synnefo setting is consulted.
The limit can be set/unset with snf-manage user-update.
Create user uuid for inactive accounts
Disable problematic migration
Make Chain a proper db table
Keep chain IDs in table Chain and add foreign keys from ProjectApplicationand Project to Chain.
This will allow us to reference a possibly not yet approved projectin a more concise way.
Set Project.name None when terminated so that it can be reused
Merge remote-tracking branch 'synnefo/feature-projects' into feature-astakos-newstyles
Additional audits in data migration
DB index for ProjectApplication state
Clear service token expiration
Add states DISMISSED and CANCELLED in ProjectApplication and related callsFix defaults in DateTimeFields
Changes in registering to quotaholder
Add an 'uplimit' (default) field in Resource;change AstakosUserQuota fields to IntDecimalField;pass all four limits of initial quotas to the quotaholder;register services and resources explicitly upon creation;a wrapper for get_quota.
Fix migrations
Astakos users and auth providers data migrations
Migration fix
Change projects, eliminate development migrations
Change Project's state field and ProjectMembershipHistory's person field;replace all migrations starting 0015 with a single new one.
Need to check for missing data migrations.
Auth providers improvements
- Enrich login/logout messages.- Clear unverified accounts when user adds the same third party account to an existing account.- Other minor improvements.
Composite index chain, id in project application table
Database migration for user quota policies
Merge branch 'latest-quota' of https://code.grnet.gr/git/synnefo into latest-quota
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py
Provide commands for importing/exporting existing user resource policies
Add an id for a chain of applications; this is also the project id
New state handling for astakos projects and memberships
Distinguishes is_active, is_pending flags from actual states in ProjectMembership;likewise is_active, is_modified flags in Project.Splits syncing in pre-process, actual syncing, and post-process.
wip Generalize project state
Service model `order` field
Allow empty project start date
Redefine IntDecimalField to allow support for south migration;apply the new field to astakos.im.ProjectResourceGrant
Membership policies kept in settings instead of db
Project deactivation/termination
Remove foreign key constraints from ProjectMembershipHistory
Clear expiration date from Astakos services
Increase username length to fit email values
Update Astakos API to provider calls for retrieving uuid from the username and vice versa, extend astakos client library (snf-common) and update pithos to use uuids instead of email for account identification
Delete more obsolete code
Fix models
Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota
Conflicts: snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/notifications.py snf-astakos-app/astakos/im/urls.py snf-astakos-app/astakos/im/views.py
Unique user identifier
auto generated user identifier
Merge migrations
Conflicts: devtools/fabfile.py
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/management/commands/service-add.py snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/models.py...
Single model for ProjectApplication & Definition - Membership sync
User status migrations
- Set email_verified and activation_sent to all active users
Third party login providers fixes/improvements
- Store additional provider info in PendingThirdPartyUser entries- Include third party registration logic in main signup view. Additional per provider signup views removed.- Unique email validation for all activation backend forms...
Set unique together resource name and service
Progress VII
Progress VI
Progress V
Several fixes
Update models
Progress I
Style fixesNew menu
Proper commit files for b48b6a2
Create missing migrations
Remove conflicting migrations
Fix middleware AtributeError in case of non astakos requestFix service-add command: check callpoint result
Merge remote-tracking branch 'origin/0.12' into devel-0.13
Conflicts: snf-astakos-app/astakos/im/activation_backends.py snf-astakos-app/astakos/im/api/admin.py snf-astakos-app/astakos/im/auth_backends.py snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py...
Flush other user sessions during password/token change
Refs: #3007
Customize third party signup form fields
Refs: #3041
Refine shibboleth signup mechanism
Change default resource limits
User create_groups api call in group creation
Fix default resource groups
Set additional default resource information (description, unit)
Merge branch 'future' into 0.6.4
Conflicts: snf-astakos-app/astakos/im/api/backends/lib/django/__init__.py snf-astakos-app/astakos/im/api/spec.py snf-astakos-app/astakos/im/endpoints/quotaholder.py snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py...
Merge with future branch
Merge branch '0.6.4' into future
Conflicts: snf-astakos-app/astakos/im/synnefo_settings.py
Change saved emails to lowercase
Refs: #2883
Turn emails to case-insensitive.
Set obsolete user and group limit field nullable
Merge branch '0.6.4' into dev
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/views.py
Fix migration integrity error