-
Task
-
Resolution: Done
-
Normal
-
None
-
2
-
False
-
-
False
-
Unset
-
ANSTRAT-554 - Move from Seat-based to Consumption-based pricing model
-
No
-
-
-
A&M Tech Debt Sprint Q1 2024, Access & Management Sprint 83
because ansible seat management is being discontinued, we need to disable access to the seats apis in entitlements. we can do this via env config
we will want to make sure the UI for seat manager is disabled before we shut off the apis, so I linked the corresponding ticket that we depend on
tasks:
- set "ENT_DISABLE_SEAT_MANAGER" to "true" in stage/production, the apis will not be exposed via routes in our service. We could also default this value to true in the actual service since we won't be using them at all anymore. I would prefer the latter because it removes some dependencies on service startup. ref: https://github.com/RedHatInsights/entitlements-api-go/blob/main/config/main.go#L97. Add a comment in the code where we default the env var to true, saying "this feature is obsolete" (something like that) and link this ticket
- we should also move the instantiation of the bop and ams clients into the conditional that only runs if seat manager apis are enabled. That way if disabled, we dont have to worry about providing any config on app startup for these clients which wont actually be used. So this config: https://github.com/RedHatInsights/entitlements-api-go/blob/main/server/routes.go#L41-L50 can get moved into the conditional below it, here: https://github.com/RedHatInsights/entitlements-api-go/blob/main/server/routes.go#L56-L59 which is where the env var is read and hides the apis if desired
- update the readme and docs to mention the endpoints are deprecated in prod
- work with qe to disable seats tests