objecthub-io / ObjectHub

ObjectHub is an open repository for software objects and a development platform.
2 stars 1 forks source link

Sometimes authorization fails for dependencies of Micro App #132

Closed objecthub-io closed 7 years ago

objecthub-io commented 7 years ago

Message

Unauthorized: Insufficient authorization for node [https://objecthub.io/hub/users...Configuration] to install hook

Where Configuration is one of the dependencies.

Afterwards, other authorizations fail as well, for instance for monitoring the user database.

objecthub-io commented 7 years ago

Authorization for /Configuration fails, since ObjectHub IDE tries to install hook without a proper secret.

objecthub-io commented 7 years ago

Authorization for user db fails after auth for /Configuration fails and is cached:

nx.server.auth.internal.AuthorizationCache@7a0271f4: Got READONLY authorization from cache https://objecthub.io/hub/users/main/~objecthub/home/my for xxx

...

nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0 with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0/it with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0/it/.n with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0/it/.n/Services1 with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0/it/.n/Services1/.n with token 
nx.server.auth.internal.AuthorizationCache@7ee29551: Cache failed READONLY authorization for https://objecthub.io/hub/users/main/~objecthub/home/my/~*0/it/.n/Services1/.n/Configuration with token 

...

nx.server.auth.internal.AuthorizationCache@7ee29551: Got failed READONLY authorization from cache https://objecthub.io/hub/users/main/~objecthub/home/my for xxx
objecthub-io commented 7 years ago

Missing secrets in hooks fixed.

Auth cache issue migrated to StellarDB Issue #62