Tenant start and end dates
Keystone should allow the creation of tenants specifying start and end dates.
These dates will define a time window in which the tenant is considered ‘enabled’ and auth tokens will be given only when current datetime is between those dates
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Not
- Drafter:
- Cristian A Sanchez
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Morgan Fainberg
Related branches
Related bugs
Sprints
Whiteboard
=======
Notes from Adam Young
Dina Belova: I believe that should not be done in such direct way, really.
Why not using project.extra field in DB to store this info? Is that not appropriate for your ideas or there will be problems with there implementing using extras?
Adam Young: It would not make sense to enforce on something that was not queryable directly in the database. Please don't use extra. I'd like to see it removed. It certainly should not be used for core behavior.
I think start/end datetimes make sense, and could be part of the project itself. Please write up the blueprint.
=======
cmart
Regarding the first two work items, we should add extra validations for dates, like:
* dates need to have an specific date format (the one used on Climate, a possible consumer of this type of data, is "%Y-%m-%d %H:%M")
* dates can be lower/earlier than current date
* also, we should analyze what could happen if only the one of the dates (start or end) is provided. For instance, if we have a request with a json like:
{
"tenant":
{
"name": "myTenant"
}
}
(i.e: without a end-date) what should happen? 400 Bad request ?
Same case when only the end_date is provided.
Any thoughts?
Work Items
Work items:
[cristian-
[cristian-
[cristian-
[cristian-
[cristian-