Final-year internship, internal tool, prototype validated in a test environment
Licences assigned at sign-in, reclaimed every night
In Good iD's test environment, licences that were assigned once and never removed went on being billed every month. I developed an app that grants the licence when an engineer signs in and automatically reclaims it overnight.
Context and goal
Engineers use a test environment to prepare a configuration, reproduce a case or demonstrate a feature. Access to the features requires a licence, and Flex licences are billed monthly, per assigned user. A licence assigned to someone who signed in once in April is still being billed in July.
Nobody removes them: nothing prompts anyone to, and the individual cost is low. It is the build-up that costs money. The goal was to make that build-up impossible, without making access any harder for engineers.
What I did
The app automates the full cycle. At sign-in, it identifies the user from their session, retrieves the organisation ID from the directory, checks that they do not already hold a licence of the target type, then assigns it to them. A scheduled run, independent of any sign-in, removes the licences overnight.
Control, or be able to undo
At first I thought in terms of authorisation: who is allowed to get a licence, whether approval is needed, how to prevent abuse. For two days, that is where I was looking. It was the technical lead who turned the question around: rather than approving each request, make the assignment easy to undo.
“No control” would be inaccurate, though. Two automatic checks remain at the heart of the set-up: the user must have authenticated on the test environment, and the app checks that they do not already hold a licence of the target type. The tool is limited to a single licence type. What disappears is manual, case-by-case approval, replaced by automatic reversibility.
Try it: one month of a test environment
Twelve fictitious engineers sign in on some days only, rarely at weekends. Move the month forward and compare what remains assigned each evening. No real billing figures are used.
Without reclaiming
0
licences assigned and still billed tonight
Reclaimed every night
0
licences used today, all reclaimed tonight
Verifiable results
- RecordedApp working and validated in the company's test environment.
- RecordedNightly removal makes licence build-up impossible, which was the problem to solve. I did not put a figure on the savings.
Risks I did not remove
- The daytime window. An assigned licence remains usable until it is removed at night. The set-up does not protect against inappropriate use in that interval.
- No log. The tool keeps no timestamped record of its own assignments. The stakes are low in an internal environment; elsewhere it would be a blocker.
- Outside the test environment. Equivalent use at a client would require a security review and an explicit definition of eligible user groups, which was beyond my scope.