User Tools

Site Tools


infra:services:hula

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
infra:services:hula [2026/02/03 09:29] atluxity_idp.hackeriet.noinfra:services:hula [2026/03/29 22:08] (current) atluxity_idp.hackeriet.no
Line 80: Line 80:
  
 See also https://github.com/hackeriet/fiken-hula See also https://github.com/hackeriet/fiken-hula
 +
 +The Fiken API token is stored in the password manager. `hackerpass fiken/api`
 +To avoid storing the token in plaintext in `.env`, pipe it directly into the vault helper: 
  
 <code> <code>
-atluxity@hostname: git$ gh repo clone hackeriet/fiken-hula +atluxity@hostname:~$ gh repo clone hackeriet/fiken-hula 
-atluxity@hostname: git$ cd fiken-hula/ +atluxity@hostname:~$ cd fiken-hula/                                                                                                                                                    
-atluxity@hostname: fiken-hula$ echo FIKEN_API=\"$(hackerpass fiken/api)\" > .env +atluxity@hostname:fiken-hula$ python3 -m venv env                                                                                                                                      
-atluxity@hostname: fiken-hula$ source env/bin/activate +atluxity@hostname:fiken-hula$ source env/bin/activate                                                                                                                                  
-(env) atluxity@hostname: fiken-hula$ pip install -r requirements.txt  +(env) atluxity@hostname:fiken-hula$ pip install -r requirements.txt 
-(env) atluxity@hostname: fiken-hula$ python dump_all_sales.py > $(date +%Y-%d-%m)-all-sales.json+(env) atluxity@hostname:fiken-hula$ hackerpass fiken/api | python env_vault.py encrypt --name FIKEN_API --value-stdin 
 +Encryption password: 
 +Confirm encryption password: 
 +Updated .env with FIKEN_API_VAULT 
 +(env) atluxity@hostname: fiken-hula$ python dump_all_sales.py > $(date +%Y-%m-%d)-all-sales.json
 </code> </code>
  
/srv/hackeriet-wiki/dokuwiki/data/pages/infra/services/hula.txt · Last modified: by atluxity_idp.hackeriet.no