[openstack-dev] [Keystone] Project name DB length

Adam Young ayoung at redhat.com
Thu Oct 20 15:30:27 UTC 2016


On 09/28/2016 11:06 PM, Adrian Turjak wrote:
> Hello Keystone Devs,
>
> Just curious as to the choice to have the project name be only 64
> characters:
> https://github.com/openstack/keystone/blob/master/keystone/resource/backends/sql.py#L241
>
> Seems short, and an odd choice when the user.name field is 255 characters:
> https://github.com/openstack/keystone/blob/master/keystone/identity/backends/sql_model.py#L216
>
> Is there a good reason for it only being 64 characters, or is this just
> something that was done a long time ago and no one thought about it?
>
> Not hugely important, just seemed odd and may prove limiting for
> something I'm playing with.
>
> Cheers,
> Adrian Turjak
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

No. keep them short.  We are working toward a scheme where you can nest 
the names like this"


parent/child1/child2


But if you make them too long, that becomes a disaster.  There is a 
strict option in the config file that prevents you from making names 
with non-URL safe characters.  Set that option.




More information about the OpenStack-dev mailing list