Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Create job via API can fail due to authorization bug

#469

using the job import API, the request may fail due to authorization, with the audit log containing:

2011-11-09 09:22:00,095 - Evaluating Decision for: res<type:job,job:<removed>, group:test> \
  subject<Username:<removed> Group:api_token_group> action<create> \
  env<http://dtolabs.com/rundeck/env/project:null>: authorized: false: \
  No context matches subject or environment => REJECTED_NO_SUBJECT_OR_ENV_FOUND \
  (0ms)No context matches subject or environment => REJECTED_NO_SUBJECT_OR_ENV_FOUND

specifically, the env<http://dtolabs.com/rundeck/env/project:null> is incorrect

Reported by Greg Schueler · November 9th, 2011 @ 09:50 AM

State: resolved
Milestone: 1.4.0.2
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Greg Schueler
  2. Greg Schueler
    Greg Schueler

    (from [41b8a3fb03354953fa41f96b72294a7fbd55bb99]) Use job.project not session.project for auth check

    Fixes some "null" project auth checks when using token based
    API requests

    [#469] https://github.com/dtolabs/rundeck/commit/41b8a3fb03354953fa41f96b7...

    November 9th, 2011 @ 12:14 PM

  3. Greg Schueler
    Greg Schueler

    (from [0d2c682c96e0048e72b8a0feb0004d59bc334024]) Add authorizeProjectResources for multiple resources

    don't allow null project argument for authorize* methods
    Fix getFrameworkNodeName to properly get rundeck base dir

    [#469] https://github.com/dtolabs/rundeck/commit/0d2c682c96e0048e72b8a0feb...

    November 9th, 2011 @ 12:14 PM

  4. Greg Schueler
  5. Greg Schueler
  6. Greg Schueler
    Greg Schueler
    • State changed from new to needs_verification

    November 9th, 2011 @ 12:47 PM

  7. Greg Schueler
    Greg Schueler
    • State changed from needs_verification to resolved

    tested with api tests using api token auth

    November 9th, 2011 @ 12:50 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.