Skip to content

Instantly share code, notes, and snippets.

sec-stack SyCode7

Block or report user

Report or block SyCode7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GCSBucketPolicyChecker
String bucketName = "company-block-log-fce65e82-a0cd-4f71-8693-381100d93c18";
Policy p = Cache.GCSStorage.getIamPolicy(bucketName);
List<Role> roleList = new ArrayList<>();
List<Set<Identity>> identities = new ArrayList<>();
// Print Roles and its identities
Set<Identity> wrongIdentities = new HashSet<Identity>();
Role roler = null;
Map<Role, Set<Identity>> policyBindings = p.getBindings();
View ReportCollector
public class ReportCollector {
public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
// ArrayList
Layers layers = new Layers();
Layer layer = new Layer();
// List<Layers>
File reportFile = new File("reports/json/analysis-postgres-latest.json");
View gist:ec5c32da58a3648f2dc4f84411787c13
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
You can’t perform that action at this time.