Skip to content

Commit

Permalink
fix: Need to decode JWT twice
Browse files Browse the repository at this point in the history
* And update matrix of supported platforms within `vars/main.yml`
  • Loading branch information
alessfg committed Nov 20, 2024
1 parent cc6d48a commit 435df98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/plus/setup-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@

- name: Decode JWT payload using base64url
ansible.builtin.set_fact:
jwt_payload_encoded: "{{ (jwt_file['content'] | b64decode | split('.'))[1] }}"
jwt_payload_encoded: "{{ (jwt_file['content'] | b64decode | b64decode | split('.'))[1] }}"

- name: Decode JWT payload using base64url
ansible.builtin.set_fact:
Expand Down
8 changes: 4 additions & 4 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ nginx_supported_distributions:
architectures: [x86_64]
ubuntu:
name: Ubuntu
versions: [20.04, 22.04, 23.10, 24.04]
versions: [20.04, 22.04, 24.04, 24.10]
architectures: "{{ ['x86_64', 'aarch64', 's390x'] if ((ansible_facts['distribution_version'] is version('20.04', '==')) or (ansible_facts['distribution_version'] is version('22.04', '=='))) else ['x86_64', 'aarch64'] }}"

# Supported NGINX Plus distributions
Expand All @@ -71,7 +71,7 @@ nginx_plus_supported_distributions:
architectures: [x86_64, aarch64]
alpine:
name: Alpine Linux
versions: [3.16, 3.17, 3.18, 3.19]
versions: [3.17, 3.18, 3.19, 3.20]
architectures: [x86_64, aarch64]
amazon:
name: Amazon Linux
Expand All @@ -83,7 +83,7 @@ nginx_plus_supported_distributions:
architectures: [x86_64, aarch64]
freebsd:
name: FreeBSD
versions: [12, 13, 14]
versions: [13, 14]
architectures: [x86_64]
oraclelinux:
name: Oracle Linux
Expand All @@ -92,7 +92,7 @@ nginx_plus_supported_distributions:
redhat:
name: Red Hat Enterprise Linux
versions: [8, 9]
architectures: "{{ ['x86_64', 'aarch64', 's390x'] if (ansible_facts['distribution_major_version'] is version('8', '>=')) else ['x86_64', 'aarch64'] }}"
architectures: [x86_64, aarch64]
rocky:
name: Rocky Linux
versions: [8, 9]
Expand Down

0 comments on commit 435df98

Please sign in to comment.