Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that albs jwt token is properly set #16

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

javihernandez
Copy link
Member

block:
- name: Generate ALBS JWT
shell: >
python3 -c "import jwt; secret = '{{ albs_jwt_secret }}'; payload = {'sub': '1', 'aud': ['fastapi-users:auth'], 'exp': 1777628461}; token = jwt.encode(payload, secret, algorithm='HS256'); print(token)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can put the code into a file, copy it to a host and run it directly.

Also, remove requests dependency
@javihernandez javihernandez merged commit 018910c into AlmaLinux:master Mar 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to retrieve sign keys from API during ALBS provisioning
4 participants