Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: Added contacts field to findings attributes, specifying Essenti…
Browse files Browse the repository at this point in the history
…al Contacts defined at org, folder or project level within a GCP org (#865)

* feat: Added contacts field to findings attributes, specifying Essential Contacts defined at org, folder or project level within a GCP org
feat: Added process signature fields to the indicator attribute that helps surface multiple types of signature defined IOCs

PiperOrigin-RevId: 458537238

Source-Link: googleapis/googleapis@7fdec62

Source-Link: googleapis/googleapis-gen@bb340e3
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmIzNDBlMzIyMzUzOWE3OTJhMjA0YmUyYTc5NGZiMmFkMzcyNGY2OCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add scc-secrets, excluded samples.cfg from owlbot changes and fixed PrintStream init in Mute config test

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Sita Lakshmi Sangameswaran <sitalakshmi@google.com>
  • Loading branch information
3 people committed Jul 13, 2022
1 parent 1a3e969 commit 080c590
Show file tree
Hide file tree
Showing 26 changed files with 8,101 additions and 238 deletions.
2 changes: 1 addition & 1 deletion .kokoro/presubmit/samples.cfg
Expand Up @@ -29,5 +29,5 @@ env_vars: {

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account"
value: "java-docs-samples-service-account,java-scc-samples-secrets"
}
Expand Up @@ -314,6 +314,7 @@ public void createFindingTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -388,6 +389,7 @@ public void createFindingTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2775,6 +2777,7 @@ public void setFindingStateTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2851,6 +2854,7 @@ public void setFindingStateTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2925,6 +2929,7 @@ public void setMuteTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2999,6 +3004,7 @@ public void setMuteTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -3323,6 +3329,7 @@ public void updateFindingTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -3355,6 +3362,7 @@ public void updateFindingTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -3412,6 +3420,7 @@ public void updateFindingExceptionTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down
Expand Up @@ -305,6 +305,7 @@ public void createFindingTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -375,6 +376,7 @@ public void createFindingTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2546,6 +2548,7 @@ public void setFindingStateTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2618,6 +2621,7 @@ public void setFindingStateTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2688,6 +2692,7 @@ public void setMuteTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -2757,6 +2762,7 @@ public void setMuteTest2() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down Expand Up @@ -3036,6 +3042,7 @@ public void updateFindingTest() throws Exception {
.addAllConnections(new ArrayList<Connection>())
.setMuteInitiator("muteInitiator1395645462")
.addAllProcesses(new ArrayList<Process>())
.putAllContacts(new HashMap<String, ContactDetails>())
.addAllCompliances(new ArrayList<Compliance>())
.setDescription("description-1724546052")
.setExfiltration(Exfiltration.newBuilder().build())
Expand Down
5 changes: 4 additions & 1 deletion owlbot.py
Expand Up @@ -64,4 +64,7 @@
s.move(library)

s.remove_staging_dirs()
java.common_templates()

java.common_templates(excludes=[
'.kokoro/presubmit/samples.cfg'
])

0 comments on commit 080c590

Please sign in to comment.