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

awx.awx.application does not return the application client_secret #15028

Closed
5 of 11 tasks
alice-rc opened this issue Mar 25, 2024 · 4 comments
Closed
5 of 11 tasks

awx.awx.application does not return the application client_secret #15028

alice-rc opened this issue Mar 25, 2024 · 4 comments
Assignees
Labels
community component:awx_collection issues related to the collection for controlling AWX type:bug

Comments

@alice-rc
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

When using the collection module awx.awx.application it does not return the client_secret which is unobtainable after creation.

AWX version

24.0.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

yes

Ansible version

2.15.9

Operating system

N/A

Web browser

No response

Steps to reproduce

- name: applications | Create AWX application
  awx.awx.application:
    controller_config_file : "{{ gv_awx_controller_config_file }}"
    name: Test App
    organization: XXX
    authorization_grant_type: password
    client_type: confidential
    state: present
  register: _application_creation

- debug:
    var: _application_creation

Expected results

_application_creation": {
    "changed": true,
    "failed": false,
    "id": 3,
    "name": "Test App"
    "client_id": "y8mys4bSpk49sEqMCez3E4ss995h1Zu8cwCGRlfA",
    "client_secret": "jCyr7oPR5PNZt7BsFEr96nnjcc6cyjNxS2nsuMPwK8hRgf7dgCO8tbSoPgysMFGFOPiAmPiIk5SEmLP7bWSgF3QKOs2tOEjUDK3dmSW98WHtp3hQtnQPYe4dqMNXAS2K"
}

Actual results

_application_creation": {
    "changed": true,
    "failed": false,
    "id": 3,
    "name": "Test App"
}

Additional information

installation, deployment topology, or container images not relevant to collection function
Collection Version
awx.awx 24.0.0

@github-actions github-actions bot added component:awx_collection issues related to the collection for controlling AWX needs_triage type:bug community labels Mar 25, 2024
@fosterseth fosterseth added the needs_investigation PRs or issues that need further investigation label Mar 27, 2024
@fosterseth
Copy link
Member

@alice-rc do you know what version of AWX this was last working for you? we are making a lot of changes around auth at the moment, so we may have broke the endpoint at some point

@jbradberry jbradberry self-assigned this Mar 27, 2024
@jbradberry
Copy link
Contributor

I've just checked the api endpoint results in my development environment, and it does have the expected behavior there.

@jbradberry
Copy link
Contributor

I have confirmed, this module was not set up to properly output this information. PR forthcoming.

@jbradberry
Copy link
Contributor

#15045 has merged.

@jbradberry jbradberry removed the needs_investigation PRs or issues that need further investigation label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:awx_collection issues related to the collection for controlling AWX type:bug
Projects
None yet
Development

No branches or pull requests

3 participants