Skip to content

Commit

Permalink
NOJIRA
Browse files Browse the repository at this point in the history
merge with master
RELEASE 2.0.0-BETA
  • Loading branch information
chasegawa committed Nov 7, 2023
2 parents 6a57d12 + 49b8e6a commit ea61582
Show file tree
Hide file tree
Showing 504 changed files with 11,944 additions and 36,534 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pipeline {
agent any
tools{
jdk 'JDK17'
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
Expand Down
52 changes: 51 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements_

* Java 11 (note that ONLY Java 11 is supported at this time; other later versions might work)
* Java 17 (note that ONLY Java 17 is supported at this time; other later versions might work)

## Running

Expand Down Expand Up @@ -114,4 +114,54 @@ springdoc.pathsToMatch=/entities, /api/**
# This property enables the openapi and swagger-ui endpoints to be exposed beneath the actuator base path.
management.endpoints.web.exposure.include=openapi, swagger-ui
management.server.port=9090
```

## Random SQL
### Get Release attributes for a given entity id
```sql
select xs_stringvalue
from xsstring
where id in (select attribute_values_id
from attribute_abstractxmlobject
where attribute_id = (select id
from attribute
where id in (select attributes_id
from entity_attributes_attribute
where entity_attributes_id = (select unknownxmlobjects_id
from abstract_element_extensiblexmlobject_abstractxmlobject
where abstract_element_extensiblexmlobject_id =
(select extensions_id from entity_descriptor where entityid = 'someentityid')))
and name = 'http://shibboleth.net/ns/attributes/releaseAllValues'))
```

### Get Relying Party Overrides by entity id
```sql
with join_table as (select rpo.id1,
rpo.id2
from (select attribute_id id1, attribute_values_id id2
from attribute_abstractxmlobject
where attribute_id in (select id
from attribute
where id in (select attributes_id
from entity_attributes_attribute
where entity_attributes_id = (select unknownxmlobjects_id
from abstract_element_extensiblexmlobject_abstractxmlobject
where abstract_element_extensiblexmlobject_id =
(select extensions_id from entity_descriptor where entityid = 'someentityid'))))) as rpo)
select attribute_1.name relying_party_override,
attribute_2.value
from join_table
inner join
attribute as attribute_1
on join_table.id1 = attribute_1.id
inner join
(select id, stored_value value from xsboolean
UNION
select id, CAST(int_value AS varchar) value from xsinteger
UNION
select id, xs_stringvalue value from xsstring
UNION
select id, text_context value from xsany) as attribute_2
on join_table.id2 = attribute_2.id
where value is not null and value != ''
```
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM gcr.io/distroless/java
#FROM --platform=linux/arm64 gcr.io/distroless/java17-debian11 ## for macs
FROM gcr.io/distroless/java17-debian11

ARG JAR_FILE

Expand All @@ -7,4 +8,4 @@ COPY ${JAR_FILE} app.war

EXPOSE 8080

ENTRYPOINT ["/usr/bin/java", "-jar", "app.war"]
ENTRYPOINT ["/usr/bin/java", "-jar", "app.war"]
Loading

0 comments on commit ea61582

Please sign in to comment.