Repository navigation
Releases
v0.5.0
Changed
createandupdateread Roblox's scope list at run time, the one its key service applies, instead of relying on the catalog built into the binary. Roblox changed that list three times between 2026-11-22 and 2026-12-02, so a binary was always a few scopes behind, and a key built from a stale target fails at creation with a500that names nothing. The list is saved for 24 hours in the user's cache directory (%LOCALAPPDATA%\rbx-apikey\scopes.jsonon Windows), one copy per machine;--refresh-scopesreads it again sooner. Without network, an older copy is used, or the built-in catalog when it is newer than that copy, with a warning naming which. A scope Roblox's list gives two targets for is left to the built-in catalog, with a warning. The built-in catalog still supplies the descriptions and the scopes Roblox's list leaves out (localizationandgroup.payoutamong them).statusanddoctorread the same list;scopes listandscopes showkeep showing the built-in catalog.
v0.4.2
Fixed
- A key whose creator scopes name a user and groups is refused when the file is read. Roblox stores one target per creator scope entry, and a key declared with both
user_idsandgroup_idsbesideasset:read,writewas created and updated with two entries, of which Roblox kept the group's alone, without an error. The message says to declare two keys. A key whose creator targets come from the owners of its universes, a user and a group, is warned about before anything is sent. status --remotecompares the creator targets Roblox stores with the file, and reportsCREATOR_DRIFTwith the missing or unasked targets instead ofHEALTHY. A key whose owners the lockfile does not know yet, or whose scopes Roblox's answer does not list, is stillHEALTHYand says that its creator targets were not compared.RBX_COOKIE=(or--cookie "") is no cookie. Built on rbx-core 0.5.2: an empty or blank value is never sent as a.ROBLOSECURITY=header, still keeps a signed-in Studio out as documented, and a command that needs a cookie says that the value is empty instead of suggesting to sign in to Studio.doctorsays so on its cookie line.
v0.4.1
Fixed
doctortakesRBX_API_KEYset but empty, or only whitespace, as no key, instead of a key to introspect.- Built on rbx-core 0.5.1: a
Set-Cookiethat deletes the session cookie with its expiry time glued to the zone (00:00:00GMT) is no longer taken for a rotation.
v0.4.0
Changed
-
The session cookie is followed when Roblox rotates it during a run. Roblox may answer a request with a new
.ROBLOSECURITYvalue (Set-Cookie), and the old one can then be refused. Built on rbx-core 0.5.0, the rest of the run sends the new value, and one warning on stderr says what to do: a cookie passed with--cookie/RBX_COOKIEwill expire and has to be replaced with a fresh one, and a cookie read from Roblox Studio may expire, so sign in to Studio again if requests start failing. A new value is taken only from the answer to a request that carried the cookie, and a deletion is ignored. The value is never printed, logged or written anywhere. -
A cookie pasted as a whole browser
Cookieheader is accepted. A--cookie/RBX_COOKIEvalue copied with the other cookies around it (a=b; .ROBLOSECURITY=<value>), or with the name in another case or with spaces around it, is now reduced to its.ROBLOSECURITYvalue. Before, it gained a second.ROBLOSECURITY=prefix and Roblox refused it.
v0.3.0
Changed
- Certificates are checked by the operating system's verifier. Built on rbx-core 0.3.0 and reqwest 0.13: TLS is still rustls over the OS trust store, but a server's certificate now goes through the platform verifier (rustls-platform-verifier) rather than being checked against the roots read out of the store, so Windows and macOS apply their own checks to it, and no longer read a CA from
SSL_CERT_FILEorSSL_CERT_DIR: install it in the system store (the Windows certificate store, the macOS Keychain). Linux still reads both variables. The crypto underneath is aws-lc-rs rather than ring. The proxy still comes fromHTTPS_PROXYand the other environment variables only.
v0.2.1
Security
- A request to Roblox no longer follows a redirect to another host. The HTTP client forwarded every header but
AuthorizationandCookieon such a hop, so a redirect from the readdoctorprobes with would have taken the API key along. Every request to Roblox now stops at that redirect and reads it as the answer, a 3xx;doctorreports its status and names the host it pointed to and nothing else of it, since a redirect's body can repeat a signed target. - An answer from Roblox that could not be read is no longer quoted in the error. The answer to a create or a regenerate carries the new secret, and a listing the first characters of every secret, so a change on Roblox's side would have printed one. The error gives the parse error with its quoted values withheld, the answer's length and its field names; the same holds for the universe answer read when resolving an owner. A lockfile entry, a listed key's secret preview and the other values holding a secret print it as
<redacted>under{:?}. regenerate'sSecret (save this manually)line, printed when a rotated secret could not be stored, goes to stderr. It went to stdout, which a script captures or pipes into a file.
Fixed
- When
createcannot store or print the secret of a key Roblox has just created, the key is still recorded in the lockfile, markedsecret_unsaved = truewith no secret in the entry, and the command exits non-zero. It stopped with nothing recorded, leaving a live key that nothing in the project named. The secret is printed on stderr to save by hand, except under--stdout, where it is never put on stderr: the message says part of it may have reached stdout and to runregenerate <key> --stdout.statusshows such a key asSECRET_MISSING, "never stored", andregenerateclears the mark. Aregeneratewhose new secret could not be stored marks the key the same way, so the dead secret is no longer served bystatusorresolve. createstores the secret and writes the lockfile as soon as Roblox has created the key, before re-applying an expiry Roblox ignored and before the check that reads back its scopes, so a hang or a Ctrl-C in either cannot leave a live key unrecorded. Aregeneratewhose lockfile could not be saved says that the file on disk still describes the key as before, with its old, dead secret. A lockfile that cannot be written then names the live key and its id, and hands over the secret on stderr when the lockfile was its only copy.create --forceon a key the lockfile tracks deletes that key on Roblox before creating the new one. It created the new key and wrote it over the record of the old one, which stayed live on Roblox with nothing in the project naming it. The new key's request (targets, owners, scopes, IP ranges, name and description) is built before the delete, so one that cannot be built leaves the old key working, and a name or description containingrbxorroblox, which Roblox refuses, stops it before the delete. A plaincreatestill leaves that judgement to Roblox. The keys it replaces are named before the confirmation; a key of another account is refused before anything happens; a delete that fails creates nothing and keeps the record, and a delete Roblox made that the lockfile could not record is reported as such.- A key that expired less than a day ago counts as expired. Days left were rounded toward zero, so it read
in 0d,statuscalled itEXPIRING_SOON,list --remoteanddoctorshowed it active,prune --expired-onlyleft it out, anddays_until_expirywas0. A key counts as expired from the second of its expiry:days_until_expiryis-1within the day after it and0within the day before, a key that expired exactly N days ago readsN d ago, and the text saysunder 1dinstead of0d, in both directions. can-managesends a cookie given with its.ROBLOSECURITY=prefix as it is. It added the prefix a second time, and Roblox refused a valid session as a stale cookie.introspectno longer asks to use a signed-in Studio session. It authenticates with the key's secret alone and never sent the cookie it asked for.- A lockfile of an older schema is refused with advice that deletes the keys it records before anything recreates them. The advice was to delete the file and run
create --all, which gave every key a second one and left the first live with no record. A lockfile of a newer schema asks for a newer build. - The configuration docs said to accept a repointed env by deleting the key's lockfile entry, which leaves the key live with no record and makes the next
createa duplicate. The section to delete is[envs.<name>], which is what the refusal itself says. regenerate --helpno longer says--yesis required with--all: without it,--allasks before rotating.createstops before asking anything when an env the lockfile records now resolves to another universe inrbxplace.toml, asupdate,regenerateanddeletedo. It resolved the env afresh and wrote the new universe into the lockfile's shared entry, so the keys created for the old universe no longer showed as drifted.
v0.2.0
Fixed
- A write of the lockfile or a secret file that fails leaves no empty file behind, and says when it could not put the old content back. A file a scanner holds for a moment is written once it lets go.
regenerateandupdaterefuse to write a secret into a file git does not ignore, ascreatedoes, and all three check asecret_fileas well as the lockfile.createchecked only the lockfile, andregenerateandupdatechecked nothing. Every key of the run is checked before the first question and before Roblox is asked, and one refused key refuses the whole run with a message naming every refused file and its keys, so nothing has been created, rotated or moved when it stops.- The git guard answers through a symlink or a junction: git was handed the linked path, called it outside the repository, and the check read as one that could not run, so the secret was written with a warning. It tells a file git already tracks from one it does not ignore, since an ignore line does not untrack a file, and says to run
git rm --cachedfor it. The line it suggests is the file's path from the repository root, anchored with/: it copied the config's path, which matched nothing for./.secrets/, was not a pattern for../x/, and anchored elsewhere when run from a subdirectory. A relative secret file path is checked where it is, and a.gitthat cannot be looked at gives a warning instead of passing as "not a repository". - An
rbxplace.toml, anrbxapikey.tomlor a lockfile that is there and cannot be looked at stops the command, naming the file. Each read as absent somewhere: the env file switched the drift check off without a word, the config was reported missing with advice to create it, andlist --remoteanddoctorshowed every key of the project as untracked.doctorreports a config or lockfile it cannot look at, read or parse as a finding naming the file, and goes on with what does not depend on it, such as the key inRBX_API_KEY; it used to report a directory declaring no keys. doctor's read probe names anrbxplace.tomlit cannot look at or parse, with the error, and fails on it. It used to skip with "no universe to read" and advise adding an env to the file.- A secret file that is there and cannot be looked at or read is an error naming the file.
update,resolveandintrospectstop on it.listshows it on that key assecret cannot be readwith the error, and--jsonassecret_readable: false;statusgives it the verdictSECRET_UNREADABLE;doctorreports it on that key, with the error and the way out (write the secret back, orregenerate). All three go on with the other keys. Deleting an old secret file that cannot be looked at says so, naming it, instead of deleting nothing in silence. It read as a missing secret:updatereported it "not found" and sent the reader to rotate a key whose secret was fine, andstatusandlistshowedSECRET_MISSING. doctor's read probe no longer claims to needuniverse:read. Roblox answers GET universe and GET place withoutuniverse:readoruniverse.place:read, so a pass now says it tested no scope, a 403 is no longer explained as a missing scope, and the note warning that a key withoutuniverse:readcould not run the probe is gone.doctor's scope coverage asks only foruniverse:writeto sync universe fields anduniverse.place:writeto sync place fields. It also requireduniverse:readanduniverse.place:read, which Roblox does not check on those reads, and failed a key the sync works with.
v0.1.2
Fixed
- The lockfile and a custom secret file are never emptied before they are written. They were truncated, then written, so a full disk or a run killed mid-write left the only record of the keys empty. The content now goes over the old one, the file is cut to length afterwards, and the old content is put back if a step fails.
update --allrecords each key in the lockfile as soon as Roblox has taken its update. It saved once at the end, so a refusal or a "no" on a later key lost the record of the keys already updated, including where a migrated secret had moved to after its old file was deleted.prunestops on a config or a lockfile it cannot read. It read either as empty, which labelled every key of the project UNTRACKED and deleted it without its record, then overwrote the unreadable lockfile with an empty one. It also leaves no lockfile behind when no tracked key was deleted.pruneanddelete --allrecord each key as soon as Roblox has deleted it, likeupdate --all. They saved once at the end, so a run stopped at the question about a secret file kept listing keys that no longer existed.regeneratewrites the lockfile as soon as the new secret is in it, before it asks about an old secret file. It saved after that question, so a run stopped there, or a save that failed, lost a secret Roblox shows only once while the old one was already dead. A save that fails now prints the secret to store by hand.- A lockfile that is there and cannot be looked at stops the command, and so does a config in that state for
prune. Each read as absent, which is the same empty start an unreadable one used to give.
v0.1.1
Security
- Release archives carry a build provenance attestation:
gh attestation verify <zip> --repo rbx-forge/rbx-apikey. The build jobs run with read access only, and the publishing job alone may write.
Fixed
- The help of
doctor --check-ippointed atdocs/doctor.md, a path that does not exist beside an installed binary.
v0.1.0
First release as a standalone tool.
- Declares Open Cloud API keys in
rbxapikey.tomland creates, updates, rotates, resolves and deletes them from it. statusreconciles the file, the lockfile and what Roblox holds;list --remoteandprunesee the keys the account holds that this project never made.create --stdoutandregenerate --stdoutprint the secret instead of storing it, for a pipe into a vault; the lockfile marks the key as held elsewhere, sostatusdoes not call it missing.can-managesays beforehand whether you can create keys for a universe.doctordiagnoses the loaded key: provenance, session, validity, IP allowlist, scope coverage for the configs in the directory, and one authenticated read.scopesandcataloginspect and refresh the embedded scope catalog, which a scheduled workflow keeps in step with Roblox.schemas/rbxapikey.schema.jsonfor editor validation, regenerated byrbx-apikey-schema.- The lockfile and a custom secret file are written readable by your account only: mode
0600on Unix, inherited access removed on Windows, before the secret is written.