Skip to content

Commit

Permalink
Merge pull request #279 from OpsMx/OP-16464-pipeline-rbac-v4.0
Browse files Browse the repository at this point in the history
OP-18094: integrate pipeline trigger to verify fiat permissions
  • Loading branch information
sriharshakancharla authored Nov 1, 2022
2 parents 082222d + ac43a20 commit 6e27f32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ allprojects {
if ([korkVersion, fiatVersion].find { it.endsWith('-SNAPSHOT') }) {
repositories {
mavenLocal()
maven{
url "https://nexus.opsmx.net/repository/maven-snapshots/"
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class PipelineController {
}

@ApiOperation(value = "Trigger a pipeline execution", response = Map.class)
@PreAuthorize("hasPermission(#application, 'APPLICATION', 'EXECUTE')")
@PreAuthorize("hasPermission(#application, 'APPLICATION', 'EXECUTE') && hasPermission(#pipelineNameOrId, 'PIPELINE', 'EXECUTE')")
@PostMapping("/v2/{application}/{pipelineNameOrId:.+}")
HttpEntity invokePipelineConfigViaEcho(@PathVariable("application") String application,
@PathVariable("pipelineNameOrId") String pipelineNameOrId,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
enablePublishing=false
fiatVersion=1.31.2
fiatVersion=OP-16464-1.31.2-SNAPSHOT
includeProviders=basic,iap,ldap,oauth2,saml,x509
korkVersion=7.139.0
kotlinVersion=1.4.0
Expand Down

0 comments on commit 6e27f32

Please sign in to comment.