Skip to content

Commit

Permalink
Activate Token Authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Aug 12, 2020
1 parent 9d8c296 commit bbb3373
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_commits.yaml
Expand Up @@ -19,7 +19,7 @@ jobs:
shell: bash
run: |
cd templates
redmine_project=pulpcore j2 --undefined travis/.travis/validate_commit_message.py.j2 > ../validate_commit_message.py
redmine_project=pulp j2 --undefined travis/.travis/validate_commit_message.py.j2 > ../validate_commit_message.py
cd ..
- name: Check commit message
env:
Expand Down
1 change: 1 addition & 0 deletions CHANGES/6782.feature
@@ -0,0 +1 @@
Configured the use of token_authentication as used py pulp_container in the CI for plugins.
5 changes: 4 additions & 1 deletion templates/travis/.travis/settings.py.j2.copy
@@ -1,7 +1,10 @@
CONTENT_ORIGIN = "http://pulp:80"
ANSIBLE_API_HOSTNAME = "http://pulp:80"
ANSIBLE_CONTENT_HOSTNAME = "http://pulp:80/pulp/content"
TOKEN_AUTH_DISABLED = True
PRIVATE_KEY_PATH = "/etc/pulp/certs/token_private_key.pem"
PUBLIC_KEY_PATH = "/etc/pulp/certs/token_public_key.pem"
TOKEN_SERVER = "http://pulp:80/token"
TOKEN_SIGNATURE_ALGORITHM = "ES256"

{% if pulp_settings %}
{% for key, value in pulp_settings.items() %}
Expand Down
8 changes: 8 additions & 0 deletions templates/travis/.travis/start_container.yaml
Expand Up @@ -81,6 +81,14 @@
command: "docker logs pulp"
failed_when: true

- name: "Set pulp password in .netrc"
copy:
dest: "~/.netrc"
content: |
machine pulp
login admin
password password
- hosts: pulp
gather_facts: false
tasks:
Expand Down

0 comments on commit bbb3373

Please sign in to comment.