feat: add admin_token_hash attribute to dumpthings site-spec #5
Loading…
Reference in a new issue
No description provided.
Delete branch "cmo/liab-deployments:admin-token-hash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds the per-site attribute
admin_token_hashto thedumpthingsspecification. The attribute is optional.If provided, it should be a valid token hash; currently, this is a hex-encoded SHA-256 hash (64 digits) of the plain-text admin token. A valid token hash can be created with
dump-things-hash-token <plain-text-token>(using the same version of dump-things-service).For example, the following command would create the token hash for the token
my-admin-token(DO NOT use this token hash in production systems because it is public now):This token hash could be added to a dumpthings-spec as follows:
For security reasons, there is currently no support for storing plain-text admin tokens in the configuration.
feat: add admin_token_hash attribute to dumpthings specto feat: add admin_token_hash attribute to dumpthings site-specView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.